Class: Pod::SPM::Resolver
- Inherits:
-
Object
- Object
- Pod::SPM::Resolver
- 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
-
#initialize(podfile, aggregate_targets) ⇒ Resolver
constructor
A new instance of Resolver.
- #resolve ⇒ Object
- #result ⇒ Object
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
#resolve ⇒ Object
22 23 24 25 26 |
# File 'lib/cocoapods-spm/resolver.rb', line 22 def resolve generate_umbrella_pkg @resolvers.each(&:resolve) validate! end |
#result ⇒ Object
28 29 30 |
# File 'lib/cocoapods-spm/resolver.rb', line 28 def result @result ||= @_result.to_read_only end |