fir-cli-x 1.7.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +8 -0
- data/.dockerignore +2 -0
- data/.flow-plugin.yml +14 -0
- data/.gitignore +27 -0
- data/.travis.yml +23 -0
- data/CHANGELOG +194 -0
- data/Dockerfile +12 -0
- data/Gemfile +10 -0
- data/LICENSE.txt +22 -0
- data/README.md +63 -0
- data/Rakefile +10 -0
- data/bin/console +11 -0
- data/bin/fir +14 -0
- data/bin/setup +7 -0
- data/doc/help.md +34 -0
- data/doc/info.md +44 -0
- data/doc/install.md +67 -0
- data/doc/login.md +19 -0
- data/doc/publish.md +35 -0
- data/doc/upgrade.md +7 -0
- data/fir-cli.gemspec +52 -0
- data/fir.sh +46 -0
- data/install.sh +210 -0
- data/lib/fir-cli.rb +3 -0
- data/lib/fir.rb +28 -0
- data/lib/fir/api.yml +7 -0
- data/lib/fir/cli.rb +181 -0
- data/lib/fir/patches.rb +10 -0
- data/lib/fir/patches/blank.rb +131 -0
- data/lib/fir/patches/concern.rb +146 -0
- data/lib/fir/patches/default_headers.rb +9 -0
- data/lib/fir/patches/hash.rb +79 -0
- data/lib/fir/patches/instance_variables.rb +30 -0
- data/lib/fir/patches/native_patch.rb +28 -0
- data/lib/fir/patches/os_patch.rb +28 -0
- data/lib/fir/patches/try.rb +102 -0
- data/lib/fir/util.rb +86 -0
- data/lib/fir/util/build_apk.rb +77 -0
- data/lib/fir/util/build_common.rb +93 -0
- data/lib/fir/util/build_ipa.rb +11 -0
- data/lib/fir/util/config.rb +43 -0
- data/lib/fir/util/http.rb +23 -0
- data/lib/fir/util/info.rb +38 -0
- data/lib/fir/util/login.rb +17 -0
- data/lib/fir/util/mapping.rb +98 -0
- data/lib/fir/util/me.rb +19 -0
- data/lib/fir/util/parser/apk.rb +46 -0
- data/lib/fir/util/parser/bin/pngcrush +0 -0
- data/lib/fir/util/parser/common.rb +24 -0
- data/lib/fir/util/parser/ipa.rb +188 -0
- data/lib/fir/util/parser/pngcrush.rb +23 -0
- data/lib/fir/util/publish.rb +253 -0
- data/lib/fir/version.rb +5 -0
- data/lib/fir/xcode_wrapper.sh +29 -0
- data/lib/fir_cli.rb +3 -0
- data/test/build_ipa_test.rb +17 -0
- data/test/cases/test_apk.apk +0 -0
- data/test/cases/test_apk_txt +1 -0
- data/test/cases/test_ipa.ipa +0 -0
- data/test/cases/test_ipa_dsym +0 -0
- data/test/info_test.rb +36 -0
- data/test/login_test.rb +12 -0
- data/test/mapping_test.rb +18 -0
- data/test/me_test.rb +17 -0
- data/test/publish_test.rb +44 -0
- data/test/test_helper.rb +98 -0
- metadata +273 -0
data/test/test_helper.rb
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# CodeClimate::TestReporter.start
|
4
|
+
require 'codeclimate-test-reporter'
|
5
|
+
require 'simplecov'
|
6
|
+
SimpleCov.start
|
7
|
+
|
8
|
+
|
9
|
+
require 'minitest/autorun'
|
10
|
+
require 'ostruct'
|
11
|
+
require 'securerandom'
|
12
|
+
require 'fir'
|
13
|
+
|
14
|
+
FIR.logger = Logger.new(STDOUT)
|
15
|
+
|
16
|
+
class Minitest::Test
|
17
|
+
|
18
|
+
def default_token
|
19
|
+
'2dd8a99ef9d19c540bb583624b939960'
|
20
|
+
end
|
21
|
+
|
22
|
+
def default_email
|
23
|
+
'fir-cli_test@fir.im'
|
24
|
+
end
|
25
|
+
|
26
|
+
def default_apk
|
27
|
+
File.expand_path('../cases', __FILE__) + '/test_apk.apk'
|
28
|
+
end
|
29
|
+
|
30
|
+
def default_ipa
|
31
|
+
File.expand_path('../cases', __FILE__) + '/test_ipa.ipa'
|
32
|
+
end
|
33
|
+
|
34
|
+
def default_ipa_project
|
35
|
+
File.expand_path('../projects', __FILE__) + '/ipa'
|
36
|
+
end
|
37
|
+
|
38
|
+
def default_apk_project
|
39
|
+
File.expand_path('../projects', __FILE__) + '/apk'
|
40
|
+
end
|
41
|
+
|
42
|
+
def default_ipa_git_url
|
43
|
+
'git@github.com:NaixSpirit/build_ipa_example.git'
|
44
|
+
end
|
45
|
+
|
46
|
+
def default_apk_git_url
|
47
|
+
'git@github.com:NaixSpirit/build_apk_example.git'
|
48
|
+
end
|
49
|
+
|
50
|
+
def default_bughd_project_ios_id
|
51
|
+
'55bb2839692d647a46000004'
|
52
|
+
end
|
53
|
+
|
54
|
+
def default_bughd_project_android_id
|
55
|
+
'55be454a692d351278000002'
|
56
|
+
end
|
57
|
+
|
58
|
+
def default_dsym_mapping
|
59
|
+
File.expand_path('../cases', __FILE__) + '/test_ipa_dsym'
|
60
|
+
end
|
61
|
+
|
62
|
+
def default_txt_mapping
|
63
|
+
File.expand_path('../cases', __FILE__) + '/test_apk_txt'
|
64
|
+
end
|
65
|
+
|
66
|
+
def bigger_txt_mapping
|
67
|
+
File.expand_path('../projects', __FILE__) + '/biggggger.txt'
|
68
|
+
end
|
69
|
+
|
70
|
+
def default_device_udid
|
71
|
+
'cf8b87e3f469d7b185fd64c057778aecbc2017a6'
|
72
|
+
end
|
73
|
+
|
74
|
+
def default_distribution_name
|
75
|
+
'iOSTeam Provisioning Profile: im.fir.* - Fly It Remotely LLC.'
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
79
|
+
|
80
|
+
|
81
|
+
# 跑完测试之后再发结果到Codelimate
|
82
|
+
# 测试CODECLIMATE_REPO_TOKEN: c454b9a54151b3ed3e18949279aec49d6a25bf507706815f99a919f1c01679ed
|
83
|
+
Minitest.after_run do
|
84
|
+
COVERAGE_FILE = "coverage/.resultset.json".freeze
|
85
|
+
if (repo_token = ENV["CODECLIMATE_REPO_TOKEN"]) && !repo_token.empty?
|
86
|
+
if File.exist?(COVERAGE_FILE)
|
87
|
+
begin
|
88
|
+
results = JSON.parse(File.read(COVERAGE_FILE))
|
89
|
+
rescue JSON::ParserError => e
|
90
|
+
$stderr.puts "Error encountered while parsing #{COVERAGE_FILE}: #{e}"
|
91
|
+
end
|
92
|
+
|
93
|
+
CodeClimate::TestReporter.run(results)
|
94
|
+
else
|
95
|
+
$stderr.puts "Coverage results not found"
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
metadata
ADDED
@@ -0,0 +1,273 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fir-cli-x
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.7.2.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- sparkrico
|
8
|
+
- NaixSpirit
|
9
|
+
- atpking
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2019-07-26 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: bundler
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: rake
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: minitest
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '5.7'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '5.7'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: pry
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.10'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0.10'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: thor
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0.19'
|
78
|
+
type: :runtime
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - "~>"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0.19'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: rest-client
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '2.0'
|
92
|
+
type: :runtime
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - "~>"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '2.0'
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: ruby_android_apk
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: 0.7.7.1
|
106
|
+
type: :runtime
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 0.7.7.1
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: rqrcode
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0.7'
|
120
|
+
type: :runtime
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - "~>"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0.7'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: CFPropertyList
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :runtime
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: api_tools
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - "~>"
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: 0.1.0
|
148
|
+
type: :runtime
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - "~>"
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: 0.1.0
|
155
|
+
description: fir.im command tool, support iOS and Android
|
156
|
+
email:
|
157
|
+
- sparkrico@gmail.com
|
158
|
+
executables:
|
159
|
+
- console
|
160
|
+
- fir
|
161
|
+
- setup
|
162
|
+
extensions: []
|
163
|
+
extra_rdoc_files: []
|
164
|
+
files:
|
165
|
+
- ".codeclimate.yml"
|
166
|
+
- ".dockerignore"
|
167
|
+
- ".flow-plugin.yml"
|
168
|
+
- ".gitignore"
|
169
|
+
- ".travis.yml"
|
170
|
+
- CHANGELOG
|
171
|
+
- Dockerfile
|
172
|
+
- Gemfile
|
173
|
+
- LICENSE.txt
|
174
|
+
- README.md
|
175
|
+
- Rakefile
|
176
|
+
- bin/console
|
177
|
+
- bin/fir
|
178
|
+
- bin/setup
|
179
|
+
- doc/help.md
|
180
|
+
- doc/info.md
|
181
|
+
- doc/install.md
|
182
|
+
- doc/login.md
|
183
|
+
- doc/publish.md
|
184
|
+
- doc/upgrade.md
|
185
|
+
- fir-cli.gemspec
|
186
|
+
- fir.sh
|
187
|
+
- install.sh
|
188
|
+
- lib/fir-cli.rb
|
189
|
+
- lib/fir.rb
|
190
|
+
- lib/fir/api.yml
|
191
|
+
- lib/fir/cli.rb
|
192
|
+
- lib/fir/patches.rb
|
193
|
+
- lib/fir/patches/blank.rb
|
194
|
+
- lib/fir/patches/concern.rb
|
195
|
+
- lib/fir/patches/default_headers.rb
|
196
|
+
- lib/fir/patches/hash.rb
|
197
|
+
- lib/fir/patches/instance_variables.rb
|
198
|
+
- lib/fir/patches/native_patch.rb
|
199
|
+
- lib/fir/patches/os_patch.rb
|
200
|
+
- lib/fir/patches/try.rb
|
201
|
+
- lib/fir/util.rb
|
202
|
+
- lib/fir/util/build_apk.rb
|
203
|
+
- lib/fir/util/build_common.rb
|
204
|
+
- lib/fir/util/build_ipa.rb
|
205
|
+
- lib/fir/util/config.rb
|
206
|
+
- lib/fir/util/http.rb
|
207
|
+
- lib/fir/util/info.rb
|
208
|
+
- lib/fir/util/login.rb
|
209
|
+
- lib/fir/util/mapping.rb
|
210
|
+
- lib/fir/util/me.rb
|
211
|
+
- lib/fir/util/parser/apk.rb
|
212
|
+
- lib/fir/util/parser/bin/pngcrush
|
213
|
+
- lib/fir/util/parser/common.rb
|
214
|
+
- lib/fir/util/parser/ipa.rb
|
215
|
+
- lib/fir/util/parser/pngcrush.rb
|
216
|
+
- lib/fir/util/publish.rb
|
217
|
+
- lib/fir/version.rb
|
218
|
+
- lib/fir/xcode_wrapper.sh
|
219
|
+
- lib/fir_cli.rb
|
220
|
+
- test/build_ipa_test.rb
|
221
|
+
- test/cases/test_apk.apk
|
222
|
+
- test/cases/test_apk_txt
|
223
|
+
- test/cases/test_ipa.ipa
|
224
|
+
- test/cases/test_ipa_dsym
|
225
|
+
- test/info_test.rb
|
226
|
+
- test/login_test.rb
|
227
|
+
- test/mapping_test.rb
|
228
|
+
- test/me_test.rb
|
229
|
+
- test/publish_test.rb
|
230
|
+
- test/test_helper.rb
|
231
|
+
homepage: https://github.com/sparkrico/fir-cli
|
232
|
+
licenses:
|
233
|
+
- MIT
|
234
|
+
metadata: {}
|
235
|
+
post_install_message: "\n ______________ ________ ____\n /
|
236
|
+
____/ _/ __ \\ / ____/ / / _/\n / /_ / // /_/ /_____/ / / / /
|
237
|
+
/\n / __/ _/ // _, _/_____/ /___/ /____/ /\n /_/ /___/_/ |_| \\____/_____/___/\n\n
|
238
|
+
\ ## 更新记录\n - (1.7.2.1) 修复label nil 的问题,更新了ruby_android_apk库\n - (1.7.2) 修正了无论是否加参数都固定出现二维码图片的bug\n
|
239
|
+
\ - (1.7.1) 增加了 钉钉推送 , 增加了返回指定版本下载地址\n - (1.7.0) 过期了ipa_build 功能, 增加了对 android
|
240
|
+
manifest instant run 的兼容\n - (1.6.13) 上传图标逻辑修改\n - (1.6.12) 修复了部分机器没有默认安装 byebug
|
241
|
+
的问题\n - (1.6.11) 变化了 ruby gem 仓库地址\n - [fir-cli](https://github.com/firhq/fir-cli)
|
242
|
+
已经开源\n - 欢迎 fork, issue 和 pull request\n "
|
243
|
+
rdoc_options: []
|
244
|
+
require_paths:
|
245
|
+
- lib
|
246
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
251
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
252
|
+
requirements:
|
253
|
+
- - ">="
|
254
|
+
- !ruby/object:Gem::Version
|
255
|
+
version: '0'
|
256
|
+
requirements: []
|
257
|
+
rubyforge_project:
|
258
|
+
rubygems_version: 2.6.7
|
259
|
+
signing_key:
|
260
|
+
specification_version: 4
|
261
|
+
summary: fir.im command tool
|
262
|
+
test_files:
|
263
|
+
- test/build_ipa_test.rb
|
264
|
+
- test/cases/test_apk.apk
|
265
|
+
- test/cases/test_apk_txt
|
266
|
+
- test/cases/test_ipa.ipa
|
267
|
+
- test/cases/test_ipa_dsym
|
268
|
+
- test/info_test.rb
|
269
|
+
- test/login_test.rb
|
270
|
+
- test/mapping_test.rb
|
271
|
+
- test/me_test.rb
|
272
|
+
- test/publish_test.rb
|
273
|
+
- test/test_helper.rb
|