CocoaPods/Core

View on GitHub
lib/cocoapods-core/specification/dsl/deprecations.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Pod
  class Specification
    module DSL
      # Provides warning and errors for the deprecated attributes of the DSL.
      #
      module Deprecations
        DSL.attribute :xcconfig,
                      :container => Hash,
                      :inherited => true

        def xcconfig=(value)
          self.pod_target_xcconfig = value
          self.user_target_xcconfig = value
          CoreUI.warn "[#{self}] `xcconfig` has been split into "\
            '`pod_target_xcconfig` and `user_target_xcconfig`.'
        end
      end
    end
  end
end