Class: Pod::Installer::Xcode::PodTargetDependencyInstaller
- Inherits:
-
Object
- Object
- Pod::Installer::Xcode::PodTargetDependencyInstaller
- Defined in:
- lib/cocoapods/installer/xcode/pods_project_generator/pod_target_dependency_installer.rb
Overview
Wires up the dependencies between targets from the target installation results
Instance Attribute Summary collapse
-
#metadata_cache ⇒ ProjectMetadataCache
readonly
The metadata cache for targets.
-
#pod_target_installation_results ⇒ TargetInstallationResults
readonly
The target installation results for pod targets.
-
#sandbox ⇒ Sandbox
readonly
The sandbox used for this installation.
Instance Method Summary collapse
-
#initialize(sandbox, pod_target_installation_results, metadata_cache) ⇒ PodTargetDependencyInstaller
constructor
Initialize a new instance.
- #install! ⇒ Object
Constructor Details
#initialize(sandbox, pod_target_installation_results, metadata_cache) ⇒ PodTargetDependencyInstaller
Initialize a new instance.
27 28 29 30 31 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator/pod_target_dependency_installer.rb', line 27 def initialize(sandbox, pod_target_installation_results, ) @sandbox = sandbox @pod_target_installation_results = pod_target_installation_results @metadata_cache = end |
Instance Attribute Details
#metadata_cache ⇒ ProjectMetadataCache (readonly)
Returns The metadata cache for targets.
19 20 21 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator/pod_target_dependency_installer.rb', line 19 def @metadata_cache end |
#pod_target_installation_results ⇒ TargetInstallationResults (readonly)
Returns The target installation results for pod targets.
15 16 17 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator/pod_target_dependency_installer.rb', line 15 def pod_target_installation_results @pod_target_installation_results end |
#sandbox ⇒ Sandbox (readonly)
Returns The sandbox used for this installation.
11 12 13 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator/pod_target_dependency_installer.rb', line 11 def sandbox @sandbox end |
Instance Method Details
#install! ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator/pod_target_dependency_installer.rb', line 33 def install! # Wire up pod targets pod_target_installation_results.values.each do |pod_target_installation_result| pod_target = pod_target_installation_result.target native_target = pod_target_installation_result.native_target project = native_target.project # First, wire up all resource bundles. wire_resource_bundle_targets(pod_target_installation_result.resource_bundle_targets, native_target, pod_target) # Wire up all dependencies to this pod target, if any. wire_target_dependencies(pod_target, native_target, project, pod_target_installation_results, ) # Wire up test native targets. unless pod_target_installation_result.test_native_targets.empty? wire_test_native_targets(pod_target, pod_target_installation_result, pod_target_installation_results, project, ) end # Wire up app native targets. unless pod_target_installation_result.app_native_targets.empty? wire_app_native_targets(pod_target, pod_target_installation_result, pod_target_installation_results, project, ) end end end |