Class: Pod::SPM::Hook::AddSpmPkgs
- Inherits:
-
Pod::SPM::Hook
- Object
- Pod::SPM::Hook
- Pod::SPM::Hook::AddSpmPkgs
- Defined in:
- lib/cocoapods-spm/hooks/post_integrate/1.add_spm_pkgs.rb
Instance Method Summary collapse
Methods inherited from Pod::SPM::Hook
#aggregate_targets, #config, #initialize, #perform_settings_update, #pod_targets, #podfile, #pods_project, run_hooks, #sandbox, #user_build_configurations
Methods included from Config::SPMConfigMixin
Methods included from Config::PodConfigMixin
Methods included from Config::ProjectConfigMixin
Constructor Details
This class inherits a constructor from Pod::SPM::Hook
Instance Method Details
#run ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/cocoapods-spm/hooks/post_integrate/1.add_spm_pkgs.rb', line 8 def run return if @spm_resolver.result.spm_pkgs.empty? add_spm_pkg_refs_to_project add_spm_products_to_targets pods_project.save end |