lib/gym/options.rb in gym-0.6.2 vs lib/gym/options.rb in gym-0.7.0
- old
+ new
@@ -103,15 +103,27 @@
end),
FastlaneCore::ConfigItem.new(key: :include_symbols,
short_option: "-m",
env_name: "GYM_INCLUDE_SYMBOLS",
description: "Should the ipa file include symbols?",
- default_value: true),
+ default_value: true,
+ is_string: false),
FastlaneCore::ConfigItem.new(key: :include_bitcode,
short_option: "-z",
env_name: "GYM_INCLUDE_BITCODE",
description: "Should the ipa include bitcode?",
- default_value: false),
+ default_value: false,
+ is_string: false),
+ FastlaneCore::ConfigItem.new(key: :export_method,
+ short_option: "-j",
+ env_name: "GYM_EXPORT_METHOD",
+ description: "How should gym export the archive?",
+ default_value: "app-store",
+ is_string: true,
+ verify_block: proc do |value|
+ av = %w(app-store ad-hoc package enterprise development developer-id)
+ raise "Unsupported export_method, must be: #{av}" unless av.include?(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,