@@ -25,6 +25,7 @@ INTERNAL_SCHEME = 'Simplenote'
25
25
APP_STORE_SCHEME = 'Simplenote-AppStore'
26
26
BUILD_FOLDER = 'build'
27
27
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'
28
29
29
30
# On CI, it's useful to skip code signing unless necessary to avoid spending
30
31
# time syncing the certificates and profiles with match. And while not
119
120
lane :code_freeze do | options |
120
121
old_version = ios_codefreeze_prechecks ( options )
121
122
122
- ios_bump_version_release ( )
123
+ ios_bump_version_release ( skip_deliver : true )
123
124
new_version = ios_get_app_version ( )
124
125
ios_update_release_notes ( new_version : new_version )
125
126
setbranchprotection ( repository :GHHELPER_REPO , branch : "release/#{ new_version } " )
366
367
end
367
368
end
368
369
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
+
369
395
# Temporary lane to automate the process of uploading the .app manually
370
396
# exported after archiving the Simplenote scheme from Xcode.
371
397
#
0 commit comments