deliver/lib/deliver/options.rb in fastlane-2.102.0 vs deliver/lib/deliver/options.rb in fastlane-2.103.0
- old
+ new
@@ -25,22 +25,17 @@
description: "The bundle identifier of your app",
optional: true,
code_gen_sensitive: true,
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier),
default_value_dynamic: true),
- FastlaneCore::ConfigItem.new(key: :app,
- short_option: "-p",
- env_name: "DELIVER_APP_ID",
- description: "The app ID of the app you want to use/modify",
- is_string: false), # don't add any verification here, as it's used to store a spaceship ref
- FastlaneCore::ConfigItem.new(key: :edit_live,
- short_option: "-o",
- optional: true,
- default_value: false,
- env_name: "DELIVER_EDIT_LIVE",
- description: "Modify live metadata, this option disables ipa upload and screenshot upload",
- is_string: false),
+ # version
+ FastlaneCore::ConfigItem.new(key: :app_version,
+ short_option: '-z',
+ description: "The version that should be edited or created",
+ optional: true),
+
+ # binary / build
FastlaneCore::ConfigItem.new(key: :ipa,
short_option: "-i",
optional: true,
env_name: "DELIVER_IPA_PATH",
description: "Path to your ipa file",
@@ -69,66 +64,92 @@
end,
conflicting_options: [:ipa],
conflict_block: proc do |value|
UI.user_error!("You can't use 'pkg' and '#{value.key}' options in one run.")
end),
+ FastlaneCore::ConfigItem.new(key: :build_number,
+ short_option: "-n",
+ description: "If set the given build number (already uploaded to iTC) will be used instead of the current built one",
+ optional: true,
+ conflicting_options: [:ipa, :pkg],
+ conflict_block: proc do |value|
+ UI.user_error!("You can't use 'build_number' and '#{value.key}' options in one run.")
+ end),
FastlaneCore::ConfigItem.new(key: :platform,
short_option: "-j",
env_name: "DELIVER_PLATFORM",
description: "The platform to use (optional)",
optional: true,
default_value: "ios",
verify_block: proc do |value|
UI.user_error!("The platform can only be ios, appletvos, or osx") unless %('ios', 'appletvos', 'osx').include?(value)
end),
+
+ # live version
+ FastlaneCore::ConfigItem.new(key: :edit_live,
+ short_option: "-o",
+ optional: true,
+ default_value: false,
+ env_name: "DELIVER_EDIT_LIVE",
+ description: "Modify live metadata, this option disables ipa upload and screenshot upload",
+ is_string: false),
+ FastlaneCore::ConfigItem.new(key: :use_live_version,
+ description: "Force usage of live version rather than edit version",
+ is_string: false,
+ default_value: false),
+
+ # paths
FastlaneCore::ConfigItem.new(key: :metadata_path,
short_option: '-m',
description: "Path to the folder containing the metadata files",
optional: true),
FastlaneCore::ConfigItem.new(key: :screenshots_path,
short_option: '-w',
description: "Path to the folder containing the screenshots",
optional: true),
+
+ # skip
FastlaneCore::ConfigItem.new(key: :skip_binary_upload,
description: "Skip uploading an ipa or pkg to App Store Connect",
is_string: false,
default_value: false),
- FastlaneCore::ConfigItem.new(key: :use_live_version,
- description: "Force usage of live version rather than edit version",
- is_string: false,
- default_value: false),
FastlaneCore::ConfigItem.new(key: :skip_screenshots,
description: "Don't upload the screenshots",
is_string: false,
default_value: false),
- FastlaneCore::ConfigItem.new(key: :app_version,
- short_option: '-z',
- description: "The version that should be edited or created",
- optional: true),
FastlaneCore::ConfigItem.new(key: :skip_metadata,
description: "Don't upload the metadata (e.g. title, description). This will still upload screenshots",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :skip_app_version_update,
description: "Don't update app version for submission",
is_string: false,
default_value: false),
+
+ # how to operate
FastlaneCore::ConfigItem.new(key: :force,
short_option: "-f",
description: "Skip the HTML report file verification",
is_string: false,
default_value: false),
+ FastlaneCore::ConfigItem.new(key: :overwrite_screenshots,
+ env_name: "DELIVER_OVERWRITE_SCREENSHOTS",
+ description: "Clear all previously uploaded screenshots before uploading the new ones",
+ is_string: false,
+ default_value: false),
FastlaneCore::ConfigItem.new(key: :submit_for_review,
env_name: "DELIVER_SUBMIT_FOR_REVIEW",
description: "Submit the new version for Review after uploading everything",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :reject_if_possible,
env_name: "DELIVER_REJECT_IF_POSSIBLE",
description: "Rejects the previously submitted build if it's in a state where it's possible",
is_string: false,
default_value: false),
+
+ # release
FastlaneCore::ConfigItem.new(key: :automatic_release,
description: "Should the app be automatically released once it's approved?",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :auto_release_date,
@@ -143,23 +164,17 @@
FastlaneCore::ConfigItem.new(key: :phased_release,
description: "Enable the phased release feature of iTC",
optional: true,
is_string: false,
default_value: false),
+
+ # other app configuration
FastlaneCore::ConfigItem.new(key: :price_tier,
short_option: "-r",
description: "The price tier of this application",
is_string: false,
optional: true),
- FastlaneCore::ConfigItem.new(key: :build_number,
- short_option: "-n",
- description: "If set the given build number (already uploaded to iTC) will be used instead of the current built one",
- optional: true,
- conflicting_options: [:ipa, :pkg],
- conflict_block: proc do |value|
- UI.user_error!("You can't use 'build_number' and '#{value.key}' options in one run.")
- end),
FastlaneCore::ConfigItem.new(key: :app_rating_config_path,
short_option: "-g",
description: "Path to the app rating's config",
is_string: true,
optional: true,
@@ -170,10 +185,12 @@
FastlaneCore::ConfigItem.new(key: :submission_information,
short_option: "-b",
description: "Extra information for the submission (e.g. third party content)",
is_string: false,
optional: true),
+
+ # affiliation
FastlaneCore::ConfigItem.new(key: :team_id,
short_option: "-k",
env_name: "DELIVER_TEAM_ID",
description: "The ID of your App Store Connect team if you're in multiple teams",
optional: true,
@@ -222,25 +239,22 @@
FastlaneCore::ConfigItem.new(key: :itc_provider,
env_name: "DELIVER_ITC_PROVIDER",
description: "The provider short name to be used with the iTMSTransporter to identify your team. To get provider short name run `pathToXcode.app/Contents/Applications/Application\\ Loader.app/Contents/itms/bin/iTMSTransporter -m provider -u 'USERNAME' -p 'PASSWORD' -account_type itunes_connect -v off`. The short names of providers should be listed in the second column",
optional: true),
# rubocop:enable Metrics/LineLength
- FastlaneCore::ConfigItem.new(key: :overwrite_screenshots,
- env_name: "DELIVER_OVERWRITE_SCREENSHOTS",
- description: "Clear all previously uploaded screenshots before uploading the new ones",
- is_string: false,
- default_value: false),
+
+ # precheck
FastlaneCore::ConfigItem.new(key: :run_precheck_before_submit,
short_option: "-x",
env_name: "DELIVER_RUN_PRECHECK_BEFORE_SUBMIT",
description: "Run precheck before submitting to app review",
is_string: false,
default_value: true),
FastlaneCore::ConfigItem.new(key: :precheck_default_rule_level,
short_option: "-d",
env_name: "DELIVER_PRECHECK_DEFAULT_RULE_LEVEL",
- description: "The default rule level unless otherwise configured",
+ description: "The default precheck rule level unless otherwise configured",
is_string: false,
default_value: :warn),
# App Metadata
# Non Localised
@@ -368,10 +382,17 @@
FastlaneCore::ConfigItem.new(key: :precheck_include_in_app_purchases,
env_name: "PRECHECK_INCLUDE_IN_APP_PURCHASES",
description: "Should precheck check in-app purchases?",
is_string: false,
optional: true,
- default_value: true)
+ default_value: true),
+
+ # internal
+ FastlaneCore::ConfigItem.new(key: :app,
+ short_option: "-p",
+ env_name: "DELIVER_APP_ID",
+ description: "The (spaceship) app ID of the app you want to use/modify",
+ is_string: false) # don't add any verification here, as it's used to store a spaceship ref
]
end
end
# rubocop:enable Metrics/ClassLength
end