Method: Pod::Lockfile#dependencies

Defined in:
lib/cocoapods-core/lockfile.rb

#dependenciesArray<Dependency>

Note:

It includes only the dependencies explicitly required in the podfile and not those triggered by the Resolver.

Returns the dependencies of the Podfile used for the last installation.

Returns:

  • (Array<Dependency>)

    the dependencies of the Podfile used for the last installation.

[View source]

124
125
126
127
128
129
130
131
132
133
134
# File 'lib/cocoapods-core/lockfile.rb', line 124

def dependencies
  unless @dependencies
    data = internal_data['DEPENDENCIES'] || []
    @dependencies = data.map do |string|
      dep = Dependency.from_string(string)
      dep.external_source = external_sources_data[dep.root_name]
      dep
    end
  end
  @dependencies
end