fastlane-plugin-pgyer 0.2.9 → 0.3.2
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 +4 -4
- data/README.md +17 -1
- data/lib/fastlane/plugin/pgyer/actions/pgyer_action.rb +26 -3
- data/lib/fastlane/plugin/pgyer/version.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4aab71c4ccfbd932cce469d005c061664e6ca70b45969513fb811ded4c668562
|
4
|
+
data.tar.gz: 20c05f3049146a01bf0913df72d85289df1f2a1d4753bfdd6447a4a73a68ee2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f6df6193af437a950c61ba737e19bee1282b71c0bc2fb8fabfb151c6928bf44ca6d34acf668e4d64a342704aa74f7dce76f0f2d0f60d81c4061473854e3d541
|
7
|
+
data.tar.gz: f678c0607a076a3df8ba0315316fa0bf8278a4a3b109e1fb448a6298f5b50c4c33a7bb8c9549a01553331cd12c6841748f67dcaf8ac4b13277c26769503eeb3d
|
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
|
22
|
+
type = get_type(params)
|
22
23
|
|
23
24
|
UI.message "build_file: #{build_file}, type: #{type}"
|
24
25
|
|
@@ -162,7 +163,7 @@ 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),
|
@@ -174,10 +175,22 @@ module Fastlane
|
|
174
175
|
verify_block: proc do |value|
|
175
176
|
UI.user_error!("Couldn't find ipa file at path '#{value}'") unless File.exist?(value)
|
176
177
|
end,
|
177
|
-
conflicting_options: [:apk],
|
178
|
+
conflicting_options: [:apk, :hap],
|
178
179
|
conflict_block: proc do |value|
|
179
180
|
UI.user_error!("You can't use 'ipa' and '#{value.key}' options in one run")
|
180
181
|
end),
|
182
|
+
FastlaneCore::ConfigItem.new(key: :hap,
|
183
|
+
env_name: "PGYER_HAP",
|
184
|
+
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",
|
185
|
+
default_value: Actions.lane_context[:HVIGOR_HAP_OUTPUT_PATH],
|
186
|
+
optional: true,
|
187
|
+
verify_block: proc do |value|
|
188
|
+
UI.user_error!("Couldn't find hap file at path '#{value}'") unless File.exist?(value)
|
189
|
+
end,
|
190
|
+
conflicting_options: [:apk, :ipa],
|
191
|
+
conflict_block: proc do |value|
|
192
|
+
UI.user_error!("You can't use 'hap' and '#{value.key}' options in one run")
|
193
|
+
end),
|
181
194
|
FastlaneCore::ConfigItem.new(key: :password,
|
182
195
|
env_name: "PGYER_PASSWORD",
|
183
196
|
description: "Set password to protect app",
|
@@ -248,6 +261,16 @@ module Fastlane
|
|
248
261
|
|
249
262
|
private
|
250
263
|
|
264
|
+
def self.get_type(params)
|
265
|
+
type = params[:ipa].nil? ? "android" : "ios"
|
266
|
+
|
267
|
+
if !params[:hap].nil?
|
268
|
+
type = "hap"
|
269
|
+
end
|
270
|
+
|
271
|
+
type
|
272
|
+
end
|
273
|
+
|
251
274
|
def self.checkPublishStatus(client, api_host, api_key, buildKey)
|
252
275
|
url ="#{api_host}/buildInfo"
|
253
276
|
UI.message "checkPublishStatus url: #{url}"
|
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
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rexshi
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
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.
|
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: []
|