lib/cocoapods-core/specification/dsl/platform_proxy.rb
# Allows to add dependency for the platform.
#
# @return [void]
#
Allows to add dependency for the platform.
Allows to add dependency for the platform .
def dependency(*args)
          name, *version_requirements = args
          platform_name = platform.to_s
          platform_hash = spec.attributes_hash[platform_name] || {}
          platform_hash['dependencies'] ||= {}
          platform_hash['dependencies'][name] = version_requirements
          spec.attributes_hash[platform_name] = platform_hash
        end
def dependency ( * args ) name , * version_requirements = args platform_name = platform . to_s platform_hash = spec . attributes_hash [ platform_name ] || { } platform_hash [ 'dependencies' ] ||= { } platform_hash [ 'dependencies' ] [ name ] = version_requirements spec . attributes_hash [ platform_name ] = platform_hash end
Allows to add dependency for the platform.
Allows to add dependency for the platform .
None
void
args
<not_specific>