fastlane-plugin-huawei_appgallery_connect 1.0.8 → 1.0.9

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: 79a30fb2371ebc8ab4cc531106ef519b8f719e03301ff088ac8027faf7380cfc
4
- data.tar.gz: 86e5123da933da795f7d1fa4b727ca962ee9ead672d410df82215891772d1421
3
+ metadata.gz: 62bb6d84620a12414a3f6fd792adba9b3ad8f88f3258a17b382748a985ad3d4b
4
+ data.tar.gz: 159575bc63002b88227b152dd21bd5a0dba5ed52dd88345c989fab4c6eb6be50
5
5
  SHA512:
6
- metadata.gz: 330981b0a6bb87e589f50fd7ba8ef5ef96dc2220cd938cdf25c06b3dfa69e259eb7516576a6803b00eff3331940684b37eb4140de628317c80f71fc279df1576
7
- data.tar.gz: dfb4001f685be16e8146de6b2c6777d14663d64a825a200fbf13a831be356c8cb8c40274ee0447e4b62bccc3f2e224d711d5021bbffd16c8dca498c67d550bce
6
+ metadata.gz: 1d8974e5e6bc637023efa2ef172d1a9b5fe2c17b783714f5d49090b15dd0b7de291bc6920990ff12a5f9c81cd6fbbbbb6d8e240ec2abd5ed5bfa5fc8b67ccac0
7
+ data.tar.gz: 368c05e3a4aef7172aebada81fc17a1d71905b2e838de39f882068fcb8d5587bebd439ea909f8059d2c49332e45954c2ad26519e10a3097162b69510e8ef0bd0
@@ -0,0 +1,101 @@
1
+ require 'fastlane/action'
2
+ require_relative '../helper/huawei_appgallery_connect_helper'
3
+
4
+ module Fastlane
5
+ module Actions
6
+ class HuaweiAppgalleryConnectAction < Action
7
+ def self.run(params)
8
+ token = Helper::HuaweiAppgalleryConnectHelper.get_token(params[:client_id], params[:client_secret])
9
+
10
+ if token.nil?
11
+ UI.message("Cannot retrieve token, please check your client ID and client secret")
12
+ else
13
+
14
+ Helper::HuaweiAppgalleryConnectHelper.submit_app_for_review(token, params)
15
+ end
16
+ end
17
+
18
+ def self.description
19
+ "Huawei AppGallery Connect Plugin"
20
+ end
21
+
22
+ def self.authors
23
+ ["Shreejan Shrestha"]
24
+ end
25
+
26
+ def self.return_value
27
+ # If your method provides a return value, you can describe here what it does
28
+ end
29
+
30
+ def self.details
31
+ # Optional:
32
+ "Fastlane plugin to upload Android app to Huawei AppGallery Connect"
33
+ end
34
+
35
+ def self.available_options
36
+ [
37
+ FastlaneCore::ConfigItem.new(key: :client_id,
38
+ env_name: "HUAWEI_APPGALLERY_CONNECT_CLIENT_ID",
39
+ description: "Huawei AppGallery Connect Client ID",
40
+ optional: false,
41
+ type: String),
42
+
43
+ FastlaneCore::ConfigItem.new(key: :client_secret,
44
+ env_name: "HUAWEI_APPGALLERY_CONNECT_CLIENT_SECRET",
45
+ description: "Huawei AppGallery Connect Client Secret",
46
+ optional: false,
47
+ type: String),
48
+
49
+ FastlaneCore::ConfigItem.new(key: :app_id,
50
+ env_name: "HUAWEI_APPGALLERY_CONNECT_APP_ID",
51
+ description: "Huawei AppGallery Connect App ID",
52
+ optional: false,
53
+ type: String),
54
+
55
+ FastlaneCore::ConfigItem.new(key: :phase_wise_release,
56
+ env_name: "HUAWEI_APPGALLERY_CONNECT_PHASE_WISE_RELEASE",
57
+ description: "Phase wise release",
58
+ optional: true,
59
+ conflicting_options: [:release_time],
60
+ type: Boolean),
61
+
62
+ FastlaneCore::ConfigItem.new(key: :phase_release_start_time,
63
+ env_name: "HUAWEI_APPGALLERY_CONNECT_PHASE_WISE_RELEASE_START_TIME",
64
+ description: "Start time of the validity period of the release by phase. The value is UTC time in the following format: yyyy-MM-dd 'T' HH:mm:ssZZ",
65
+ optional: true,
66
+ type: String),
67
+
68
+ FastlaneCore::ConfigItem.new(key: :phase_release_end_time,
69
+ env_name: "HUAWEI_APPGALLERY_CONNECT_PHASE_WISE_RELEASE_END_TIME",
70
+ description: "End time of the validity period of the release by phase. The value is UTC time in the following format: yyyy-MM-dd 'T' HH:mm:ssZZ",
71
+ optional: true,
72
+ type: String),
73
+
74
+ FastlaneCore::ConfigItem.new(key: :phase_release_percent,
75
+ env_name: "HUAWEI_APPGALLERY_CONNECT_PHASE_WISE_RELEASE_PERCENT",
76
+ description: "Percentage of the release by phase. The value must be accurate to two decimal places and does not contain the percent sign (%)",
77
+ optional: true,
78
+ type: String),
79
+
80
+ FastlaneCore::ConfigItem.new(key: :phase_release_description,
81
+ env_name: "HUAWEI_APPGALLERY_CONNECT_PHASE_WISE_RELEASE_DESCRIPTION",
82
+ description: "Phase-based release description. (Max 500 characters)",
83
+ optional: true,
84
+ type: String),
85
+
86
+ FastlaneCore::ConfigItem.new(key: :release_time,
87
+ env_name: "HUAWEI_APPGALLERY_CONNECT_RELEASE_TIME",
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
+ optional: true,
90
+ conflicting_options: [:phase_wise_release],
91
+ type: String)
92
+ ]
93
+ end
94
+
95
+ def self.is_supported?(platform)
96
+ [:android].include?(platform)
97
+ true
98
+ end
99
+ end
100
+ end
101
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module HuaweiAppgalleryConnect
3
- VERSION = "1.0.8"
3
+ VERSION = "1.0.9"
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.8
4
+ version: 1.0.9
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-06-05 00:00:00.000000000 Z
11
+ date: 2020-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -147,6 +147,7 @@ files:
147
147
  - lib/fastlane/plugin/huawei_appgallery_connect.rb
148
148
  - lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_action.rb
149
149
  - lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_info.rb
150
+ - lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_submit_for_review.rb
150
151
  - lib/fastlane/plugin/huawei_appgallery_connect/helper/huawei_appgallery_connect_helper.rb
151
152
  - lib/fastlane/plugin/huawei_appgallery_connect/version.rb
152
153
  homepage: https://github.com/shr3jn/fastlane-plugin-huawei_appgallery_connect