Class: Pod::AggregateTarget

Inherits:
Target
  • Object
show all
Defined in:
lib/cocoapods-static-frameworks/command/patch/aggregate_target.rb

Instance Method Summary collapse

Instance Method Details

#framework_paths_by_configObject



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/cocoapods-static-frameworks/command/patch/aggregate_target.rb', line 4

def framework_paths_by_config
  @framework_paths_by_config ||= begin
    framework_paths_by_config = {}
    user_build_configurations.keys.each do |config|
      relevant_pod_targets = pod_targets.select do |pod_target|
        !pod_target.should_build? && pod_target.include_in_build_config?(target_definition, config)
      end
      framework_paths_by_config[config] = relevant_pod_targets.flat_map(&:framework_paths)
    end
    framework_paths_by_config
  end
end

#resource_paths_by_configObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/cocoapods-static-frameworks/command/patch/aggregate_target.rb', line 17

def resource_paths_by_config
  @resource_paths_by_config ||= begin
    relevant_pod_targets = pod_targets
    user_build_configurations.keys.each_with_object({}) do |config, resources_by_config|
      resources_by_config[config] = relevant_pod_targets.flat_map do |pod_target|
        next [] unless pod_target.include_in_build_config?(target_definition, config)
        (pod_target.resource_paths + [bridge_support_file].compact).uniq
      end
    end
  end
end