Sha256: b03b0d7159fd5dea0c78fa3a7cce7d57e388b492791eb4fb23d8bb20209a514e
Contents?: true
Size: 1.18 KB
Versions: 9
Compression:
Stored size: 1.18 KB
Contents
module Xcake class Configuration # @return [Hash<Symbol, String>] the constants for the # supported_devices setting # SUPPORTED_DEVICES = { iphone_only: "1", ipad_only: "2", universal: "1,2" } # Convienence method to easily set the # supported devices for a application. # # Use this when you want to make a # Non-Univeral iOS application. # # @example Using Supported Devices # # Target.new do |t| # t.all_configurations.supported_devices = :ipad_only # end # def supported_devices=(devices) supported_devices = SUPPORTED_DEVICES[devices] settings["TARGETED_DEVICE_FAMILY"] = supported_devices end # Convienience method to easily set the # product's bundle identifier # def product_bundle_identifier=(identifier) settings["PRODUCT_BUNDLE_IDENTIFIER"] = identifier end # Convienence method to easily set the # product's bundle identifier # def preprocessor_definitions PreprocessorDefinitionsSettingProxy.new( settings, "GCC_PREPROCESSOR_DEFINITIONS" ) end end end
Version data entries
9 entries across 9 versions & 1 rubygems