deliver/lib/deliver/options.rb in fastlane-2.143.0 vs deliver/lib/deliver/options.rb in fastlane-2.144.0

- old
+ new

@@ -28,10 +28,11 @@ default_value: CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier), default_value_dynamic: true), # version FastlaneCore::ConfigItem.new(key: :app_version, short_option: '-z', + env_name: "DELIVER_APP_VERSION", description: "The version that should be edited or created", optional: true), # binary / build FastlaneCore::ConfigItem.new(key: :ipa, @@ -66,10 +67,11 @@ 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", + env_name: "DELIVER_BUILD_NUMBER", 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.") @@ -91,45 +93,53 @@ 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, + env_name: "DELIVER_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', + env_name: "DELIVER_METADATA_PATH", description: "Path to the folder containing the metadata files", optional: true), FastlaneCore::ConfigItem.new(key: :screenshots_path, short_option: '-w', + env_name: "DELIVER_SCREENSHOTS_PATH", description: "Path to the folder containing the screenshots", optional: true), # skip FastlaneCore::ConfigItem.new(key: :skip_binary_upload, + env_name: "DELIVER_SKIP_BINARY_UPLOAD", description: "Skip uploading an ipa or pkg to App Store Connect", is_string: false, default_value: false), FastlaneCore::ConfigItem.new(key: :skip_screenshots, + env_name: "DELIVER_SKIP_SCREENSHOTS", description: "Don't upload the screenshots", is_string: false, default_value: false), FastlaneCore::ConfigItem.new(key: :skip_metadata, + env_name: "DELIVER_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, + env_name: "DELIVER_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", + env_name: "DELIVER_FORCE", description: "Skip the HTML report file verification", is_string: false, default_value: false), FastlaneCore::ConfigItem.new(key: :overwrite_screenshots, env_name: "DELIVER_OVERWRITE_SCREENSHOTS", @@ -147,10 +157,11 @@ is_string: false, default_value: false), # release FastlaneCore::ConfigItem.new(key: :automatic_release, + env_name: "DELIVER_AUTOMATIC_RELEASE", description: "Should the app be automatically released once it's approved? (Can not be used together with `auto_release_date`)", is_string: false, default_value: false), FastlaneCore::ConfigItem.new(key: :auto_release_date, env_name: "DELIVER_AUTO_RELEASE_DATE", @@ -160,28 +171,32 @@ conflicting_options: [:automatic_release], conflict_block: proc do |value| UI.user_error!("You can't use 'auto_release_date' and '#{value.key}' options together.") end), FastlaneCore::ConfigItem.new(key: :phased_release, + env_name: "DELIVER_PHASED_RELEASE", description: "Enable the phased release feature of iTC", optional: true, is_string: false, default_value: false), FastlaneCore::ConfigItem.new(key: :reset_ratings, + env_name: "DELIVER_RESET_RATINGS", description: "Reset the summary rating when you release a new version of the application", optional: true, is_string: false, default_value: false), # other app configuration FastlaneCore::ConfigItem.new(key: :price_tier, short_option: "-r", + env_name: "DELIVER_PRICE_TIER", description: "The price tier of this application", is_string: false, optional: true), FastlaneCore::ConfigItem.new(key: :app_rating_config_path, short_option: "-g", + env_name: "DELIVER_APP_RATING_CONFIG_PATH", description: "Path to the app rating's config", is_string: true, optional: true, verify_block: proc do |value| UI.user_error!("Could not find config file at path '#{File.expand_path(value)}'") unless File.exist?(value) @@ -269,50 +284,59 @@ type: Array, default_value: []), # Non Localised FastlaneCore::ConfigItem.new(key: :app_icon, + env_name: "DELIVER_APP_ICON_PATH", description: "Metadata: The path to the app icon", optional: true, short_option: "-l", verify_block: proc do |value| UI.user_error!("Could not find png file at path '#{File.expand_path(value)}'") unless File.exist?(value) UI.user_error!("'#{value}' doesn't seem to be one of the supported files. supported: #{Deliver::UploadAssets::SUPPORTED_ICON_EXTENSIONS.join(',')}") unless Deliver::UploadAssets::SUPPORTED_ICON_EXTENSIONS.include?(File.extname(value).downcase) end), FastlaneCore::ConfigItem.new(key: :apple_watch_app_icon, + env_name: "DELIVER_APPLE_WATCH_APP_ICON_PATH", description: "Metadata: The path to the Apple Watch app icon", optional: true, short_option: "-q", verify_block: proc do |value| UI.user_error!("Could not find png file at path '#{File.expand_path(value)}'") unless File.exist?(value) UI.user_error!("'#{value}' doesn't seem to be one of the supported files. supported: #{Deliver::UploadAssets::SUPPORTED_ICON_EXTENSIONS.join(',')}") unless Deliver::UploadAssets::SUPPORTED_ICON_EXTENSIONS.include?(File.extname(value).downcase) end), FastlaneCore::ConfigItem.new(key: :copyright, + env_name: "DELIVER_COPYRIGHT", description: "Metadata: The copyright notice", optional: true, is_string: true), FastlaneCore::ConfigItem.new(key: :primary_category, + env_name: "DELIVER_PRIMARY_CATEGORY", description: "Metadata: The english name of the primary category (e.g. `Business`, `Books`)", optional: true, is_string: true), FastlaneCore::ConfigItem.new(key: :secondary_category, + env_name: "DELIVER_SECONDARY_CATEGORY", description: "Metadata: The english name of the secondary category (e.g. `Business`, `Books`)", optional: true, is_string: true), FastlaneCore::ConfigItem.new(key: :primary_first_sub_category, + env_name: "DELIVER_PRIMARY_FIRST_SUB_CATEGORY", description: "Metadata: The english name of the primary first sub category (e.g. `Educational`, `Puzzle`)", optional: true, is_string: true), FastlaneCore::ConfigItem.new(key: :primary_second_sub_category, + env_name: "DELIVER_PRIMARY_SECOND_SUB_CATEGORY", description: "Metadata: The english name of the primary second sub category (e.g. `Educational`, `Puzzle`)", optional: true, is_string: true), FastlaneCore::ConfigItem.new(key: :secondary_first_sub_category, + env_name: "DELIVER_SECONDARY_FIRST_SUB_CATEGORY", description: "Metadata: The english name of the secondary first sub category (e.g. `Educational`, `Puzzle`)", optional: true, is_string: true), FastlaneCore::ConfigItem.new(key: :secondary_second_sub_category, + env_name: "DELIVER_SECONDARY_SECOND_SUB_CATEGORY", description: "Metadata: The english name of the secondary second sub category (e.g. `Educational`, `Puzzle`)", optional: true, is_string: true), FastlaneCore::ConfigItem.new(key: :trade_representative_contact_information, description: "Metadata: A hash containing the trade representative contact information", @@ -323,10 +347,11 @@ description: "Metadata: A hash containing the review information", optional: true, is_string: false, type: Hash), FastlaneCore::ConfigItem.new(key: :app_review_attachment_file, + env_name: "DELIVER_APP_REVIEW_ATTACHMENT_FILE", description: "Metadata: Path to the app review attachment file", optional: true, is_string: true), # Localised FastlaneCore::ConfigItem.new(key: :description, @@ -389,9 +414,10 @@ optional: true, is_string: false), # The verify_block has been removed from here and verification now happens in Deliver::DetectValues # Verification needed Spaceship::Tunes.client which required the Deliver::Runner to already by started FastlaneCore::ConfigItem.new(key: :languages, + env_name: "DELIVER_LANGUAGES", description: "Metadata: List of languages to activate", type: Array, optional: true), FastlaneCore::ConfigItem.new(key: :ignore_language_directory_validation, env_name: "DELIVER_IGNORE_LANGUAGE_DIRECTORY_VALIDATION",