lib/gym/options.rb in gym-0.7.0 vs lib/gym/options.rb in gym-0.7.1
- old
+ new
@@ -1,8 +1,9 @@
require "fastlane_core"
require "credentials_manager"
+# rubocop:disable Metrics/AbcSize
module Gym
class Options
def self.available_options
return @options if @options
@@ -111,10 +112,20 @@
short_option: "-z",
env_name: "GYM_INCLUDE_BITCODE",
description: "Should the ipa include bitcode?",
default_value: false,
is_string: false),
+ FastlaneCore::ConfigItem.new(key: :use_legacy_build_api,
+ env_name: "GYM_USE_LEGACY_BUILD_API",
+ description: "Don't use the new API because of https://openradar.appspot.com/radar?id=4952000420642816",
+ default_value: false,
+ is_string: false,
+ verify_block: proc do |value|
+ if value
+ Helper.log.info "Using legacy build system - waiting for radar to be fixed: https://openradar.appspot.com/radar?id=4952000420642816".red
+ end
+ end),
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",
@@ -134,5 +145,6 @@
]
end
end
end
+# rubocop:enable Metrics/AbcSize