pilot/lib/pilot/options.rb in fastlane-2.82.0.beta.20180217010002 vs pilot/lib/pilot/options.rb in fastlane-2.82.0.beta.20180218010003
- old
+ new
@@ -12,18 +12,20 @@
[
FastlaneCore::ConfigItem.new(key: :username,
short_option: "-u",
env_name: "PILOT_USERNAME",
description: "Your Apple ID Username",
- default_value: user),
+ default_value: user,
+ default_value_dynamic: true),
FastlaneCore::ConfigItem.new(key: :app_identifier,
short_option: "-a",
env_name: "PILOT_APP_IDENTIFIER",
description: "The bundle identifier of the app to upload or manage testers (optional)",
optional: true,
code_gen_sensitive: true,
- default_value: ENV["TESTFLIGHT_APP_IDENTITIFER"] || CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)),
+ default_value: ENV["TESTFLIGHT_APP_IDENTITIFER"] || CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier),
+ default_value_dynamic: true),
FastlaneCore::ConfigItem.new(key: :app_platform,
short_option: "-m",
env_name: "PILOT_PLATFORM",
description: "The platform to use (optional)",
optional: true,
@@ -36,10 +38,11 @@
optional: true,
env_name: "PILOT_IPA",
description: "Path to the ipa file to upload",
code_gen_sensitive: true,
default_value: Dir["*.ipa"].sort_by { |x| File.mtime(x) }.last,
+ default_value_dynamic: true,
verify_block: proc do |value|
value = File.expand_path(value)
UI.user_error!("Could not find ipa file at path '#{value}'") unless File.exist?(value)
UI.user_error!("'#{value}' doesn't seem to be an ipa file") unless value.end_with?(".ipa")
end),
@@ -81,11 +84,12 @@
short_option: "-p",
env_name: "PILOT_APPLE_ID",
description: "The unique App ID provided by iTunes Connect",
optional: true,
code_gen_sensitive: true,
- default_value: ENV["TESTFLIGHT_APPLE_ID"]),
+ default_value: ENV["TESTFLIGHT_APPLE_ID"],
+ default_value_dynamic: true),
FastlaneCore::ConfigItem.new(key: :distribute_external,
is_string: false,
env_name: "PILOT_DISTRIBUTE_EXTERNAL",
description: "Should the build be distributed to external testers?",
default_value: false),
@@ -133,29 +137,32 @@
description: "The ID of your iTunes Connect team if you're in multiple teams",
optional: true,
is_string: false, # as we also allow integers, which we convert to strings anyway
code_gen_sensitive: true,
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_id),
+ default_value_dynamic: true,
verify_block: proc do |value|
ENV["FASTLANE_ITC_TEAM_ID"] = value.to_s
end),
FastlaneCore::ConfigItem.new(key: :team_name,
short_option: "-r",
env_name: "PILOT_TEAM_NAME",
description: "The name of your iTunes Connect team if you're in multiple teams",
optional: true,
code_gen_sensitive: true,
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_name),
+ default_value_dynamic: true,
verify_block: proc do |value|
ENV["FASTLANE_ITC_TEAM_NAME"] = value.to_s
end),
FastlaneCore::ConfigItem.new(key: :dev_portal_team_id,
env_name: "PILOT_DEV_PORTAL_TEAM_ID",
description: "The short ID of your team in the developer portal, if you're in multiple teams. Different from your iTC team ID!",
optional: true,
is_string: true,
code_gen_sensitive: true,
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id),
+ default_value_dynamic: true,
verify_block: proc do |value|
ENV["FASTLANE_TEAM_ID"] = value.to_s
end),
# rubocop:disable Metrics/LineLength
FastlaneCore::ConfigItem.new(key: :itc_provider,