fastlane-plugin-pgyer 0.2.3 → 0.2.4

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: 8d3c45e770d204ec7bc1f613a1b27dc11db4f25043a8975e9bd63b6bcb10abf8
4
- data.tar.gz: 71e8f65496c95cf9168f09ae2c81880666d88ed59b2d2a9e21f2c034a98b53d0
3
+ metadata.gz: 3a46ff250a25edb2b0c6a243916177df1e67006cb01715a0ede6d3f4c8df1654
4
+ data.tar.gz: 90803824896253a5ba3ba3894da2d65618afaccbe96798a1bcabd2e4a490c650
5
5
  SHA512:
6
- metadata.gz: 1382bcc6d2cf7b41c5fb0f2ac5a52a1fa451ebab5bddfcd43ac03cab5728a2f3f7459c0524c18f19c6887b54e2e327448190cfa30fb08e6c2dfa9d8eaa71fe16
7
- data.tar.gz: 313861f4d385c8bb2c3964839ce6807a7ba9a6b3dc47aac75c262fe637ae197236e96fa0734b206821e6800cbcaa9367a1a02f52c2dfbc5302228e0af7540c4d
6
+ metadata.gz: bccdcd579d4b9c98d56f913ca5cdb9a55259029f4fd2c389552baf2661ee3d4e47faefe6caf3aff9219d2b550eb8a3648df9b964ac5443ec06c05e5be259b999
7
+ data.tar.gz: a5635a2e1153743867119f0e7a148dee2e21fc956e3c5dd5ed11c2b5447191745504d5534f5c6c6737ba8725815ecad97a17fbb5409922feaeb8c5451f9737c2
@@ -38,6 +38,7 @@ module Fastlane
38
38
  "buildInstallType" => install_type,
39
39
  "buildPassword" => password,
40
40
  }
41
+ request_params["oversea"] = params[:oversea] unless params[:oversea].nil?
41
42
 
42
43
  update_description = params[:update_description]
43
44
 
@@ -98,7 +99,7 @@ module Fastlane
98
99
  if key.nil? || endpoint.nil? || request_params.nil?
99
100
  UI.user_error!("Get token is failed")
100
101
  end
101
- content_type = type == 'android' ? 'application/vnd.android.package-archive' : 'application/octet-stream'
102
+ content_type = type == "android" ? "application/vnd.android.package-archive" : "application/octet-stream"
102
103
  request_params["file"] = Faraday::UploadIO.new(build_file, content_type)
103
104
 
104
105
  UI.message "Start upload #{build_file} to pgyer..."
@@ -185,13 +186,20 @@ module Fastlane
185
186
  description: "The value is a string of characters, for example, 2018-01-01",
186
187
  optional: true,
187
188
  type: String),
189
+
188
190
  FastlaneCore::ConfigItem.new(key: :install_end_date,
189
191
  env_name: "PGYER_INSTALL_END_DATE",
190
192
  description: "The value is a string of characters, such as 2018-12-31",
191
193
  optional: true,
192
194
  type: String),
195
+
196
+ FastlaneCore::ConfigItem.new(key: :oversea,
197
+ env_name: "PGYER_OVERSEA",
198
+ description: "Whether to use overseas acceleration. 1 for overseas accelerated upload, 0 for domestic accelerated upload, not filled in for automatic judgment based on IP",
199
+ optional: true,
200
+ type: Numeric),
193
201
  FastlaneCore::ConfigItem.new(key: :channel,
194
- env_name: "PGYER_INSTALL_TYPE",
202
+ env_name: "PGYER_SPECIFIED_CHANNEL",
195
203
  description: "Need to update the specified channel of the download short link, can specify only one channel, string type, such as: ABCD",
196
204
  optional: true,
197
205
  type: String),
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Pgyer
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-pgyer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - rexshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-22 00:00:00.000000000 Z
11
+ date: 2022-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler