Method: Pod::Source::Manager#aggregate_for_dependency

Defined in:
lib/cocoapods-core/source/manager.rb

#aggregate_for_dependency(dependency) ⇒ Source::Aggregate

Returns The aggregate of the sources from repos.

Parameters:

  • dependency (Dependency)

    The dependency for which to find or build the appropriate. aggregate. If the dependency specifies a source podspec repo then only that source will be used, otherwise all sources will be used.

Returns:


37
38
39
40
41
42
43
44
# File 'lib/cocoapods-core/source/manager.rb', line 37

def aggregate_for_dependency(dependency)
  return aggregate if dependency.podspec_repo.nil?

  source = source_with_url(dependency.podspec_repo) || source_with_name(dependency.podspec_repo)
  return aggregate if source.nil?

  aggregate_with_repos([source.repo])
end