fastlane-plugin-fir_cli 2.0.4 → 2.0.10

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: 9938de28d4a08dc57b0279eb8e93bf1c45fa845421267f6c1a074d499bd3acd2
4
- data.tar.gz: 7ed45938cb629bb20cd53b99e982ef2bcc31f90cfe3d88d93119e9abf55b336b
3
+ metadata.gz: 6b3462f659a75869e5b2fb6dfc15a0b1b9cd4fb23865d240b4fcdfd160dbe6b2
4
+ data.tar.gz: fa3cbe713472bb138b68b30f90458d93ee66470a73e1440f3e7eaf36aabc24ec
5
5
  SHA512:
6
- metadata.gz: 29c9666c8d74e14c1d3b31dbbd49e1fcde9309c2aa923ea0465b7a242ed51e75d427450769abbdb11106d7308e633feafad6c81d79ae1626a0453d2cea4740d1
7
- data.tar.gz: d28d0bbd7056e7ca1dfd99306783c3818be775603913c22ccc9c3dad42f18e4d5e42fce63ba8946b091c6754e6bac2aa171faeea8ca430f4300f3b713daca602
6
+ metadata.gz: 5c0d86e043c4ff44ccb441d7732ccfd8d70f82dc99f0362740629f79d84e35810f3dd6a2571c5d6279e97c80ecd00c7be30130c29e2308a6c0be0d92e79edeaf
7
+ data.tar.gz: 5265acca6831bafcd83ae4c515868420a3fd5afa8c8bcfb2d844c359c59ade3a54a837c2f76d616c2f4d8ff07b3cf1127f42f6ac74629de7f99f7241b3661f0f
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # fir_cli plugin
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/fastlane-plugin-fir_cli.svg)](https://badge.fury.io/rb/fastlane-plugin-fir_cli)
3
4
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](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
- | fir_cli Options |
33
- +-------------------------+------------------------------------------+-----------------------------+---------+
34
- | Key | Description | Env Var | Default |
35
- +-------------------------+------------------------------------------+-----------------------------+---------+
36
- | api_token | A description of your option | FIR_CLI_API_TOKEN | |
37
- | specify_file_path | FILE APP PATH | FIR_SPECIFY_FILE_PATH | |
38
- | short | fir short | FIR_APP_SHORT | |
39
- | force_pin_history | pin this release to download page | FIR_APP_FORCE_PIN_HISTORY | false |
40
- | skip_update_icon | skip upload icon | FIR_APP_SKIP_UPDATE_ICON | false |
41
- | specify_icon_file | APP ICON FILE PATH | FIR_SPECIFY_ICON_FILE_PATH | |
42
- | changelog | changelog path or content | FIR_APP_CHANGELOG | |
43
- | open | true/false if open for everyone | FIR_APP_OPEN | true |
44
- | password | Set password for app | FIR_APP_PASSWORD | |
45
- | switch_to_qiniu | switch to qiniu upload | FIR_SWITCH_TO_QINIU | false |
46
- | need_release_id | would build download url with release id | FIR_NEED_RELEASE_ID | false |
47
- | dingtalk_access_token | dingtalk_access_token | FIR_DINGTALK_ACCESS_TOKEN | |
48
- | dingtalk_custom_message | dingtalk custom message | FIR_DINGTALK_CUSTOM_MESSAGE | |
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
 
@@ -85,14 +94,16 @@ fastlane run fir_cli api_token:"YOUR_FIR_API_TOKEN" specify_file_path:"YOUR IPA
85
94
 
86
95
  ## About another plugin fastlane-plugin-firim
87
96
 
88
- 关于 另一个插件 https://github.com/whlsxl/firim/tree/master/fastlane-plugin-firim
97
+ 关于 另一个插件 https://github.com/whlsxl/firim 这是 fir.im 的一名热心用户 whlsxl 开发的第三方fir插件
89
98
 
90
99
  特别感谢 作者 whlsxl 对 firim 插件的辛勤开发, 这款插件代码优秀质量可靠, 是我学习的典范
91
100
 
92
- 然而因为 2020年02月 .im 域名不再支持备案, 所以导致fir.im 无法继续支撑 fir.im 域名
93
- 最终导致 whlsxl 的 firim <= 0.2.4 的情况下, 可能会有些问题
101
+ 因为 2020年02月 .im 域名不再支持备案, 所以导致fir.im 无法继续支撑 fir.im 域名
102
+ 导致 whlsxl 的 firim 插件 需要修改api 的地址
94
103
 
95
- 希望 whlsxl 同学能够看到, 解决的方案
104
+ whlsxl 提供的解决方案是 `目前配置总的firim_api_url改为http://api.jappstore.com/或http://api.bq04.com 均可用`
105
+
106
+ 具体可参见他的项目的 readme 或 https://github.com/whlsxl/firim/issues/26
96
107
 
97
108
 
98
109
 
@@ -109,7 +120,7 @@ If you have trouble using plugins, check out the [Plugins Troubleshooting](https
109
120
 
110
121
  Thanks!
111
122
 
112
- 感谢鼓励作者维护!
123
+ 支付宝打赏 感谢鼓励作者维护!
113
124
 
114
125
  ![luckin](luckin_coffee.png)
115
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module FirCli
3
- VERSION = "2.0.4"
3
+ VERSION = "2.0.10"
4
4
  end
5
5
  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
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - atpking
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-03 00:00:00.000000000 Z
11
+ date: 2020-12-15 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.4
19
+ version: 2.0.10
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.4
26
+ version: 2.0.10
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: []