Sha256: e55b70c48d23593d8a232afcb2c1b5d0aebddd2f7b890daa561c321a75ee7ac8

Contents?: true

Size: 573 Bytes

Versions: 2

Compression:

Stored size: 573 Bytes

Contents

module CocoaPods
  module AppGroup
    class SetupXcconfig
      def initialize(installer)
        @installer = installer
      end

      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

      private

      attr_reader :installer

      def pod_targets
        installer.pod_targets
      end

      def store
        @store ||= Store.new
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-app_group-0.4.0 lib/cocoapods/app_group/setup_xcconfig.rb
cocoapods-app_group-0.3.0 lib/cocoapods/app_group/setup_xcconfig.rb