fastlane-plugin-firebase_app_distribution 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ac0c2dc12f234aed77fd40f52be02c88131789e574e7081cd6d78153cda45a6
4
- data.tar.gz: 27c04b470cd424a3d847d372a42be4caaac85ff519a7ddaa3edd6a7706139186
3
+ metadata.gz: c5690358deeb4e414dbfa9de99dd70aec8eb3a58ef77ebb03a9617ffdfb38c38
4
+ data.tar.gz: aa55223435954d0a72a283434ec9ee045bf4b7eb28f3a1f6584b20d1a8723bb7
5
5
  SHA512:
6
- metadata.gz: 849acba39932e5a61fa292ae8266173d5f4763f9239ba90de6ff74291db0e5ebf1cfbcf6fc55aa6eba29b9a9d75ae610a935ac192c9eebf062c3fd26ea3da2c0
7
- data.tar.gz: 5d382aa5887b3d5c1c993323f4332ca0d09bc04fea91e37be73494c67a8425d97e00d36c7c9c9680c1a1493b8d25ab797281798e46220876ef206a990086b4c2
6
+ metadata.gz: c01a0eb7cb2bca6727529de5a056f936e846438b379b218ca545febb649c0136a9a67c1ed54c36cd386ec06247bb8c3dc88dc812478e5a7ebf0fdde1dbc09dcf
7
+ data.tar.gz: 7fca01eadddd637a2b7252100a9187c289930d186ed95aef0bb769f9f19da77bf2588989d779d3b3103b4b869ee09db0e424f3aca8052684cb16ce5989ca04f6
@@ -8,7 +8,6 @@ require_relative '../helper/firebase_app_distribution_error_message'
8
8
  require_relative '../client/firebase_app_distribution_api_client'
9
9
  require_relative '../helper/firebase_app_distribution_auth_client'
10
10
 
11
- ## TODO: should always use a file underneath? I think so.
12
11
  ## How should we document the usage of release notes?
13
12
  module Fastlane
14
13
  module Actions
@@ -34,11 +33,7 @@ module Fastlane
34
33
  app_view = binary_type == :AAB ? 'FULL' : 'BASIC'
35
34
  app = fad_api_client.get_app(app_id, app_view)
36
35
  validate_app!(app, binary_type)
37
-
38
36
  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
42
37
 
43
38
  if binary_type == :AAB && app.aab_certificate.empty?
44
39
  updated_app = fad_api_client.get_app(app_id)
@@ -127,10 +127,10 @@ module Fastlane
127
127
  # app_id - Firebase app ID
128
128
  # binary_path - Absolute path to your app's aab/apk/ipa file
129
129
  #
130
- # Returns the release_id on a successful release, otherwise returns nil.
130
+ # Returns the release_id of the uploaded release.
131
131
  #
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.
134
134
  def upload(project_number, app_id, binary_path, platform)
135
135
  binary_type = binary_type_from_path(binary_path)
136
136
 
@@ -159,8 +159,7 @@ module Fastlane
159
159
  end
160
160
  end
161
161
  unless upload_status_response.success?
162
- UI.error("It took longer than expected to process your #{binary_type}, please try again.")
163
- return nil
162
+ UI.crash!("It took longer than expected to process your #{binary_type}, please try again.")
164
163
  end
165
164
  end
166
165
  upload_status_response.release_id
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module FirebaseAppDistribution
3
- VERSION = "0.2.7"
3
+ VERSION = "0.2.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-firebase_app_distribution
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Natchev
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-04-20 00:00:00.000000000 Z
13
+ date: 2021-05-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pry