fastlane-plugin-huawei_appgallery_connect 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +51 -25
- data/lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_submit_for_review.rb +6 -0
- data/lib/fastlane/plugin/huawei_appgallery_connect/helper/huawei_appgallery_connect_helper.rb +4 -4
- data/lib/fastlane/plugin/huawei_appgallery_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5551239cf32bab29acd6d2d70b1623731c4629f09f102a98d05f5b0e7ee2bca
|
4
|
+
data.tar.gz: 83446bfb3a35d813abaa29a09af38185f136ae73c3f08d07f5620f80bedfc17b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 839662a96b67bec48d6c35e29151db9ab9d91c759de901734eed761392ffc93f3c75f154ca9bf790b38a05bac2e991d4e7896d19babe5d4eec4192f115efd573
|
7
|
+
data.tar.gz: 1912a210ee2fb2e53f5d5d5adeeae498f98d10e579d84cae441c6b75db8f98d2cea47bcc7893c6df0eb54bff074013589c547240dd8c2365724b9fe38473a825
|
data/README.md
CHANGED
@@ -12,41 +12,67 @@ fastlane add_plugin huawei_appgallery_connect
|
|
12
12
|
|
13
13
|
## About huawei_appgallery_connect
|
14
14
|
|
15
|
-
Huawei AppGallery Connect Plugin
|
15
|
+
Huawei AppGallery Connect Plugin can be used to upload Android application on the Huawei App Gallery using fastlane.
|
16
16
|
|
17
|
-
|
17
|
+
## Usage
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
22
|
-
|
23
|
-
**Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
|
24
|
-
|
25
|
-
## Run tests for this plugin
|
26
|
-
|
27
|
-
To run both the tests, and code style validation, run
|
19
|
+
To get started you will need the client id, client Secret & app ID which can be obtained from your Huawei AppGallery Connect account.
|
28
20
|
|
29
21
|
```
|
30
|
-
|
22
|
+
huawei_appgallery_connect(
|
23
|
+
client_id: "<CLIENT_ID>",
|
24
|
+
client_secret: "<CLIENT_SECRET>",
|
25
|
+
app_id: "<APP_ID>",
|
26
|
+
apk_path: "<APK_PATH>"
|
27
|
+
|
28
|
+
# Optional, Parameter beyond this are optional
|
29
|
+
|
30
|
+
submit_for_review: false,
|
31
|
+
|
32
|
+
privacy_policy_url: "https://example.com",
|
33
|
+
changelog_path: "<PATH_TO_CHANGELOG_FILE>",
|
34
|
+
|
35
|
+
# release time to release app on specific date
|
36
|
+
release_time: "2019-12-25T07:05:15+0000",
|
37
|
+
|
38
|
+
# For phase wise release: set these parameters
|
39
|
+
phase_wise_release: true,
|
40
|
+
phase_release_start_time: "2019-12-25T07:05:15+0000",
|
41
|
+
phase_release_end_time: "2019-12-28T07:05:15+0000",
|
42
|
+
phase_release_percent: "10.00",
|
43
|
+
phase_release_description: "<DESCRIPTION>"
|
44
|
+
)
|
31
45
|
```
|
32
46
|
|
33
|
-
|
34
|
-
```
|
35
|
-
rubocop -a
|
36
|
-
```
|
47
|
+
The following action can be used to submit the app for review if submit_for_review was set to false during the upload of apk
|
37
48
|
|
38
|
-
|
39
|
-
|
40
|
-
|
49
|
+
```
|
50
|
+
huawei_appgallery_connect_submit_for_review(
|
51
|
+
client_id: "<CLIENT_ID>",
|
52
|
+
client_secret: "<CLIENT_SECRET>",
|
53
|
+
app_id: "<APP_ID>",
|
41
54
|
|
42
|
-
## Troubleshooting
|
43
55
|
|
44
|
-
|
56
|
+
# Optional, Parameter beyond this are optional
|
45
57
|
|
46
|
-
|
58
|
+
# release time to release app on specific date
|
59
|
+
release_time: "2019-12-25T07:05:15+0000",
|
47
60
|
|
48
|
-
For
|
61
|
+
# For phase wise release: set these parameters
|
62
|
+
phase_wise_release: true,
|
63
|
+
phase_release_start_time: "2019-12-25T07:05:15+0000",
|
64
|
+
phase_release_end_time: "2019-12-28T07:05:15+0000",
|
65
|
+
phase_release_percent: "10.00",
|
66
|
+
phase_release_description: "<DESCRIPTION>"
|
67
|
+
)
|
68
|
+
```
|
69
|
+
You can also retreive app info by making use of the following action
|
49
70
|
|
50
|
-
|
71
|
+
```
|
72
|
+
huawei_appgallery_connect_get_app_info(
|
73
|
+
client_id: "<CLIENT_ID>",
|
74
|
+
client_secret: "<CLIENT_SECRET>",
|
75
|
+
app_id: "<APP_ID>"
|
76
|
+
)
|
51
77
|
|
52
|
-
|
78
|
+
```
|
@@ -88,6 +88,12 @@ module Fastlane
|
|
88
88
|
description: "Release time in UTC format for app release on a specific date. The format is yyyy-MM-dd'T'HH:mm:ssZZ)",
|
89
89
|
optional: true,
|
90
90
|
conflicting_options: [:phase_wise_release],
|
91
|
+
type: String),
|
92
|
+
|
93
|
+
FastlaneCore::ConfigItem.new(key: :changelog_path,
|
94
|
+
env_name: "HUAWEI_APPGALLERY_CONNECT_CHANGELOG_PATH",
|
95
|
+
description: "Path to Changelog file (Default empty)",
|
96
|
+
optional: true,
|
91
97
|
type: String)
|
92
98
|
]
|
93
99
|
end
|
data/lib/fastlane/plugin/huawei_appgallery_connect/helper/huawei_appgallery_connect_helper.rb
CHANGED
@@ -41,8 +41,8 @@ module Fastlane
|
|
41
41
|
UI.success("Successfully getting app info")
|
42
42
|
return result_json['appInfo']
|
43
43
|
else
|
44
|
+
UI.user_error("Failed to get app info")
|
44
45
|
UI.user_error!(result_json)
|
45
|
-
UI.user_error!("Failed to get app info")
|
46
46
|
end
|
47
47
|
|
48
48
|
end
|
@@ -70,8 +70,8 @@ module Fastlane
|
|
70
70
|
if result_json['ret']['code'] == 0
|
71
71
|
UI.success("Successfully updated app info")
|
72
72
|
else
|
73
|
+
UI.user_error("Failed to update app info")
|
73
74
|
UI.user_error!(result_json)
|
74
|
-
UI.user_error!("Failed to update app info")
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
@@ -151,8 +151,8 @@ module Fastlane
|
|
151
151
|
UI.success("App information saved.")
|
152
152
|
return true
|
153
153
|
else
|
154
|
+
UI.user_error("Failed to save app information")
|
154
155
|
UI.user_error!(result_json)
|
155
|
-
UI.user_error!("Failed to save app information")
|
156
156
|
return false
|
157
157
|
end
|
158
158
|
else
|
@@ -227,8 +227,8 @@ module Fastlane
|
|
227
227
|
if result_json['ret']['code'] == 0
|
228
228
|
UI.success("Successfully submitted app for review")
|
229
229
|
else
|
230
|
+
UI.user_error("Failed to submit app for review.")
|
230
231
|
UI.user_error!(result_json)
|
231
|
-
UI.user_error!("Failed to submit app for review.")
|
232
232
|
end
|
233
233
|
|
234
234
|
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.
|
4
|
+
version: 1.0.11
|
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-
|
11
|
+
date: 2020-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|