fastlane-plugin-huawei_appgallery_connect 1.0.3 → 1.0.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: 5bbbefce5843731853e8e9864098eb692109b1e380e0eebfc24c7854a99c2689
4
- data.tar.gz: 4d92d585819bd4cc980808f5871f122e2277256cbd65dc62131bbddb31777921
3
+ metadata.gz: 84afdec450a7cf11208dcad9dae2fa62ad089a3a0907c3df4c81f3dd4488814d
4
+ data.tar.gz: de7053fd3678df52953178b2d2f0bac8994e0ad6a3f4176cb473cbee4781766b
5
5
  SHA512:
6
- metadata.gz: 1f57ed7961c15b5c5910291ae651d59aa5134275f8a41b6204fdb9ababeac82cdf87f67c731152f67723514ab31935ebf8d7264ba8b0b8f10dcb2a0a7301bdfe
7
- data.tar.gz: ef2e81eeef5091ecf91c96a3e90ca93d2e4f98c544dd229ad8a83121a01d025abfc1a8c767ba708a5d6a5c2ca560be54ce532e7828df8f34867fae39d2a5761a
6
+ metadata.gz: 439ba5077088030af209b3e875afa3ecca3fe871b2a15c60501570a29b89469eef609cda6c504c8ea8d460a2a5d2f3d86d7c2d759c1b585e29e76bb8bcc4ee11
7
+ data.tar.gz: 994abf9690ff654d51023ab4da43ef3459197a015246d3b9310962037cc29172a2e2f651e935b6a2f5a12d3342b417db14284af4dabd31c063044c989da796be
@@ -15,9 +15,7 @@ module Fastlane
15
15
  Helper::HuaweiAppgalleryConnectHelper.update_appinfo(params[:client_id], token, params[:app_id], params[:privacy_policy_url])
16
16
  end
17
17
 
18
- apk_lang = params[:apk_lang] == nil ? 'en-US' : params[:apk_lang]
19
-
20
- upload_app = Helper::HuaweiAppgalleryConnectHelper.upload_app(token, params[:client_id], params[:app_id], params[:apk_path], apk_lang)
18
+ upload_app = Helper::HuaweiAppgalleryConnectHelper.upload_app(token, params[:client_id], params[:app_id], params[:apk_path])
21
19
 
22
20
  if upload_app
23
21
  Helper::HuaweiAppgalleryConnectHelper.submit_app_for_review(token, params)
@@ -60,7 +60,7 @@ module Fastlane
60
60
  end
61
61
 
62
62
 
63
- def self.upload_app(token, client_id, app_id, apk_path, apk_lang)
63
+ def self.upload_app(token, client_id, app_id, apk_path)
64
64
  UI.message("Fetching upload URL")
65
65
 
66
66
  uri = URI.parse("https://connect-api.cloud.huawei.com/api/publish/v2/upload-url?appId=#{app_id}&suffix=apk")
@@ -121,7 +121,7 @@ module Fastlane
121
121
  request["client_id"] = client_id
122
122
  request["Authorization"] = "Bearer #{token}"
123
123
 
124
- data = {fileType: 5, lang: apk_lang, files: [{
124
+ data = {fileType: 5, files: [{
125
125
 
126
126
  fileName: "release.apk",
127
127
  fileDestUrl: result_json['result']['UploadFileRsp']['fileInfoList'][0]['fileDestUlr'],
@@ -138,6 +138,7 @@ module Fastlane
138
138
  UI.success("App information saved.")
139
139
  return true
140
140
  else
141
+ UI.user_error!(result_json)
141
142
  UI.user_error!("Failed to save app information")
142
143
  return false
143
144
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module HuaweiAppgalleryConnect
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.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_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shreejan Shrestha
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-21 00:00:00.000000000 Z
11
+ date: 2020-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry