fastlane-plugin-huawei_appgallery 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9760586a7e5237109bb4691be3130957b5300b2660017fe265ae285c3fd44ae3
4
- data.tar.gz: f45ad17400d6908fa19d0f00a0ee0d808f8486f6d345195d9390203b62ba02dc
3
+ metadata.gz: 2a5f715b5fbedb6ec521bc24d063feecba8975b23834fe17dd6cad0811abd4e6
4
+ data.tar.gz: e49bcda8f4bd1a5bf21d84bf94775b6cc51ced944205f3711474ef44ba2d42ac
5
5
  SHA512:
6
- metadata.gz: 77700c3d8da30622d95c083de9b8be3b3b9acbc1018afd433d3be113d67005cad95498672536e9c7314bfa2c6be831a7c4f8d1e5828741c62d767b820989a03b
7
- data.tar.gz: e5a107781d55369756906d6126b1c7e037d197a5e875297e8318258326083fe04ecd5db9cdc22997eec8b329cc4aed28166b7ad858cbf8b202efb48ff5bfc6a7
6
+ metadata.gz: 33545a9cc93f3f2a08b94313677adcbe89756f5eef46f512ad0d8d8f336f8be62460526911be7a491eb50659d1c7e6d47e30a780016009263f55ef8b9797e660
7
+ data.tar.gz: 790f1c0aa06517978371ed986e8d23b090133938207478ee13aee799d08c872f97abaedf62c0d73a464bfd90aaa23568df526f0d388c78650efee0bca51e0f11
@@ -148,7 +148,7 @@ module Fastlane
148
148
  content = {
149
149
  'fileType' => 5, # type 5 = RPK or APK
150
150
  'files' => [{
151
- 'fileName' => 'naviki-release.apk',
151
+ 'fileName' => 'fastlane-release.apk',
152
152
  'fileDestUrl' => apk_server_path
153
153
  }]
154
154
  }
@@ -175,15 +175,18 @@ module Fastlane
175
175
 
176
176
  def self.submit_app(client_id, access_token, app_id)
177
177
  UI.message('Submitting app for review ...')
178
- result_code = launch_submit_request(client_id, access_token, app_id)
179
- if result_code == 204144660 # https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/agcapi-returncode_v2
180
- UI.message('Submission failed, waiting some time and try again.')
181
- sleep(120)
182
- if launch_submit_request(client_id, access_token, app_id) != 0
183
- UI.user_error!('Submission failed again.')
178
+ loop do
179
+ result_code = launch_submit_request(client_id, access_token, app_id)
180
+ if result_code == 0
181
+ UI.message('Submission was successfull!')
182
+ return
183
+ elsif result_code == 204144660 || result_code == 204144727
184
+ # https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/agcapi-returncode_v2
185
+ UI.message('Submission failed, waiting some time and try again.')
186
+ sleep(120)
187
+ else
188
+ UI.user_error!('Submission failed.')
184
189
  end
185
- elsif result_code != 0
186
- UI.user_error!('Submission failed.')
187
190
  end
188
191
  end
189
192
 
@@ -212,13 +215,8 @@ module Fastlane
212
215
  result_json = JSON.parse(result.body)
213
216
  json_ret = result_json['ret']
214
217
  UI.message("app-submit ret: #{json_ret}")
215
- result_code = json_ret['code']
216
-
217
- if result_code == 0
218
- UI.message('Submission was successfull!')
219
- end
220
-
221
- return result_code
218
+
219
+ return json_ret['code']
222
220
  end
223
221
  end
224
222
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module HuaweiAppgallery
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-huawei_appgallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Kaiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-15 00:00:00.000000000 Z
11
+ date: 2022-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.1.2
170
+ rubygems_version: 3.3.5
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Plugin to deploy an app to the Huawei AppGallery