Skip to content

Commit 6853f5e

Browse files
authored
Merge pull request #1084 from iangmaia/cleanup/deprecate-deliver-file
Deprecate `Deliverfile` in favor of `Fastfile`
2 parents f281b08 + 52e90be commit 6853f5e

File tree

4 files changed

+29
-37
lines changed

4 files changed

+29
-37
lines changed

fastlane/Deliverfile

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

fastlane/Fastfile

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ INTERNAL_SCHEME = 'Simplenote'
2525
APP_STORE_SCHEME = 'Simplenote-AppStore'
2626
BUILD_FOLDER = 'build'
2727
APP_STORE_CONNECT_API_KEY_PATH = File.join(Dir.home, '.configure', 'simplenote-macos', 'secrets', 'app_store_connect_fastlane_api_key.json')
28+
APP_STORE_BUNDLE_IDENTIFIER = 'com.automattic.SimplenoteMac'
2829

2930
# On CI, it's useful to skip code signing unless necessary to avoid spending
3031
# time syncing the certificates and profiles with match. And while not
@@ -119,7 +120,7 @@ end
119120
lane :code_freeze do | options |
120121
old_version = ios_codefreeze_prechecks(options)
121122

122-
ios_bump_version_release()
123+
ios_bump_version_release(skip_deliver: true)
123124
new_version = ios_get_app_version()
124125
ios_update_release_notes(new_version: new_version)
125126
setbranchprotection(repository:GHHELPER_REPO, branch: "release/#{new_version}")
@@ -366,6 +367,31 @@ end
366367
end
367368
end
368369

370+
# Upload the localized metadata (from `fastlane/metadata/`) to App Store Connect
371+
#
372+
# @option [Boolean] with_screenshots (default: false) If true, will also upload the latest screenshot files to ASC
373+
#
374+
desc 'Upload the localized metadata to App Store Connect, optionally including screenshots.'
375+
lane :update_metadata_on_app_store_connect do |options|
376+
# Skip screenshots by default. The naming is "with" to make it clear that
377+
# callers need to opt-in to adding screenshots. The naming of the deliver
378+
# (upload_to_app_store) parameter, on the other hand, uses the skip verb.
379+
with_screenshots = options.fetch(:with_screenshots, false)
380+
skip_screenshots = !with_screenshots
381+
382+
upload_to_app_store(
383+
app_identifier: APP_STORE_BUNDLE_IDENTIFIER,
384+
app_version: ios_get_app_version,
385+
skip_binary_upload: true,
386+
screenshots_path: './screenshots/',
387+
skip_screenshots: skip_screenshots,
388+
overwrite_screenshots: true, # won't have effect if `skip_screenshots` is true
389+
phased_release: true,
390+
precheck_include_in_app_purchases: false,
391+
api_key_path: APP_STORE_CONNECT_API_KEY_PATH
392+
)
393+
end
394+
369395
# Temporary lane to automate the process of uploading the .app manually
370396
# exported after archiving the Simplenote scheme from Xcode.
371397
#

fastlane/metadata/copyright.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2023 Automattic
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://simplenote.com/privacy/

0 commit comments

Comments
 (0)