Class: PodAlexandria::LocalPostInstallHook

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-alexandria/env_local/post_install.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(installer_context, user_options) ⇒ LocalPostInstallHook

Returns a new instance of LocalPostInstallHook.



5
6
7
8
9
10
# File 'lib/cocoapods-alexandria/env_local/post_install.rb', line 5

def initialize(installer_context, user_options)
  @pods_project = installer_context.pods_project
  @sandbox_root = installer_context.sandbox_root
  @umbrella_targets = installer_context.umbrella_targets
  @options = UserOptions.new(installer_context, user_options)
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/cocoapods-alexandria/env_local/post_install.rb', line 3

def options
  @options
end

#pods_projectObject (readonly)

Returns the value of attribute pods_project.



3
4
5
# File 'lib/cocoapods-alexandria/env_local/post_install.rb', line 3

def pods_project
  @pods_project
end

#sandbox_rootObject (readonly)

Returns the value of attribute sandbox_root.



3
4
5
# File 'lib/cocoapods-alexandria/env_local/post_install.rb', line 3

def sandbox_root
  @sandbox_root
end

#umbrella_targetsObject (readonly)

Returns the value of attribute umbrella_targets.



3
4
5
# File 'lib/cocoapods-alexandria/env_local/post_install.rb', line 3

def umbrella_targets
  @umbrella_targets
end

Instance Method Details

#runObject



12
13
14
15
16
17
# File 'lib/cocoapods-alexandria/env_local/post_install.rb', line 12

def run
  Pod::UI.title "Tweaking CocoaPods for XcodeGen..."
  pods_project.fix_deployment_target_warnings(options.minimum_ios_version)
  pods_project.fix_bundle_code_signing
  include_user_configs_in_pods_xcconfigs
end