Skip to content

Commit 4f6a4ba

Browse files
committed
Deprecate Deliverfile in favor of Fastfile
1 parent 36449ad commit 4f6a4ba

File tree

2 files changed

+25
-30
lines changed

2 files changed

+25
-30
lines changed

fastlane/Deliverfile

Lines changed: 0 additions & 30 deletions
This file was deleted.

fastlane/Fastfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,31 @@ platform :ios do
585585
)
586586
end
587587

588+
# Upload the localized metadata (from `fastlane/metadata/`) to App Store Connect
589+
#
590+
# @option [Boolean] with_screenshots (default: false) If true, will also upload the latest screenshot files to ASC
591+
#
592+
desc 'Upload the localized metadata to App Store Connect, optionally including screenshots.'
593+
lane :update_metadata_on_app_store_connect do |options|
594+
# Skip screenshots by default. The naming is "with" to make it clear that
595+
# callers need to opt-in to adding screenshots. The naming of the deliver
596+
# (upload_to_app_store) parameter, on the other hand, uses the skip verb.
597+
with_screenshots = options.fetch(:with_screenshots, false)
598+
skip_screenshots = !with_screenshots
599+
600+
upload_to_app_store(
601+
app_identifier: APP_STORE_VERSION_BUNDLE_IDENTIFIER,
602+
app_version: ios_get_app_version,
603+
skip_binary_upload: true,
604+
screenshots_path: File.join(FASTLANE_DIR, 'promo_screenshots'),
605+
skip_screenshots: skip_screenshots,
606+
overwrite_screenshots: true, # won't have effect if `skip_screenshots` is true
607+
phased_release: true,
608+
precheck_include_in_app_purchases: false,
609+
api_key_path: ASC_KEY_PATH
610+
)
611+
end
612+
588613
#####################################################################################
589614
# register_new_device
590615
# -----------------------------------------------------------------------------------

0 commit comments

Comments
 (0)