Method: Pod::Podfile::TargetDefinition#pod_dependencies

Defined in:
lib/cocoapods-core/podfile/target_definition.rb

#pod_dependenciesArray<Dependency> (private)

Returns The dependencies specified by the user for this target definition.

Returns:

  • The dependencies specified by the user for this target definition.



973
974
975
976
977
978
979
980
981
982
983
984
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 973

def pod_dependencies
  pods = get_hash_value('dependencies') || []
  pods.map do |name_or_hash|
    if name_or_hash.is_a?(Hash)
      name = name_or_hash.keys.first
      requirements = name_or_hash.values.first
      Dependency.new(name, *requirements)
    else
      Dependency.new(name_or_hash)
    end
  end
end