Sha256: a757163611d2936b778f1a078c756584c51a636212ee424f3dff31529a754816
Contents?: true
Size: 779 Bytes
Versions: 7
Compression:
Stored size: 779 Bytes
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 end end
Version data entries
7 entries across 7 versions & 1 rubygems