Class: Pod::SPM::Resolver

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-spm/resolver.rb,
lib/cocoapods-spm/resolver/result.rb,
lib/cocoapods-spm/resolver/target_dep_resolver.rb,
lib/cocoapods-spm/resolver/recursive_target_resolver.rb

Defined Under Namespace

Classes: RecursiveTargetResolver, Result, TargetDependencyResolver

Instance Method Summary collapse

Constructor Details

#initialize(podfile, aggregate_targets) ⇒ Resolver

Returns a new instance of Resolver.



11
12
13
14
15
16
17
18
19
20
# File 'lib/cocoapods-spm/resolver.rb', line 11

def initialize(podfile, aggregate_targets)
  @_result = Result::WritableResult.new
  @podfile = podfile
  @aggregate_targets = aggregate_targets
  @umbrella_pkg = nil
  @resolvers = [
    TargetDependencyResolver.new(podfile, aggregate_targets, @_result),
    RecursiveTargetResolver.new(podfile, @_result),
  ]
end

Instance Method Details

#resolveObject



22
23
24
25
26
# File 'lib/cocoapods-spm/resolver.rb', line 22

def resolve
  generate_umbrella_pkg
  @resolvers.each(&:resolve)
  validate!
end

#resultObject



28
29
30
# File 'lib/cocoapods-spm/resolver.rb', line 28

def result
  @result ||= @_result.to_read_only
end