fastlane-plugin-pgyer 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1b63cb189966ff6893098dcd7b8720dee79ad87ba3d50ffc05b5eae6559673a
4
- data.tar.gz: 74f4bd228aad0cd218ba9d8dff1b705c293f8b9e36580d01c78a437d0eae49d9
3
+ metadata.gz: 7261b2197faf3f763d223977c41ee54a636780f0af53732b5187069935a38065
4
+ data.tar.gz: a1bd3208a9df53bad956d0a91200e1913a6c8fbee534f65822b22660555295f2
5
5
  SHA512:
6
- metadata.gz: 9ef5ffa5c621a464240cfad1a8f436d8bfb4e9bc44719315a83168c826c0b39b13b189a971686f893ad8173f63be7bbb2a4317af9c16c29dea9ac55eb20c1e43
7
- data.tar.gz: 0ebbd2dc74d1c2df1b04fa2a6a5dad5f9c1e950bf443be98c96e9e00f44d4e06e61e733981dd8582b079c53e97563f7bf6c2d08efbe2c32d9e9f11bc0cc150f0
6
+ metadata.gz: f513a7c322858279564f883461de6147ace1ff1b7630bb45fa23f89558e4cd0fff14b5881f07d5f487022a0d395136bc89e0cf28b4cf60a101cc96c5809c9c48
7
+ data.tar.gz: 7048718bcfb9dd9512cccc7a12ea3e044a53537cc53747c6927341a85e47b19ca850104e6a964c553fdce75a5c7443ea576b618d8f47d3c7ffd3607cbce5eec0
data/README.md CHANGED
@@ -115,8 +115,12 @@ install_end_date: The value is a string of characters, such as 2018-12-31.
115
115
 
116
116
  channel: Need to update the specified channel of the download short link, can specify only one channel, string type, such as: ABCD. Specifies channel uploads. If you do not have one, do not use this parameter.
117
117
 
118
+ user_download_file_name: The name of the file downloaded by the user, the string type, such as: test.apk.
119
+
118
120
  save_uploaded_info_json: (true or false, default to false) Whether to save the information returned by the API interface to a json file.
119
121
 
122
+
123
+
120
124
  ```
121
125
  ## Run tests for this plugin
122
126
 
@@ -100,10 +100,20 @@ module Fastlane
100
100
  UI.user_error!("Get token is failed")
101
101
  end
102
102
  content_type = type == "android" ? "application/vnd.android.package-archive" : "application/octet-stream"
103
+
104
+ if !params[:user_download_file_name].nil?
105
+ request_params["x-cos-meta-file-name"] = params[:user_download_file_name]
106
+ end
103
107
  request_params["file"] = Faraday::UploadIO.new(build_file, content_type)
104
108
 
105
109
  UI.message "Start upload #{build_file} to pgyer..."
106
110
 
111
+ UI.message "Upload endpoint: #{endpoint}"
112
+
113
+ UI.message "Upload request_params: #{request_params}"
114
+
115
+
116
+
107
117
  response = pgyer_client.post endpoint, request_params
108
118
 
109
119
  if response.status != 204
@@ -173,6 +183,13 @@ module Fastlane
173
183
  description: "Set password to protect app",
174
184
  optional: true,
175
185
  type: String),
186
+
187
+ FastlaneCore::ConfigItem.new(key: :user_download_file_name,
188
+ env_name: "USER_DOWNLOAD_FILE_NAME",
189
+ description: "Rename the file name that user downloaded from pgyer",
190
+ optional: true,
191
+ type: String),
192
+
176
193
  FastlaneCore::ConfigItem.new(key: :update_description,
177
194
  env_name: "PGYER_UPDATE_DESCRIPTION",
178
195
  description: "Set update description for app",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Pgyer
3
- VERSION = "0.2.8"
3
+ VERSION = "0.2.9"
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.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - rexshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-17 00:00:00.000000000 Z
11
+ date: 2024-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler