fastlane-plugin-fir_cli 2.0.11 → 2.0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -27
- data/lib/fastlane/plugin/fir_cli/actions/fir_cli_action.rb +53 -33
- data/lib/fastlane/plugin/fir_cli/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a55bf584cbce8bf81f80a91bf7e8a84748493290193c14947f5a574767f23a53
|
4
|
+
data.tar.gz: 97a9b161af75217e1ca816a9b47fcf1f14dbb495273a95c83110c023f365d4ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa85cc69f656e207899015a76da6d955e3a18e1b15e9fd1cda88001ba1fb40d8d3a77b6ce7387e5b69d70de78f5f0e01f7d18cbbfc14b22a8234ac5a2d940e2e
|
7
|
+
data.tar.gz: 20719bc231f8e88327fbb42d0c117404c1d29c11c58bb9a4de1320a740832bb6813fecd9b63a3154b7bbb5d9a4c450df3e1dd73ddcabfbd304e7402005e31ad7
|
data/README.md
CHANGED
@@ -29,33 +29,34 @@ most of params in this plugin copied directly from fir-cli publish params ([fir-
|
|
29
29
|
|
30
30
|
|
31
31
|
```
|
32
|
-
|
33
|
-
|
|
34
|
-
|
35
|
-
| Key
|
36
|
-
|
37
|
-
| api_token
|
38
|
-
| specify_file_path
|
39
|
-
| short
|
40
|
-
| force_pin_history
|
41
|
-
| skip_update_icon
|
42
|
-
| specify_icon_file
|
43
|
-
| changelog
|
44
|
-
| open
|
45
|
-
| password
|
46
|
-
| switch_to_qiniu
|
47
|
-
| need_release_id
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
32
|
+
+--------------------------+------------------------------------+------------------------------+---------+
|
33
|
+
| fir_cli Options |
|
34
|
+
+--------------------------+------------------------------------+------------------------------+---------+
|
35
|
+
| Key | Description | Env Var | Default |
|
36
|
+
+--------------------------+------------------------------------+------------------------------+---------+
|
37
|
+
| api_token | A description of your option | FIR_CLI_API_TOKEN | |
|
38
|
+
| specify_file_path | FILE APP PATH | FIR_SPECIFY_FILE_PATH | |
|
39
|
+
| short | fir short | FIR_APP_SHORT | |
|
40
|
+
| force_pin_history | pin this release to download page | FIR_APP_FORCE_PIN_HISTORY | false |
|
41
|
+
| skip_update_icon | skip upload icon | FIR_APP_SKIP_UPDATE_ICON | false |
|
42
|
+
| specify_icon_file | APP ICON FILE PATH | FIR_SPECIFY_ICON_FILE_PATH | |
|
43
|
+
| changelog | changelog path or content | FIR_APP_CHANGELOG | |
|
44
|
+
| open | true/false if open for everyone | FIR_APP_OPEN | true |
|
45
|
+
| password | Set password for app | FIR_APP_PASSWORD | |
|
46
|
+
| switch_to_qiniu | switch to qiniu upload | FIR_SWITCH_TO_QINIU | false |
|
47
|
+
| need_release_id | would build download url with | FIR_NEED_RELEASE_ID | false |
|
48
|
+
| | release id | | |
|
49
|
+
| specify_app_display_name | specify app display name | FIR_SPECIFY_APP_DISPLAY_NAME | |
|
50
|
+
| dingtalk_access_token | dingtalk_access_token | FIR_DINGTALK_ACCESS_TOKEN | |
|
51
|
+
| dingtalk_custom_message | dingtalk custom message | FIR_DINGTALK_CUSTOM_MESSAGE | |
|
52
|
+
| dingtalk_at_phones | dingtalk at phones, split with ',' | FIR_DINGTALK_AT_PHONES | |
|
53
|
+
| dingtalk_at_all | dingtalk at all people | FIR_DINGTALK_AT_ALL | |
|
54
|
+
| feishu_access_token | feishu_access_token | FIR_FEISHU_ACCESS_TOKEN | |
|
55
|
+
| feishu_custom_message | feishu custom message | FIR_FEISHU_CUSTOM_MESSAGE | |
|
56
|
+
| wxwork_access_token | wechat work webhook access_token | FIR_WXWORK_ACCESS_TOKEN | |
|
57
|
+
| wxwork_pic_url | wechat work webhook pic url | FIR_WXWORK_PIC_URL | |
|
58
|
+
| wxwork_custom_message | wechat work custom message | FIR_WXWORK_CUSTOM_MESSAGE | |
|
59
|
+
+--------------------------+------------------------------------+------------------------------+---------+
|
59
60
|
```
|
60
61
|
|
61
62
|
|
@@ -1,12 +1,11 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "fastlane/action"
|
2
|
+
require "fir"
|
3
3
|
# require 'byebug'
|
4
|
-
require_relative
|
4
|
+
require_relative "../helper/fir_cli_helper"
|
5
5
|
|
6
6
|
module Fastlane
|
7
7
|
module Actions
|
8
8
|
class FirCliAction < Action
|
9
|
-
|
10
9
|
def self.run(params)
|
11
10
|
UI.message("The fir_cli plugin is working!")
|
12
11
|
|
@@ -22,24 +21,28 @@ module Fastlane
|
|
22
21
|
password: params[:password],
|
23
22
|
need_release_id: params[:need_release_id],
|
24
23
|
short: params[:short],
|
25
|
-
dingtalk_access_token: params[:dingtalk_access_token],
|
26
24
|
switch_to_qiniu: params[:switch_to_qiniu],
|
25
|
+
specify_app_display_name: params[:specify_app_display_name],
|
26
|
+
|
27
|
+
dingtalk_access_token: params[:dingtalk_access_token],
|
27
28
|
dingtalk_custom_message: params[:dingtalk_custom_message],
|
28
29
|
dingtalk_at_phones: params[:dingtalk_at_phones],
|
29
30
|
dingtalk_at_all: params[:dingtalk_at_all],
|
30
|
-
|
31
|
+
dingtalk_secret: params[:dingtalk_secret],
|
32
|
+
oversea_turbo: params[:oversea_turbo],
|
33
|
+
|
31
34
|
feishu_access_token: params[:feishu_access_token],
|
32
35
|
feishu_custom_message: params[:feishu_custom_message],
|
33
36
|
|
34
37
|
wxwork_access_token: params[:wxwork_access_token],
|
35
38
|
wxwork_custom_message: params[:wxwork_custom_message],
|
36
|
-
wxwork_pic_url: params[:wxwork_pic_url]
|
37
|
-
|
38
|
-
}.reject {|_k, v| v.nil?}
|
39
|
+
wxwork_pic_url: params[:wxwork_pic_url],
|
40
|
+
|
41
|
+
}.reject { |_k, v| v.nil? }
|
39
42
|
answer = Helper::FirHelper.publish(fir_args, options)
|
40
43
|
UI.message("fastlane-plugin-fir_cli answer: #{answer}")
|
41
44
|
answer
|
42
|
-
end
|
45
|
+
end
|
43
46
|
|
44
47
|
def self.description
|
45
48
|
"upload ipa or apk to fir.im using fir-cli (This plugin is maintained by fir.im official)"
|
@@ -120,6 +123,13 @@ module Fastlane
|
|
120
123
|
default_value: false,
|
121
124
|
type: Boolean,
|
122
125
|
optional: true),
|
126
|
+
FastlaneCore::ConfigItem.new(key: :specify_app_display_name,
|
127
|
+
env_name: "FIR_SPECIFY_APP_DISPLAY_NAME",
|
128
|
+
description: "specify app display name",
|
129
|
+
default_value: nil,
|
130
|
+
type: String,
|
131
|
+
optional: true),
|
132
|
+
|
123
133
|
FastlaneCore::ConfigItem.new(key: :dingtalk_access_token,
|
124
134
|
env_name: "FIR_DINGTALK_ACCESS_TOKEN",
|
125
135
|
description: "dingtalk_access_token",
|
@@ -129,37 +139,48 @@ module Fastlane
|
|
129
139
|
description: "dingtalk custom message",
|
130
140
|
optional: true),
|
131
141
|
FastlaneCore::ConfigItem.new(key: :dingtalk_at_phones,
|
132
|
-
|
133
|
-
|
134
|
-
|
142
|
+
env_name: "FIR_DINGTALK_AT_PHONES",
|
143
|
+
description: "dingtalk at phones, split with ','",
|
144
|
+
optional: true),
|
135
145
|
FastlaneCore::ConfigItem.new(key: :dingtalk_at_all,
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
146
|
+
env_name: "FIR_DINGTALK_AT_ALL",
|
147
|
+
description: "dingtalk at all people",
|
148
|
+
type: Boolean,
|
149
|
+
optional: true),
|
150
|
+
|
151
|
+
FastlaneCore::ConfigItem.new(key: :dingtalk_secret,
|
152
|
+
env_name: "FIR_DINGTALK_SECRET",
|
153
|
+
description: "Dingtalk secret code (eg: SECxxxxx)",
|
154
|
+
optional: true),
|
155
|
+
|
156
|
+
FastlaneCore::ConfigItem.new(key: :oversea_turbo,
|
157
|
+
env_name: "FIR_OVERSEA_TURBO",
|
158
|
+
description: "fir oversea turbo, increase upload speed for oversea users",
|
159
|
+
type: Boolean,
|
160
|
+
optional: true),
|
140
161
|
|
141
162
|
FastlaneCore::ConfigItem.new(key: :feishu_access_token,
|
142
|
-
|
143
|
-
|
144
|
-
|
163
|
+
env_name: "FIR_FEISHU_ACCESS_TOKEN",
|
164
|
+
description: "feishu_access_token",
|
165
|
+
optional: true),
|
145
166
|
FastlaneCore::ConfigItem.new(key: :feishu_custom_message,
|
146
|
-
|
147
|
-
|
148
|
-
|
167
|
+
env_name: "FIR_FEISHU_CUSTOM_MESSAGE",
|
168
|
+
description: "feishu custom message",
|
169
|
+
optional: true),
|
149
170
|
|
150
171
|
FastlaneCore::ConfigItem.new(key: :wxwork_access_token,
|
151
|
-
|
152
|
-
|
153
|
-
|
172
|
+
env_name: "FIR_WXWORK_ACCESS_TOKEN",
|
173
|
+
description: "wechat work webhook access_token",
|
174
|
+
optional: true),
|
154
175
|
|
155
176
|
FastlaneCore::ConfigItem.new(key: :wxwork_pic_url,
|
156
|
-
|
157
|
-
|
158
|
-
|
177
|
+
env_name: "FIR_WXWORK_PIC_URL",
|
178
|
+
description: "wechat work webhook pic url",
|
179
|
+
optional: true),
|
159
180
|
FastlaneCore::ConfigItem.new(key: :wxwork_custom_message,
|
160
|
-
|
161
|
-
|
162
|
-
|
181
|
+
env_name: "FIR_WXWORK_CUSTOM_MESSAGE",
|
182
|
+
description: "wechat work custom message",
|
183
|
+
optional: true),
|
163
184
|
|
164
185
|
]
|
165
186
|
end
|
@@ -176,6 +197,5 @@ module Fastlane
|
|
176
197
|
file_path || Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] || Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]
|
177
198
|
end
|
178
199
|
end
|
179
|
-
|
180
200
|
end
|
181
201
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-fir_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- atpking
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fir-cli
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0.
|
19
|
+
version: 2.0.15
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.0.
|
26
|
+
version: 2.0.15
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
- !ruby/object:Gem::Version
|
196
196
|
version: '0'
|
197
197
|
requirements: []
|
198
|
-
rubygems_version: 3.
|
198
|
+
rubygems_version: 3.1.6
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: upload ipa or apk to fir.im
|