Cache result of resource and framework paths

parent c6eee2ed
...@@ -12,6 +12,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -12,6 +12,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes ##### Bug Fixes
* Cache result of resource and framework paths
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#6893](https://github.com/CocoaPods/CocoaPods/pull/6893)
* Ensure source urls are set when spec has subspecs with dependencies * Ensure source urls are set when spec has subspecs with dependencies
[Dimitris Koutsogiorgas](https://github.com/dnkoutso) [Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#6888](https://github.com/CocoaPods/CocoaPods/pull/6888) [#6888](https://github.com/CocoaPods/CocoaPods/pull/6888)
......
...@@ -188,6 +188,7 @@ module Pod ...@@ -188,6 +188,7 @@ module Pod
# input and output paths grouped by config # input and output paths grouped by config
# #
def framework_paths_by_config def framework_paths_by_config
@framework_paths_by_config ||= begin
framework_paths_by_config = {} framework_paths_by_config = {}
user_build_configurations.keys.each do |config| user_build_configurations.keys.each do |config|
relevant_pod_targets = pod_targets.select do |pod_target| relevant_pod_targets = pod_targets.select do |pod_target|
...@@ -197,10 +198,12 @@ module Pod ...@@ -197,10 +198,12 @@ module Pod
end end
framework_paths_by_config framework_paths_by_config
end end
end
# @return [Hash{String => Array<String>}] Uniqued Resources grouped by config # @return [Hash{String => Array<String>}] Uniqued Resources grouped by config
# #
def resource_paths_by_config def resource_paths_by_config
@resource_paths_by_config ||= begin
relevant_pod_targets = pod_targets.reject do |pod_target| relevant_pod_targets = pod_targets.reject do |pod_target|
pod_target.should_build? && pod_target.requires_frameworks? pod_target.should_build? && pod_target.requires_frameworks?
end end
...@@ -211,6 +214,7 @@ module Pod ...@@ -211,6 +214,7 @@ module Pod
end end
end end
end end
end
# @return [Pathname] the path of the bridge support file relative to the # @return [Pathname] the path of the bridge support file relative to the
# sandbox or `nil` if bridge support is disabled. # sandbox or `nil` if bridge support is disabled.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment