Skip to content

Commit

Permalink
Merge pull request #1084 from iangmaia/cleanup/deprecate-deliver-file
Browse files Browse the repository at this point in the history
Deprecate `Deliverfile` in favor of `Fastfile`
  • Loading branch information
AliSoftware authored Feb 10, 2023
2 parents f281b08 + 52e90be commit 6853f5e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 37 deletions.
36 changes: 0 additions & 36 deletions fastlane/Deliverfile

This file was deleted.

28 changes: 27 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ INTERNAL_SCHEME = 'Simplenote'
APP_STORE_SCHEME = 'Simplenote-AppStore'
BUILD_FOLDER = 'build'
APP_STORE_CONNECT_API_KEY_PATH = File.join(Dir.home, '.configure', 'simplenote-macos', 'secrets', 'app_store_connect_fastlane_api_key.json')
APP_STORE_BUNDLE_IDENTIFIER = 'com.automattic.SimplenoteMac'

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

ios_bump_version_release()
ios_bump_version_release(skip_deliver: true)
new_version = ios_get_app_version()
ios_update_release_notes(new_version: new_version)
setbranchprotection(repository:GHHELPER_REPO, branch: "release/#{new_version}")
Expand Down Expand Up @@ -366,6 +367,31 @@ end
end
end

# Upload the localized metadata (from `fastlane/metadata/`) to App Store Connect
#
# @option [Boolean] with_screenshots (default: false) If true, will also upload the latest screenshot files to ASC
#
desc 'Upload the localized metadata to App Store Connect, optionally including screenshots.'
lane :update_metadata_on_app_store_connect do |options|
# Skip screenshots by default. The naming is "with" to make it clear that
# callers need to opt-in to adding screenshots. The naming of the deliver
# (upload_to_app_store) parameter, on the other hand, uses the skip verb.
with_screenshots = options.fetch(:with_screenshots, false)
skip_screenshots = !with_screenshots

upload_to_app_store(
app_identifier: APP_STORE_BUNDLE_IDENTIFIER,
app_version: ios_get_app_version,
skip_binary_upload: true,
screenshots_path: './screenshots/',
skip_screenshots: skip_screenshots,
overwrite_screenshots: true, # won't have effect if `skip_screenshots` is true
phased_release: true,
precheck_include_in_app_purchases: false,
api_key_path: APP_STORE_CONNECT_API_KEY_PATH
)
end

# Temporary lane to automate the process of uploading the .app manually
# exported after archiving the Simplenote scheme from Xcode.
#
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/copyright.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2023 Automattic
1 change: 1 addition & 0 deletions fastlane/metadata/default/privacy_url.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://simplenote.com/privacy/

0 comments on commit 6853f5e

Please sign in to comment.