fastlane-plugin-fir_cli 2.0.5 → 2.0.11
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8489bab60f07b62d5edd4c069076b89f341262d07565bdbaa167a5d8893b07ce
|
|
4
|
+
data.tar.gz: 6cd97580b887042d7a8f3f6c104ad6d92737f32f2594154c3131d434163122e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e86fd7cd54c0b0c515d9490dcf05a8a4dc7b119c0c5bb3b257eaaa0481814814c3e5582220c5fcf3d3182ec2f104d81b03d5149ea9575d7755f0875960c1a06
|
|
7
|
+
data.tar.gz: 8bbace78ca906df882b63989d75859916f59e5ff7239b2b382b9683b8cba642da2453f2c04907c94b06052105ab2657a25a63d3b6105f5744b8c806f021a87fc
|
data/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# fir_cli plugin
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/rb/fastlane-plugin-fir_cli)
|
|
3
4
|
[](https://rubygems.org/gems/fastlane-plugin-fir_cli)
|
|
4
5
|
|
|
5
6
|
## Getting Started
|
|
@@ -24,29 +25,37 @@ run `fastlane action fir_cli` in terminal to lookup the details.
|
|
|
24
25
|
|
|
25
26
|
most of params in this plugin copied directly from fir-cli publish params ([fir-cli github](https://github.com/FIRHQ/fir-cli/))
|
|
26
27
|
|
|
27
|
-
插件里的绝大多数参数都是从 fir-cli 的 publish 的参数 ([fir-cli github](https://github.com/FIRHQ/fir-cli/)) 直接拷贝的
|
|
28
|
+
插件里的绝大多数参数都是从 fir-cli 的 publish 的参数 ([fir-cli github (https://github.com/FIRHQ/fir-cli/)](https://github.com/FIRHQ/fir-cli/)) 直接拷贝的
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
```
|
|
31
|
-
|
|
32
|
-
|
|
|
33
|
-
|
|
34
|
-
| Key | Description
|
|
35
|
-
|
|
36
|
-
| api_token | A description of your option
|
|
37
|
-
| specify_file_path | FILE APP PATH
|
|
38
|
-
| short | fir short
|
|
39
|
-
| force_pin_history | pin this release to download page
|
|
40
|
-
| skip_update_icon | skip upload icon
|
|
41
|
-
| specify_icon_file | APP ICON FILE PATH
|
|
42
|
-
| changelog | changelog path or content
|
|
43
|
-
| open | true/false if open for everyone
|
|
44
|
-
| password | Set password for app
|
|
45
|
-
| switch_to_qiniu | switch to qiniu upload
|
|
46
|
-
| need_release_id | would build download url with
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
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
|
+
| dingtalk_access_token | dingtalk_access_token | FIR_DINGTALK_ACCESS_TOKEN | |
|
|
50
|
+
| dingtalk_custom_message | dingtalk custom message | FIR_DINGTALK_CUSTOM_MESSAGE | |
|
|
51
|
+
| dingtalk_at_phones | dingtalk at phones, split with ',' | FIR_DINGTALK_AT_PHONES | |
|
|
52
|
+
| dingtalk_at_all | dingtalk at all people | FIR_DINGTALK_AT_ALL | |
|
|
53
|
+
| feishu_access_token | feishu_access_token | FIR_FEISHU_ACCESS_TOKEN | |
|
|
54
|
+
| feishu_custom_message | feishu custom message | FIR_FEISHU_CUSTOM_MESSAGE | |
|
|
55
|
+
| wxwork_access_token | wechat work webhook access_token | FIR_WXWORK_ACCESS_TOKEN | |
|
|
56
|
+
| wxwork_pic_url | wechat work webhook pic url | FIR_WXWORK_PIC_URL | |
|
|
57
|
+
| wxwork_custom_message | wechat work custom message | FIR_WXWORK_CUSTOM_MESSAGE | |
|
|
58
|
+
+-------------------------+------------------------------------+-----------------------------+---------+
|
|
50
59
|
```
|
|
51
60
|
|
|
52
61
|
|
|
@@ -111,7 +120,7 @@ If you have trouble using plugins, check out the [Plugins Troubleshooting](https
|
|
|
111
120
|
|
|
112
121
|
Thanks!
|
|
113
122
|
|
|
114
|
-
感谢鼓励作者维护!
|
|
123
|
+
支付宝打赏 感谢鼓励作者维护!
|
|
115
124
|
|
|
116
125
|

|
|
117
126
|
|
|
@@ -26,9 +26,19 @@ module Fastlane
|
|
|
26
26
|
switch_to_qiniu: params[:switch_to_qiniu],
|
|
27
27
|
dingtalk_custom_message: params[:dingtalk_custom_message],
|
|
28
28
|
dingtalk_at_phones: params[:dingtalk_at_phones],
|
|
29
|
-
dingtalk_at_all: params[:dingtalk_at_all]
|
|
29
|
+
dingtalk_at_all: params[:dingtalk_at_all],
|
|
30
|
+
|
|
31
|
+
feishu_access_token: params[:feishu_access_token],
|
|
32
|
+
feishu_custom_message: params[:feishu_custom_message],
|
|
33
|
+
|
|
34
|
+
wxwork_access_token: params[:wxwork_access_token],
|
|
35
|
+
wxwork_custom_message: params[:wxwork_custom_message],
|
|
36
|
+
wxwork_pic_url: params[:wxwork_pic_url]
|
|
37
|
+
|
|
30
38
|
}.reject {|_k, v| v.nil?}
|
|
31
|
-
FirHelper.publish(fir_args, options)
|
|
39
|
+
answer = Helper::FirHelper.publish(fir_args, options)
|
|
40
|
+
UI.message("fastlane-plugin-fir_cli answer: #{answer}")
|
|
41
|
+
answer
|
|
32
42
|
end
|
|
33
43
|
|
|
34
44
|
def self.description
|
|
@@ -75,6 +85,7 @@ module Fastlane
|
|
|
75
85
|
env_name: "FIR_APP_SKIP_UPDATE_ICON",
|
|
76
86
|
description: "skip upload icon",
|
|
77
87
|
default_value: false,
|
|
88
|
+
type: Boolean,
|
|
78
89
|
optional: true),
|
|
79
90
|
FastlaneCore::ConfigItem.new(key: :specify_icon_file,
|
|
80
91
|
env_name: "FIR_SPECIFY_ICON_FILE_PATH",
|
|
@@ -125,7 +136,30 @@ module Fastlane
|
|
|
125
136
|
env_name: "FIR_DINGTALK_AT_ALL",
|
|
126
137
|
description: "dingtalk at all people",
|
|
127
138
|
type: Boolean,
|
|
128
|
-
optional: true)
|
|
139
|
+
optional: true),
|
|
140
|
+
|
|
141
|
+
FastlaneCore::ConfigItem.new(key: :feishu_access_token,
|
|
142
|
+
env_name: "FIR_FEISHU_ACCESS_TOKEN",
|
|
143
|
+
description: "feishu_access_token",
|
|
144
|
+
optional: true),
|
|
145
|
+
FastlaneCore::ConfigItem.new(key: :feishu_custom_message,
|
|
146
|
+
env_name: "FIR_FEISHU_CUSTOM_MESSAGE",
|
|
147
|
+
description: "feishu custom message",
|
|
148
|
+
optional: true),
|
|
149
|
+
|
|
150
|
+
FastlaneCore::ConfigItem.new(key: :wxwork_access_token,
|
|
151
|
+
env_name: "FIR_WXWORK_ACCESS_TOKEN",
|
|
152
|
+
description: "wechat work webhook access_token",
|
|
153
|
+
optional: true),
|
|
154
|
+
|
|
155
|
+
FastlaneCore::ConfigItem.new(key: :wxwork_pic_url,
|
|
156
|
+
env_name: "FIR_WXWORK_PIC_URL",
|
|
157
|
+
description: "wechat work webhook pic url",
|
|
158
|
+
optional: true),
|
|
159
|
+
FastlaneCore::ConfigItem.new(key: :wxwork_custom_message,
|
|
160
|
+
env_name: "FIR_WXWORK_CUSTOM_MESSAGE",
|
|
161
|
+
description: "wechat work custom message",
|
|
162
|
+
optional: true)
|
|
129
163
|
|
|
130
164
|
]
|
|
131
165
|
end
|
|
@@ -143,27 +177,5 @@ module Fastlane
|
|
|
143
177
|
end
|
|
144
178
|
end
|
|
145
179
|
|
|
146
|
-
class FirHelper
|
|
147
|
-
include FIR::Util
|
|
148
|
-
|
|
149
|
-
FIR::VERSION = "#{FIR::VERSION}-Fastlane-#{Fastlane::FirCli::VERSION}"
|
|
150
|
-
class << self
|
|
151
|
-
def logger
|
|
152
|
-
@logger ||= Logger.new(STDOUT)
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
class FIR::AppUploader
|
|
159
|
-
def logger
|
|
160
|
-
self.class.logger
|
|
161
|
-
end
|
|
162
|
-
class << self
|
|
163
|
-
def logger
|
|
164
|
-
@logger ||= Logger.new(STDOUT)
|
|
165
|
-
end
|
|
166
|
-
end
|
|
167
|
-
end
|
|
168
180
|
end
|
|
169
181
|
end
|
|
@@ -12,5 +12,28 @@ module Fastlane
|
|
|
12
12
|
UI.message("Hello from the fir_cli plugin helper!")
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
|
+
|
|
16
|
+
class FirHelper
|
|
17
|
+
include FIR::Util
|
|
18
|
+
|
|
19
|
+
FIR::VERSION = "#{FIR::VERSION}-Fastlane-#{Fastlane::FirCli::VERSION}"
|
|
20
|
+
class << self
|
|
21
|
+
def logger
|
|
22
|
+
@logger ||= Logger.new(STDOUT)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
class FIR::AppUploader
|
|
29
|
+
def logger
|
|
30
|
+
self.class.logger
|
|
31
|
+
end
|
|
32
|
+
class << self
|
|
33
|
+
def logger
|
|
34
|
+
@logger ||= Logger.new(STDOUT)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
15
38
|
end
|
|
16
39
|
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.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- atpking
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-07 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.11
|
|
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.11
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: pry
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -164,7 +164,7 @@ dependencies:
|
|
|
164
164
|
- - ">="
|
|
165
165
|
- !ruby/object:Gem::Version
|
|
166
166
|
version: 2.136.0
|
|
167
|
-
description:
|
|
167
|
+
description:
|
|
168
168
|
email: atpking@gmail.com
|
|
169
169
|
executables: []
|
|
170
170
|
extensions: []
|
|
@@ -180,7 +180,7 @@ homepage: https://github.com/FIRHQ/fastlane-plugin-fir_cli
|
|
|
180
180
|
licenses:
|
|
181
181
|
- MIT
|
|
182
182
|
metadata: {}
|
|
183
|
-
post_install_message:
|
|
183
|
+
post_install_message:
|
|
184
184
|
rdoc_options: []
|
|
185
185
|
require_paths:
|
|
186
186
|
- lib
|
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
196
196
|
version: '0'
|
|
197
197
|
requirements: []
|
|
198
198
|
rubygems_version: 3.0.3
|
|
199
|
-
signing_key:
|
|
199
|
+
signing_key:
|
|
200
200
|
specification_version: 4
|
|
201
201
|
summary: upload ipa or apk to fir.im
|
|
202
202
|
test_files: []
|