Skip to content

Commit 3b67d73

Browse files
committed
Make "app_clip_default_experience_metadata_path" optional
1 parent 4fe65a9 commit 3b67d73

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

deliver/lib/deliver/loader.rb

+4-3
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ def self.load_app_screenshots(root, ignore_validation)
121121
# will cause an error. There may only be a max of one image per language and each image must be
122122
# exactly 1800x1200.
123123
#
124-
# @param root [String] A directory path @param ignore_validation [String] Set false not to raise
125-
# the error when finding invalid folder name @return [Array<Deliver::AppClipHeaderImage>] The
126-
# list of AppClipHeaderImage that exist under given `root` directory
124+
# @param root [String] A directory path
125+
# @param ignore_validation [String] Set false not to raise the error when
126+
# finding invalid folder name @return [Array<Deliver::AppClipHeaderImage>]
127+
# The list of AppClipHeaderImage that exists under given `root` directory
127128
def self.load_app_clip_header_images(root, ignore_validation)
128129
app_clip_header_images = language_folders(root, ignore_validation, true).flat_map do |language_folder|
129130
paths = language_folder.file_paths

deliver/lib/deliver/upload_app_clip_default_experience_metadata.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class UploadAppClipDefaultExperienceMetadata
1818

1919
def upload_metadata(options)
2020
# app clip default experience metadata is not editable in a live version
21-
return if options[:edit_live] || options[:skip_metadata]
21+
return if options[:edit_live] || options[:app_clip_default_experience_metadata_path].nil? || options[:skip_metadata]
2222

2323
# load the metadata from the filesystem before uploading
2424
load_from_filesystem(options)
@@ -70,7 +70,6 @@ def upload_metadata(options)
7070
# Loads the app clip default experience metadata files and stores them into the options object
7171
def load_from_filesystem(options)
7272
metadata_path = options[:app_clip_default_experience_metadata_path]
73-
return if options[:skip_metadata] || metadata_path.nil?
7473

7574
# Load localised data
7675
ignore_validation = options[:ignore_language_directory_validation]

fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb

+4-4
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ app_clip_review_information(
252252
)
253253
```
254254

255-
You can also provide these values by creating files in a `metadata/app_clip_review_information/` directory. The file names must match the pattern `<key>.txt` (e.g. `invocation_urls`). The contents of each file will be used as the value for the matching key. Values provided in the `Deliverfile` or `Fastfile` will be take priority over values from these files.
255+
You can also provide these values by creating files in a `metadata/app_clip_review_information/` directory. The file names must match the pattern `<key>.txt` (e.g. `invocation_urls`). The contents of each file will be used as the value for the matching key. Values provided in the `Deliverfile` or `Fastfile` will take priority over values from these files.
256256

257257
Example of the `invocation_urls.txt` file:
258258

@@ -547,7 +547,7 @@ Key | Editable While Live | Directory | Filename | Deprecated Filename
547547

548548
## Available App Clip Metadata Folder Options
549549

550-
_deliver_ allows for metadata to be set through `.txt` files in the App Clip metadata folder. This folder can be set using `app_clip_default_experience_metadata_path`. Below are all allowed metadata options.
550+
_deliver_ allows for metadata to be set through `.txt` files in the App Clip metadata folder. This folder can be set using `app_clip_default_experience_metadata_path`. Below are all the allowed metadata options.
551551

552552
### Non-Localized Metadata
553553

@@ -828,8 +828,8 @@ The default App Store Connect behavior is to not carry-over the previous version
828828
experience metadata. This is a contradictory behavior because it automatically carries over all
829829
other version metadata when creating a new version.
830830

831-
_deliver_ fixes this issue by default carrying over the previous version's default App Clip
832-
experience metadata even if the options above are not specified.
831+
_deliver_ fixes this issue by carrying over the previous version's default App Clip
832+
experience metadata by default, even if the options above are not specified.
833833

834834
Example usage in your `Deliverfile`:
835835

0 commit comments

Comments
 (0)