Module: Pod::Specification::DSL::Deprecations

Included in:
Pod::Specification
Defined in:
lib/cocoapods-core/specification/dsl/deprecations.rb

Overview

Provides warning and errors for the deprecated attributes of the DSL.

Instance Method Summary collapse

Instance Method Details

#preferred_dependency=(name) ⇒ Object



7
8
9
10
11
# File 'lib/cocoapods-core/specification/dsl/deprecations.rb', line 7

def preferred_dependency=(name)
  self.default_subspecs = [name]
  CoreUI.warn "[#{self}] `preferred_dependency` has been renamed "\
    'to `default_subspecs`.'
end

#xcconfig=(value) ⇒ Object



17
18
19
20
21
22
# File 'lib/cocoapods-core/specification/dsl/deprecations.rb', line 17

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