Skip to content

Commit 739a14c

Browse files
committed
Do not expect nil returned by upload()
1 parent ce859cf commit 739a14c

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_action.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ def self.run(params)
3434
app_view = binary_type == :AAB ? 'FULL' : 'BASIC'
3535
app = fad_api_client.get_app(app_id, app_view)
3636
validate_app!(app, binary_type)
37-
3837
release_id = fad_api_client.upload(app.project_number, app_id, binary_path, platform.to_s)
39-
if release_id.nil?
40-
return
41-
end
4238

4339
if binary_type == :AAB && app.aab_certificate.empty?
4440
updated_app = fad_api_client.get_app(app_id)

lib/fastlane/plugin/firebase_app_distribution/client/firebase_app_distribution_api_client.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ def upload_binary(app_id, binary_path, platform)
127127
# app_id - Firebase app ID
128128
# binary_path - Absolute path to your app's aab/apk/ipa file
129129
#
130-
# Returns the release_id on a successful release, otherwise returns nil.
130+
# Returns the release_id of the uploaded release.
131131
#
132-
# Throws a UI error if the number of polling retries exceeds MAX_POLLING_RETRIES
133-
# Crashes if not able to upload the binary
132+
# Crashes if the number of polling retries exceeds MAX_POLLING_RETRIES or if the binary cannot
133+
# be uploaded.
134134
def upload(project_number, app_id, binary_path, platform)
135135
binary_type = binary_type_from_path(binary_path)
136136

0 commit comments

Comments
 (0)