precheck/lib/precheck/options.rb in fastlane_hotfix-2.165.1 vs precheck/lib/precheck/options.rb in fastlane_hotfix-2.187.0
- old
+ new
@@ -24,19 +24,19 @@
user = CredentialsManager::AppfileConfig.try_fetch_value(:itunes_connect_id)
user ||= CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)
[
FastlaneCore::ConfigItem.new(key: :api_key_path,
- env_name: "PRECHECK_API_KEY_PATH",
+ env_names: ["PRECHECK_API_KEY_PATH", "APP_STORE_CONNECT_API_KEY_PATH"],
description: "Path to your App Store Connect API Key JSON file (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-json-file)",
optional: true,
conflicting_options: [:username],
verify_block: proc do |value|
UI.user_error!("Couldn't find API key JSON file at path '#{value}'") unless File.exist?(value)
end),
FastlaneCore::ConfigItem.new(key: :api_key,
- env_name: "PRECHECK_API_KEY",
+ env_names: ["PRECHECK_API_KEY", "APP_STORE_CONNECT_API_KEY"],
description: "Your App Store Connect API Key information (https://docs.fastlane.tools/app-store-connect-api/#use-return-value-and-pass-in-as-an-option)",
type: Hash,
optional: true,
sensitive: true,
conflicting_options: [:api_key_path, :username]),
@@ -50,10 +50,11 @@
default_value_dynamic: true),
FastlaneCore::ConfigItem.new(key: :username,
short_option: "-u",
env_name: "PRECHECK_USERNAME",
description: "Your Apple ID Username",
+ optional: true,
default_value: user,
default_value_dynamic: true),
FastlaneCore::ConfigItem.new(key: :team_id,
short_option: "-b",
env_name: "PRECHECK_TEAM_ID",
@@ -95,10 +96,15 @@
short_option: "-i",
env_name: "PRECHECK_INCLUDE_IN_APP_PURCHASES",
description: "Should check in-app purchases?",
is_string: false,
optional: true,
- default_value: true)
+ default_value: true),
+ FastlaneCore::ConfigItem.new(key: :use_live,
+ env_name: "PRECHECK_USE_LIVE",
+ description: "Should force check live app?",
+ is_string: false,
+ default_value: false)
] + rules
end
end
end