Method: Pod::Podfile::TargetDefinition#store_pod
- Defined in:
- lib/cocoapods-core/podfile/target_definition.rb
#store_pod(name, *requirements) ⇒ void
TODO:
This needs urgently a rename.
Note:
The dependencies are stored as an array. To simplify the YAML representation if they have requirements they are represented as a Hash, otherwise only the String of the name is added to the array.
This method returns an undefined value.
Stores the dependency for a Pod with the given name.
707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 |
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 707 def store_pod(name, *requirements) return if parse_subspecs(name, requirements) # This parse method must be called first parse_inhibit_warnings(name, requirements) parse_modular_headers(name, requirements) parse_configuration_whitelist(name, requirements) parse_project_name(name, requirements) if requirements && !requirements.empty? pod = { name => requirements } else pod = name end get_hash_value('dependencies', []) << pod nil end |