lib/gym/options.rb in gym-0.2.1 vs lib/gym/options.rb in gym-0.3.0
- old
+ new
@@ -32,18 +32,10 @@
v = File.expand_path(value.to_s)
raise "Project file not found at path '#{v}'".red unless File.exist?(v)
raise "Project file invalid".red unless File.directory?(v)
raise "Project file is not a project file, must end with .xcodeproj".red unless v.include?(".xcodeproj")
end),
- FastlaneCore::ConfigItem.new(key: :provisioning_profile_path,
- short_option: "-e",
- env_name: "GYM_PROVISIONING_PROFILE_PATH",
- description: "The path to the provisioning profile (found automatically when located in current folder)",
- optional: true,
- verify_block: proc do |value|
- raise "Provisioning profile not found at path '#{File.expand_path(value)}'".red unless File.exist?(value)
- end),
FastlaneCore::ConfigItem.new(key: :scheme,
short_option: "-s",
optional: true,
env_name: "GYM_SCHEME",
description: "The project's scheme. Make sure it's marked as `Shared`"),
@@ -76,11 +68,11 @@
optional: true),
FastlaneCore::ConfigItem.new(key: :configuration,
short_option: "-q",
env_name: "GYM_CONFIGURATION",
description: "The configuration to use when building the app. Defaults to 'Release'",
- default_value: "Release"),
+ optional: true),
FastlaneCore::ConfigItem.new(key: :silent,
short_option: "-t",
env_name: "GYM_SILENT",
description: "Hide all information that's not necessary while building",
default_value: false,
@@ -97,10 +89,26 @@
default_value: "generic/platform=iOS"),
FastlaneCore::ConfigItem.new(key: :xcargs,
short_option: "-x",
env_name: "GYM_XCARGS",
description: "Pass additional arguments to xcodebuild when building the app. Be sure to quote the setting names and values e.g. OTHER_LDFLAGS=\"-ObjC -lstdc++\"",
- optional: true)
+ optional: true),
+ FastlaneCore::ConfigItem.new(key: :xcconfig,
+ short_option: "-y",
+ env_name: "GYM_XCCONFIG",
+ description: "Use an extra XCCONFIG file to build your app",
+ optional: true,
+ verify_block: proc do |value|
+ raise "File not found at path '#{File.expand_path(value)}'".red unless File.exist?(value)
+ end),
+ FastlaneCore::ConfigItem.new(key: :provisioning_profile_path,
+ short_option: "-e",
+ env_name: "GYM_PROVISIONING_PROFILE_PATH",
+ description: "The path to the provisioning profile (optional)",
+ optional: true,
+ verify_block: proc do |value|
+ raise "Provisioning profile not found at path '#{File.expand_path(value)}'".red unless File.exist?(value)
+ end)
]
end
# rubocop:enable Metrics/MethodLength
end