bytedance 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +164 -0
- data/lib/bytedance/version.rb +1 -1
- data/lib/bytedance.rb +1 -0
- data/lib/command/fastlanehelper.rb +23 -0
- data/lib/command/file_helper.rb +15 -0
- data/lib/command/project/create.rb +42 -0
- data/lib/command/project.rb +17 -0
- metadata +6 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a7fec18f09b43d1c1cb7a7c251ae3f2156de69a
|
4
|
+
data.tar.gz: 171e826a03e6d00de101bbba6d41ab06b41c225f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6f9e8aae89fa5f32b0c74016af74992f185d11a146cb7a2a15c66ccfa8ae03fdf784b70a2f7d1f93a20c3380d27f7328ea638554542057ff9805f8c82fdb43d
|
7
|
+
data.tar.gz: 96baf8a5b3c44955437564457720b74600d1ef47fb2893d87c12c8c1febf5bfa3f9786e723a1d05d19a956f04605a5e6a75d7a0418c44dee25ee5b7b439a6b4b
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
bytedance (0.2.0)
|
5
|
+
colored (~> 1.2)
|
6
|
+
fastlane (~> 2.94)
|
7
|
+
json (~> 1.8)
|
8
|
+
terminal-table (~> 1.8)
|
9
|
+
xcodeproj (~> 1.5)
|
10
|
+
|
11
|
+
GEM
|
12
|
+
remote: https://rubygems.org/
|
13
|
+
specs:
|
14
|
+
CFPropertyList (3.0.0)
|
15
|
+
addressable (2.5.2)
|
16
|
+
public_suffix (>= 2.0.2, < 4.0)
|
17
|
+
atomos (0.1.2)
|
18
|
+
babosa (1.0.2)
|
19
|
+
claide (1.0.2)
|
20
|
+
colored (1.2)
|
21
|
+
colored2 (3.1.2)
|
22
|
+
commander-fastlane (4.4.6)
|
23
|
+
highline (~> 1.7.2)
|
24
|
+
declarative (0.0.10)
|
25
|
+
declarative-option (0.1.0)
|
26
|
+
domain_name (0.5.20180417)
|
27
|
+
unf (>= 0.0.5, < 1.0.0)
|
28
|
+
dotenv (2.4.0)
|
29
|
+
emoji_regex (0.1.1)
|
30
|
+
excon (0.62.0)
|
31
|
+
faraday (0.15.0)
|
32
|
+
multipart-post (>= 1.2, < 3)
|
33
|
+
faraday-cookie_jar (0.0.6)
|
34
|
+
faraday (>= 0.7.4)
|
35
|
+
http-cookie (~> 1.0.0)
|
36
|
+
faraday_middleware (0.12.2)
|
37
|
+
faraday (>= 0.7.4, < 1.0)
|
38
|
+
fastimage (2.1.3)
|
39
|
+
fastlane (2.94.0)
|
40
|
+
CFPropertyList (>= 2.3, < 4.0.0)
|
41
|
+
addressable (>= 2.3, < 3.0.0)
|
42
|
+
babosa (>= 1.0.2, < 2.0.0)
|
43
|
+
bundler (>= 1.12.0, < 2.0.0)
|
44
|
+
colored
|
45
|
+
commander-fastlane (>= 4.4.6, < 5.0.0)
|
46
|
+
dotenv (>= 2.1.1, < 3.0.0)
|
47
|
+
emoji_regex (~> 0.1)
|
48
|
+
excon (>= 0.45.0, < 1.0.0)
|
49
|
+
faraday (~> 0.9)
|
50
|
+
faraday-cookie_jar (~> 0.0.6)
|
51
|
+
faraday_middleware (~> 0.9)
|
52
|
+
fastimage (>= 2.1.0, < 3.0.0)
|
53
|
+
gh_inspector (>= 1.1.2, < 2.0.0)
|
54
|
+
google-api-client (>= 0.13.1, < 0.14.0)
|
55
|
+
highline (>= 1.7.2, < 2.0.0)
|
56
|
+
json (< 3.0.0)
|
57
|
+
mini_magick (~> 4.5.1)
|
58
|
+
multi_json
|
59
|
+
multi_xml (~> 0.5)
|
60
|
+
multipart-post (~> 2.0.0)
|
61
|
+
plist (>= 3.1.0, < 4.0.0)
|
62
|
+
public_suffix (~> 2.0.0)
|
63
|
+
rubyzip (>= 1.1.0, < 2.0.0)
|
64
|
+
security (= 0.1.3)
|
65
|
+
simctl (~> 1.6.3)
|
66
|
+
slack-notifier (>= 2.0.0, < 3.0.0)
|
67
|
+
terminal-notifier (>= 1.6.2, < 2.0.0)
|
68
|
+
terminal-table (>= 1.4.5, < 2.0.0)
|
69
|
+
tty-screen (>= 0.6.3, < 1.0.0)
|
70
|
+
tty-spinner (>= 0.8.0, < 1.0.0)
|
71
|
+
word_wrap (~> 1.0.0)
|
72
|
+
xcodeproj (>= 1.5.7, < 2.0.0)
|
73
|
+
xcpretty (>= 0.2.4, < 1.0.0)
|
74
|
+
xcpretty-travis-formatter (>= 0.0.3)
|
75
|
+
gh_inspector (1.1.3)
|
76
|
+
google-api-client (0.13.6)
|
77
|
+
addressable (~> 2.5, >= 2.5.1)
|
78
|
+
googleauth (~> 0.5)
|
79
|
+
httpclient (>= 2.8.1, < 3.0)
|
80
|
+
mime-types (~> 3.0)
|
81
|
+
representable (~> 3.0)
|
82
|
+
retriable (>= 2.0, < 4.0)
|
83
|
+
googleauth (0.6.2)
|
84
|
+
faraday (~> 0.12)
|
85
|
+
jwt (>= 1.4, < 3.0)
|
86
|
+
logging (~> 2.0)
|
87
|
+
memoist (~> 0.12)
|
88
|
+
multi_json (~> 1.11)
|
89
|
+
os (~> 0.9)
|
90
|
+
signet (~> 0.7)
|
91
|
+
highline (1.7.10)
|
92
|
+
http-cookie (1.0.3)
|
93
|
+
domain_name (~> 0.5)
|
94
|
+
httpclient (2.8.3)
|
95
|
+
json (1.8.3)
|
96
|
+
jwt (2.1.0)
|
97
|
+
little-plugger (1.1.4)
|
98
|
+
logging (2.2.2)
|
99
|
+
little-plugger (~> 1.1)
|
100
|
+
multi_json (~> 1.10)
|
101
|
+
memoist (0.16.0)
|
102
|
+
mime-types (3.1)
|
103
|
+
mime-types-data (~> 3.2015)
|
104
|
+
mime-types-data (3.2016.0521)
|
105
|
+
mini_magick (4.5.1)
|
106
|
+
minitest (5.8.3)
|
107
|
+
multi_json (1.13.1)
|
108
|
+
multi_xml (0.6.0)
|
109
|
+
multipart-post (2.0.0)
|
110
|
+
nanaimo (0.2.5)
|
111
|
+
naturally (2.1.0)
|
112
|
+
os (0.9.6)
|
113
|
+
plist (3.4.0)
|
114
|
+
public_suffix (2.0.5)
|
115
|
+
representable (3.0.4)
|
116
|
+
declarative (< 0.1.0)
|
117
|
+
declarative-option (< 0.2.0)
|
118
|
+
uber (< 0.2.0)
|
119
|
+
retriable (3.1.1)
|
120
|
+
rouge (2.0.7)
|
121
|
+
rubyzip (1.2.1)
|
122
|
+
security (0.1.3)
|
123
|
+
signet (0.8.1)
|
124
|
+
addressable (~> 2.3)
|
125
|
+
faraday (~> 0.9)
|
126
|
+
jwt (>= 1.5, < 3.0)
|
127
|
+
multi_json (~> 1.10)
|
128
|
+
simctl (1.6.4)
|
129
|
+
CFPropertyList
|
130
|
+
naturally
|
131
|
+
slack-notifier (2.3.2)
|
132
|
+
terminal-notifier (1.8.0)
|
133
|
+
terminal-table (1.8.0)
|
134
|
+
unicode-display_width (~> 1.1, >= 1.1.1)
|
135
|
+
tty-cursor (0.5.0)
|
136
|
+
tty-screen (0.6.4)
|
137
|
+
tty-spinner (0.8.0)
|
138
|
+
tty-cursor (>= 0.5.0)
|
139
|
+
uber (0.1.0)
|
140
|
+
unf (0.1.4)
|
141
|
+
unf_ext
|
142
|
+
unf_ext (0.0.7.5)
|
143
|
+
unicode-display_width (1.3.2)
|
144
|
+
word_wrap (1.0.0)
|
145
|
+
xcodeproj (1.5.7)
|
146
|
+
CFPropertyList (>= 2.3.3, < 4.0)
|
147
|
+
atomos (~> 0.1.2)
|
148
|
+
claide (>= 1.0.2, < 2.0)
|
149
|
+
colored2 (~> 3.1)
|
150
|
+
nanaimo (~> 0.2.4)
|
151
|
+
xcpretty (0.2.8)
|
152
|
+
rouge (~> 2.0.7)
|
153
|
+
xcpretty-travis-formatter (1.0.0)
|
154
|
+
xcpretty (~> 0.2, >= 0.0.7)
|
155
|
+
|
156
|
+
PLATFORMS
|
157
|
+
ruby
|
158
|
+
|
159
|
+
DEPENDENCIES
|
160
|
+
bytedance!
|
161
|
+
minitest (~> 5.0)
|
162
|
+
|
163
|
+
BUNDLED WITH
|
164
|
+
1.16.1
|
data/lib/bytedance/version.rb
CHANGED
data/lib/bytedance.rb
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
module Bytedance
|
2
|
+
class FastlaneHelper
|
3
|
+
|
4
|
+
def initialize()
|
5
|
+
load_require
|
6
|
+
@runner = Fastlane::Runner.new
|
7
|
+
end
|
8
|
+
|
9
|
+
def load_require
|
10
|
+
Dir[File.expand_path('*.rb', File.dirname(FileHelper.fastlane_action_path))].each do |file|
|
11
|
+
require file
|
12
|
+
end
|
13
|
+
Dir[File.expand_path('*.rb', File.dirname(FileHelper.fastlane_helper_path))].each do |file|
|
14
|
+
require file
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def execute_fastlane_action(action_name)
|
19
|
+
@runner.execute_action(action_name,@runner.class_reference_from_action_name(action_name),[],custom_dir:".")
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class FileHelper
|
2
|
+
|
3
|
+
def self.fastlane_base_path
|
4
|
+
File.dirname(`gem which fastlane`)
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.fastlane_action_path
|
8
|
+
FileHelper.fastlane_base_path + "/fastlane/actions/."
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.fastlane_helper_path
|
12
|
+
FileHelper.fastlane_base_path + "/fastlane/helper/."
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Bytedance
|
2
|
+
class BytedanceManager
|
3
|
+
class Project
|
4
|
+
class Create < Project
|
5
|
+
self.summary = ''
|
6
|
+
|
7
|
+
def self.options
|
8
|
+
[['--platform', '是否引入平台基础库,默认引入,不引入使用--no-platform'],
|
9
|
+
['--components=[none|optional|all]', 'none 不引入任何组件,optional 选择自己想要的(default), all 引入全部组件,于平台一致'],
|
10
|
+
['--prefix', '可选,默认 prefix = TT']].concat(super)
|
11
|
+
end
|
12
|
+
|
13
|
+
def initialize(params)
|
14
|
+
@projectName = params.shift_argument
|
15
|
+
@components = params.option('components','optional')
|
16
|
+
@prefix = params.option('prefix','TT')
|
17
|
+
@platform = params.flag?('platform',true)
|
18
|
+
super
|
19
|
+
end
|
20
|
+
|
21
|
+
def validate!
|
22
|
+
super
|
23
|
+
if @components && !%w(none optional all).include?(@components)
|
24
|
+
help! "`#{@components}' 参数无效,components = none 或 optional 或 all "
|
25
|
+
end
|
26
|
+
|
27
|
+
if !@projectName
|
28
|
+
help! "参数错误,需要输入项目名称,bytedance project create projectName"
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
def run
|
34
|
+
super
|
35
|
+
parameter = [@projectName,'--components='+ @components,'--prefix=' + @prefix, @platform ? '--platform' : '--no-platform', '--template-url=git@code.byted.org:TTIOS/pod-template.git']
|
36
|
+
finalParams = CLAide::ARGV.new(parameter)
|
37
|
+
Pod::Command::Lib::Create.new(finalParams).run
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Bytedance
|
2
|
+
class BytedanceManager
|
3
|
+
class Project < BytedanceManager
|
4
|
+
require_relative './project/create'
|
5
|
+
self.abstract_command = true
|
6
|
+
self.summary = ''
|
7
|
+
|
8
|
+
self.description = <<-DESC
|
9
|
+
|
10
|
+
DESC
|
11
|
+
|
12
|
+
def run
|
13
|
+
super
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bytedance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jialei
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- ".gitignore"
|
106
106
|
- CODE_OF_CONDUCT.md
|
107
107
|
- Gemfile
|
108
|
+
- Gemfile.lock
|
108
109
|
- LICENSE.txt
|
109
110
|
- README.md
|
110
111
|
- Rakefile
|
@@ -114,10 +115,14 @@ files:
|
|
114
115
|
- bytedance.gemspec
|
115
116
|
- lib/bytedance.rb
|
116
117
|
- lib/bytedance/version.rb
|
118
|
+
- lib/command/fastlanehelper.rb
|
117
119
|
- lib/command/file_help.rb
|
120
|
+
- lib/command/file_helper.rb
|
118
121
|
- lib/command/lib.rb
|
119
122
|
- lib/command/lib/create.rb
|
120
123
|
- lib/command/lib/publish.rb
|
124
|
+
- lib/command/project.rb
|
125
|
+
- lib/command/project/create.rb
|
121
126
|
homepage: https://code.byted.org/jialei.jay/tool_bytedance
|
122
127
|
licenses:
|
123
128
|
- MIT
|