fastlane-plugin-fir_cli 2.0.7 → 2.0.12
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8abf32f08a04738fb2e71afd01d81cc03e16ae1090e1edc22c11afd0337cc26c
|
4
|
+
data.tar.gz: da2ad3c94267d119e3f58af51c757d35577dda4bd1607736ef2cf2263c410766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8abc70f822e237d63e46a0ff2bbba64d1125a423f6b17c36a82f30f9df977d80851c2ed6324a42bd84b4100260957a5120d4aeb0662532b621fc486712a062b
|
7
|
+
data.tar.gz: 0bc320043c843103d2169dd8827ef92ad47db3cdfe31ca7a375b0b54e9f15b58cfed51a375bd8046389af91e53dc85d265a38d4ec9cee658c5880a52e5c471ad
|
data/README.md
CHANGED
@@ -25,29 +25,37 @@ run `fastlane action fir_cli` in terminal to lookup the details.
|
|
25
25
|
|
26
26
|
most of params in this plugin copied directly from fir-cli publish params ([fir-cli github](https://github.com/FIRHQ/fir-cli/))
|
27
27
|
|
28
|
-
插件里的绝大多数参数都是从 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/)) 直接拷贝的
|
29
29
|
|
30
30
|
|
31
31
|
```
|
32
|
-
|
33
|
-
|
|
34
|
-
|
35
|
-
| Key | Description
|
36
|
-
|
37
|
-
| api_token | A description of your option
|
38
|
-
| specify_file_path | FILE APP PATH
|
39
|
-
| short | fir short
|
40
|
-
| force_pin_history | pin this release to download page
|
41
|
-
| skip_update_icon | skip upload icon
|
42
|
-
| specify_icon_file | APP ICON FILE PATH
|
43
|
-
| changelog | changelog path or content
|
44
|
-
| open | true/false if open for everyone
|
45
|
-
| password | Set password for app
|
46
|
-
| switch_to_qiniu | switch to qiniu upload
|
47
|
-
| need_release_id | would build download url with
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
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
|
+
+-------------------------+------------------------------------+-----------------------------+---------+
|
51
59
|
```
|
52
60
|
|
53
61
|
|
@@ -112,7 +120,7 @@ If you have trouble using plugins, check out the [Plugins Troubleshooting](https
|
|
112
120
|
|
113
121
|
Thanks!
|
114
122
|
|
115
|
-
感谢鼓励作者维护!
|
123
|
+
支付宝打赏 感谢鼓励作者维护!
|
116
124
|
|
117
125
|
![luckin](luckin_coffee.png)
|
118
126
|
|
@@ -6,7 +6,7 @@ require_relative '../helper/fir_cli_helper'
|
|
6
6
|
module Fastlane
|
7
7
|
module Actions
|
8
8
|
class FirCliAction < Action
|
9
|
-
|
9
|
+
|
10
10
|
def self.run(params)
|
11
11
|
UI.message("The fir_cli plugin is working!")
|
12
12
|
|
@@ -26,12 +26,21 @@ 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
|
+
dingtalk_secret: params[:dingtalk_secret],
|
31
|
+
|
32
|
+
feishu_access_token: params[:feishu_access_token],
|
33
|
+
feishu_custom_message: params[:feishu_custom_message],
|
34
|
+
|
35
|
+
wxwork_access_token: params[:wxwork_access_token],
|
36
|
+
wxwork_custom_message: params[:wxwork_custom_message],
|
37
|
+
wxwork_pic_url: params[:wxwork_pic_url]
|
38
|
+
|
30
39
|
}.reject {|_k, v| v.nil?}
|
31
|
-
answer = FirHelper.publish(fir_args, options)
|
40
|
+
answer = Helper::FirHelper.publish(fir_args, options)
|
32
41
|
UI.message("fastlane-plugin-fir_cli answer: #{answer}")
|
33
42
|
answer
|
34
|
-
end
|
43
|
+
end
|
35
44
|
|
36
45
|
def self.description
|
37
46
|
"upload ipa or apk to fir.im using fir-cli (This plugin is maintained by fir.im official)"
|
@@ -77,6 +86,7 @@ module Fastlane
|
|
77
86
|
env_name: "FIR_APP_SKIP_UPDATE_ICON",
|
78
87
|
description: "skip upload icon",
|
79
88
|
default_value: false,
|
89
|
+
type: Boolean,
|
80
90
|
optional: true),
|
81
91
|
FastlaneCore::ConfigItem.new(key: :specify_icon_file,
|
82
92
|
env_name: "FIR_SPECIFY_ICON_FILE_PATH",
|
@@ -127,7 +137,35 @@ module Fastlane
|
|
127
137
|
env_name: "FIR_DINGTALK_AT_ALL",
|
128
138
|
description: "dingtalk at all people",
|
129
139
|
type: Boolean,
|
130
|
-
optional: true)
|
140
|
+
optional: true),
|
141
|
+
|
142
|
+
FastlaneCore::ConfigItem.new(key: :dingtalk_secret,
|
143
|
+
env_name: "FIR_DINGTALK_SECRET",
|
144
|
+
description: "Dingtalk secret code (eg: SECxxxxx)",
|
145
|
+
optional: true),
|
146
|
+
|
147
|
+
FastlaneCore::ConfigItem.new(key: :feishu_access_token,
|
148
|
+
env_name: "FIR_FEISHU_ACCESS_TOKEN",
|
149
|
+
description: "feishu_access_token",
|
150
|
+
optional: true),
|
151
|
+
FastlaneCore::ConfigItem.new(key: :feishu_custom_message,
|
152
|
+
env_name: "FIR_FEISHU_CUSTOM_MESSAGE",
|
153
|
+
description: "feishu custom message",
|
154
|
+
optional: true),
|
155
|
+
|
156
|
+
FastlaneCore::ConfigItem.new(key: :wxwork_access_token,
|
157
|
+
env_name: "FIR_WXWORK_ACCESS_TOKEN",
|
158
|
+
description: "wechat work webhook access_token",
|
159
|
+
optional: true),
|
160
|
+
|
161
|
+
FastlaneCore::ConfigItem.new(key: :wxwork_pic_url,
|
162
|
+
env_name: "FIR_WXWORK_PIC_URL",
|
163
|
+
description: "wechat work webhook pic url",
|
164
|
+
optional: true),
|
165
|
+
FastlaneCore::ConfigItem.new(key: :wxwork_custom_message,
|
166
|
+
env_name: "FIR_WXWORK_CUSTOM_MESSAGE",
|
167
|
+
description: "wechat work custom message",
|
168
|
+
optional: true)
|
131
169
|
|
132
170
|
]
|
133
171
|
end
|
@@ -145,27 +183,5 @@ module Fastlane
|
|
145
183
|
end
|
146
184
|
end
|
147
185
|
|
148
|
-
class FirHelper
|
149
|
-
include FIR::Util
|
150
|
-
|
151
|
-
FIR::VERSION = "#{FIR::VERSION}-Fastlane-#{Fastlane::FirCli::VERSION}"
|
152
|
-
class << self
|
153
|
-
def logger
|
154
|
-
@logger ||= Logger.new(STDOUT)
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
end
|
159
|
-
|
160
|
-
class FIR::AppUploader
|
161
|
-
def logger
|
162
|
-
self.class.logger
|
163
|
-
end
|
164
|
-
class << self
|
165
|
-
def logger
|
166
|
-
@logger ||= Logger.new(STDOUT)
|
167
|
-
end
|
168
|
-
end
|
169
|
-
end
|
170
186
|
end
|
171
187
|
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.12
|
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-02-19 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.12
|
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.12
|
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: []
|