Class: Pod::SPM::UmbrellaPackage
- Inherits:
-
Object
- Object
- Pod::SPM::UmbrellaPackage
- Includes:
- Config::Mixin
- Defined in:
- lib/cocoapods-spm/resolver/umbrella_package.rb
Instance Method Summary collapse
-
#initialize(podfile) ⇒ UmbrellaPackage
constructor
A new instance of UmbrellaPackage.
- #prepare ⇒ Object
Methods included from Config::SPMConfigMixin
#local_macro_pod?, #local_macro_pod_dir, #macro_pods, #spm_config
Methods included from Config::PodConfigMixin
Methods included from Config::ProjectConfigMixin
Constructor Details
#initialize(podfile) ⇒ UmbrellaPackage
Returns a new instance of UmbrellaPackage.
6 7 8 9 |
# File 'lib/cocoapods-spm/resolver/umbrella_package.rb', line 6 def initialize(podfile) @podfile = podfile @spm_pkgs = @podfile.target_definition_list.flat_map(&:spm_pkgs).uniq(&:name) end |
Instance Method Details
#prepare ⇒ Object
11 12 13 14 15 16 |
# File 'lib/cocoapods-spm/resolver/umbrella_package.rb', line 11 def prepare generate_pkg_swift swift_pkg_resolve create_symlinks_to_local_pkgs self end |