Class: Pod::Installer

Inherits:
Object
  • Object
show all
Includes:
SPM::Config::Mixin
Defined in:
lib/cocoapods-spm/patch/installer.rb,
lib/cocoapods-spm/macro/pod_installer.rb

Defined Under Namespace

Classes: MacroPodInstaller

Instance Method Summary collapse

Methods included from SPM::Config::SPMConfigMixin

#macro_pods, #spm_config

Methods included from SPM::Config::PodConfigMixin

#pod_config

Methods included from SPM::Config::ProjectConfigMixin

#project_config

Instance Method Details

#create_pod_installer(pod_name) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/cocoapods-spm/patch/installer.rb', line 16

def create_pod_installer(pod_name)
  if macro_pods.include?(pod_name)
    macro_pod_installer = MacroPodInstaller.new(
      sandbox,
      podfile,
      specs_for_pod(pod_name),
      can_cache: installation_options.clean?
    )
    pod_installers << macro_pod_installer
    macro_pod_installer
  else
    origin_create_pod_installer(pod_name)
  end
end

#integrateObject



32
33
34
35
36
# File 'lib/cocoapods-spm/patch/installer.rb', line 32

def integrate
  run_spm_pre_integrate_hooks
  origin_integrate
  run_spm_post_integrate_hooks
end

#origin_create_pod_installerObject



15
# File 'lib/cocoapods-spm/patch/installer.rb', line 15

alias origin_create_pod_installer create_pod_installer

#origin_integrateObject



31
# File 'lib/cocoapods-spm/patch/installer.rb', line 31

alias origin_integrate integrate

#origin_resolve_dependenciesObject



9
# File 'lib/cocoapods-spm/patch/installer.rb', line 9

alias origin_resolve_dependencies resolve_dependencies

#resolve_dependenciesObject



10
11
12
13
# File 'lib/cocoapods-spm/patch/installer.rb', line 10

def resolve_dependencies
  origin_resolve_dependencies
  resolve_spm_dependencies
end