Class: CocoaPods::AppGroup::SetupXcconfig

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods/app_group/setup_xcconfig.rb

Instance Method Summary collapse

Constructor Details

#initialize(installer) ⇒ SetupXcconfig

Returns a new instance of SetupXcconfig.



4
5
6
# File 'lib/cocoapods/app_group/setup_xcconfig.rb', line 4

def initialize(installer)
  @installer = installer
end

Instance Method Details

#callObject



8
9
10
11
12
13
14
# File 'lib/cocoapods/app_group/setup_xcconfig.rb', line 8

def call
  pod_targets.each do |target|
    if target.name == 'AppGroup'
      target.spec_consumers.first.spec.attributes_hash['user_target_xcconfig'] = {"APP_IDENTIFIER"=> store.read(:app_group)}
    end
  end
end