fastlane-plugin-pgyer 0.2.9 → 0.3.1

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: 7261b2197faf3f763d223977c41ee54a636780f0af53732b5187069935a38065
4
- data.tar.gz: a1bd3208a9df53bad956d0a91200e1913a6c8fbee534f65822b22660555295f2
3
+ metadata.gz: 741284528b903fbc1a290128b51cbed6edaa428d734da99514a3e15e353d0534
4
+ data.tar.gz: 6fe64045b3a0fecb3da47ed3cc8a7d3915736a0e85f47a4bcb5386f9a4a19373
5
5
  SHA512:
6
- metadata.gz: f513a7c322858279564f883461de6147ace1ff1b7630bb45fa23f89558e4cd0fff14b5881f07d5f487022a0d395136bc89e0cf28b4cf60a101cc96c5809c9c48
7
- data.tar.gz: 7048718bcfb9dd9512cccc7a12ea3e044a53537cc53747c6927341a85e47b19ca850104e6a964c553fdce75a5c7443ea576b618d8f47d3c7ffd3607cbce5eec0
6
+ metadata.gz: 94cef84dc0babdac14f62ed7d4ea53a73ff72bf788f463517743c921a427c30c8c6fc82a69ce4fbb5c0f19e922d457dedd5c4e31baed3402323b8960ae3005a7
7
+ data.tar.gz: 4eeef611fdc5c90845577d22d7f1f541598313a19776c459c032ea483d3c1f4b3a41ef05700facad77f82f5193491693668488c8c7202e9db21d9d2ebc747397
data/README.md CHANGED
@@ -66,7 +66,7 @@ end
66
66
  ```
67
67
 
68
68
  Set a version update description for App:
69
-
69
+ acd88a1a52f0818dc7923150c4d86f08
70
70
  ```
71
71
  lane :beta do
72
72
  gym
@@ -95,6 +95,22 @@ end
95
95
  ```
96
96
 
97
97
 
98
+ HAP file upload
99
+
100
+ pgyer supports hap file to upload, use params hap to specify the absolute file path.
101
+
102
+ ```ruby
103
+ lane :beta do
104
+ gym
105
+ pgyer(api_key: "7f15xxxxxxxxxxxxxxxxxx141", hap: "xxxx")
106
+ end
107
+ ```
108
+
109
+ or in bash
110
+ ```bash
111
+ fastlane run pgyer api_key:7f15xxxxxxxxxxxxxxxxxx141 hap:xxx.hap
112
+ ```
113
+
98
114
 
99
115
 
100
116
  And more params
@@ -12,13 +12,14 @@ module Fastlane
12
12
  build_file = [
13
13
  params[:ipa],
14
14
  params[:apk],
15
+ params[:hap],
15
16
  ].detect { |e| !e.to_s.empty? }
16
17
 
17
18
  if build_file.nil?
18
19
  UI.user_error!("You have to provide a build file")
19
20
  end
20
21
 
21
- type = params[:ipa].nil? ? "android" : "ios"
22
+ type = get_type(params)
22
23
 
23
24
  UI.message "build_file: #{build_file}, type: #{type}"
24
25
 
@@ -162,10 +163,21 @@ module Fastlane
162
163
  verify_block: proc do |value|
163
164
  UI.user_error!("Couldn't find apk file at path '#{value}'") unless File.exist?(value)
164
165
  end,
165
- conflicting_options: [:ipa],
166
+ conflicting_options: [:ipa, :hap],
166
167
  conflict_block: proc do |value|
167
168
  UI.user_error!("You can't use 'apk' and '#{value.key}' options in one run")
168
169
  end),
170
+ FastlaneCore::ConfigItem.new(key: :hap,
171
+ env_name: "PGYER_HAP",
172
+ description: "Path to your HAP file",
173
+ optional: true,
174
+ verify_block: proc do |value|
175
+ UI.user_error!("Couldn't find hap file at path '#{value}'") unless File.exist?(value)
176
+ end,
177
+ conflicting_options: [:ipa, :apk],
178
+ conflict_block: proc do |value|
179
+ UI.user_error!("You can't use 'hap' and '#{value.key}' options in one run")
180
+ end),
169
181
  FastlaneCore::ConfigItem.new(key: :ipa,
170
182
  env_name: "PGYER_IPA",
171
183
  description: "Path to your IPA file. Optional if you use the _gym_ or _xcodebuild_ action. For Mac zip the .app. For Android provide path to .apk file",
@@ -174,10 +186,22 @@ module Fastlane
174
186
  verify_block: proc do |value|
175
187
  UI.user_error!("Couldn't find ipa file at path '#{value}'") unless File.exist?(value)
176
188
  end,
177
- conflicting_options: [:apk],
189
+ conflicting_options: [:apk, :hap],
178
190
  conflict_block: proc do |value|
179
191
  UI.user_error!("You can't use 'ipa' and '#{value.key}' options in one run")
180
192
  end),
193
+ FastlaneCore::ConfigItem.new(key: :hap,
194
+ env_name: "PGYER_HAP",
195
+ description: "Path to your HAP file. Optional if you use the _gym_ or _xcodebuild_ action. For Mac zip the .app. For Android provide path to .apk file",
196
+ default_value: Actions.lane_context[:HVIGOR_HAP_OUTPUT_PATH],
197
+ optional: true,
198
+ verify_block: proc do |value|
199
+ UI.user_error!("Couldn't find hap file at path '#{value}'") unless File.exist?(value)
200
+ end,
201
+ conflicting_options: [:apk, :ipa],
202
+ conflict_block: proc do |value|
203
+ UI.user_error!("You can't use 'hap' and '#{value.key}' options in one run")
204
+ end),
181
205
  FastlaneCore::ConfigItem.new(key: :password,
182
206
  env_name: "PGYER_PASSWORD",
183
207
  description: "Set password to protect app",
@@ -248,6 +272,16 @@ module Fastlane
248
272
 
249
273
  private
250
274
 
275
+ def self.get_type(params)
276
+ type = params[:ipa].nil? ? "android" : "ios"
277
+
278
+ if !params[:hap].nil?
279
+ type = "hap"
280
+ end
281
+
282
+ type
283
+ end
284
+
251
285
  def self.checkPublishStatus(client, api_host, api_key, buildKey)
252
286
  url ="#{api_host}/buildInfo"
253
287
  UI.message "checkPublishStatus url: #{url}"
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Pgyer
3
- VERSION = "0.2.9"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-pgyer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - rexshi
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-05-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -150,7 +149,6 @@ dependencies:
150
149
  - - ">="
151
150
  - !ruby/object:Gem::Version
152
151
  version: '0'
153
- description:
154
152
  email: rexshi@pgyer.com
155
153
  executables: []
156
154
  extensions: []
@@ -166,7 +164,6 @@ homepage: https://github.com/shishirui/fastlane-plugin-pgyer
166
164
  licenses:
167
165
  - MIT
168
166
  metadata: {}
169
- post_install_message:
170
167
  rdoc_options: []
171
168
  require_paths:
172
169
  - lib
@@ -181,8 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
178
  - !ruby/object:Gem::Version
182
179
  version: '0'
183
180
  requirements: []
184
- rubygems_version: 3.4.6
185
- signing_key:
181
+ rubygems_version: 3.7.1
186
182
  specification_version: 4
187
183
  summary: distribute app to pgyer beta testing service
188
184
  test_files: []