Class: Pod::SPM::Hook::AddSpmPkgs

Inherits:
Pod::SPM::Hook show all
Defined in:
lib/cocoapods-spm/hooks/post_integrate/add_spm_pkgs.rb

Instance Method Summary collapse

Methods inherited from Pod::SPM::Hook

#aggregate_targets, #config, #initialize, #perform_settings_update, #pod_targets, #pods_project, run_hooks, #sandbox, #user_build_configurations

Methods included from Config::Mixin

#macro_pods, #spm_config

Constructor Details

This class inherits a constructor from Pod::SPM::Hook

Instance Method Details

#runObject



8
9
10
11
12
13
14
# File 'lib/cocoapods-spm/hooks/post_integrate/add_spm_pkgs.rb', line 8

def run
  return unless @spm_analyzer.spm_pkgs

  add_spm_pkg_refs_to_project
  add_spm_products_to_targets
  pods_project.save
end