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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a5f715b5fbedb6ec521bc24d063feecba8975b23834fe17dd6cad0811abd4e6
|
4
|
+
data.tar.gz: e49bcda8f4bd1a5bf21d84bf94775b6cc51ced944205f3711474ef44ba2d42ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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' => '
|
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
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
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
|
-
|
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
|
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.
|
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:
|
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.
|
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
|