cocoapods-mars 0.0.15 → 0.0.16
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cocoapods-vemars/command/component.rb +0 -54
- data/lib/cocoapods-vemars/command/vemars/prompt.rb +47 -40
- data/lib/cocoapods-vemars/gem_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2c527d994607efe3b26c4e9b82f2946909800bc6114b9426d3f20b6bf9ac945
|
4
|
+
data.tar.gz: f28621350cff835d3e93bbd65621a4e2e2d40cc88992ab45456742127832cb08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef47b260fc6882835bfb067eabb6bdb1bc45d02e9355fad4f893cf045020cd743f447efba1ae8369e382799153a8c514b6289028b7fbdebdaaae897dcd9fc906
|
7
|
+
data.tar.gz: 215f8bfa6df6333006e8bcbcd37d8a06c062501b9309832c251b2f5ff6ad2020a05f45da28a35e39242dd3c9f0201d19058ef5b66ebd1b7b5a55068ad90d611f
|
data/Gemfile.lock
CHANGED
@@ -14,60 +14,6 @@ module Pod
|
|
14
14
|
@name = json["name"]
|
15
15
|
@version = json["version"]
|
16
16
|
@subspecs = json["subspecs"]
|
17
|
-
if @name === "RangersAPM"
|
18
|
-
@subspecs = ['Crash',
|
19
|
-
'WatchDog',
|
20
|
-
'OOM',
|
21
|
-
'LAG',
|
22
|
-
'UserException',
|
23
|
-
'Monitors',
|
24
|
-
'UITrackers',
|
25
|
-
'Hybrid',
|
26
|
-
'MemoryGraph',
|
27
|
-
'Network',
|
28
|
-
'EventMonitor',
|
29
|
-
'CN']
|
30
|
-
elsif @name == "RangersAppLog"
|
31
|
-
@subspecs = [
|
32
|
-
'Core',
|
33
|
-
'Host/CN',
|
34
|
-
'OneKit',
|
35
|
-
'UITracker',
|
36
|
-
'Picker',
|
37
|
-
'Log',
|
38
|
-
'Unique'
|
39
|
-
]
|
40
|
-
elsif @name == "VEAppUpdateHelper"
|
41
|
-
@subspecs = [
|
42
|
-
'VEUpdateHelper',
|
43
|
-
'VEUpdateView'
|
44
|
-
]
|
45
|
-
elsif @name == "VERemoteConfig"
|
46
|
-
@subspecs = [
|
47
|
-
'Core',
|
48
|
-
'OneKit',
|
49
|
-
'TestPage'
|
50
|
-
]
|
51
|
-
elsif @name == "VEInstall"
|
52
|
-
@subspecs = [
|
53
|
-
'Core',
|
54
|
-
'URL/CN',
|
55
|
-
'IDFA',
|
56
|
-
'CAID',
|
57
|
-
'OneKit'
|
58
|
-
]
|
59
|
-
elsif @name == "OneKit"
|
60
|
-
@subspecs = [
|
61
|
-
'BaseKit',
|
62
|
-
'Defaults',
|
63
|
-
'Database',
|
64
|
-
'MARS/Auth',
|
65
|
-
'Reachability',
|
66
|
-
'Service',
|
67
|
-
'StartUp',
|
68
|
-
'Screenshot'
|
69
|
-
]
|
70
|
-
end
|
71
17
|
end
|
72
18
|
|
73
19
|
def to_s
|
@@ -41,47 +41,31 @@ module Pod
|
|
41
41
|
if @prompt_type == 1
|
42
42
|
@name = prompt.ask("请输入工程名:", default: "MarsDemo")
|
43
43
|
elsif @prompt_type == 2
|
44
|
-
|
45
|
-
@path = prompt.ask("请输入Podfile所在的工程目录",default:store["podfile-path"])
|
46
|
-
elsif
|
47
|
-
@path = prompt.ask("请输入Podfile所在的工程目录")
|
48
|
-
end
|
44
|
+
promptAskWithCache("请输入Podfile所在的工程目录","podfile-path",store,prompt)
|
49
45
|
end
|
50
46
|
languages = [ {name: "Objective-C", value: "objc"},{name:"Swift", value: "swift"}]
|
51
47
|
@language = prompt.select("选择开发语言:", languages)
|
52
|
-
|
53
|
-
if store.key?('config-path')
|
54
|
-
@config_json = prompt.ask("请输入config.json配置文件路径",default:store["config-path"])
|
55
|
-
elsif
|
56
|
-
@config_json = prompt.ask("请输入config.json配置文件路径")
|
57
|
-
end
|
48
|
+
promptAskWithCache("请输入config.json配置文件路径","config-path",store,prompt)
|
58
49
|
@version = prompt.select("选择基线:", baselines)
|
59
|
-
|
60
|
-
comp_api = Components_api.new(@version,@service_url)
|
61
|
-
components = comp_api.getComponents().select do |components|
|
62
|
-
components.name != "ve_Template_iOS"
|
63
|
-
end
|
64
|
-
components = components.map {|c| c.name}.select {|c| c.length > 0}
|
65
|
-
components.insert(0, components.delete('RangersAPM'))
|
66
|
-
components.insert(0, components.delete('RangersAppLog'))
|
67
|
-
components.insert(0, components.delete('VEAppUpdateHelper'))
|
68
|
-
components.insert(0, components.delete('VERemoteConfig'))
|
69
|
-
components.insert(0, components.delete('BDHotfix'))
|
70
|
-
components.insert(0, components.delete('VEH5Kit'))
|
71
|
-
@selected_components = prompt.multi_select("选择组件:",components,per_page: 10)
|
72
|
-
|
73
|
-
|
50
|
+
@selected_components = prompt.multi_select("选择组件:",getComponents,per_page: 10)
|
74
51
|
|
75
52
|
#toDO
|
76
|
-
|
77
|
-
# if private_configs
|
53
|
+
|
78
54
|
git_url = argv.option('git', 'https://github.com/volcengine/ve_Template_iOS.git')
|
79
|
-
@repo_no_update =
|
80
|
-
service_url =
|
81
|
-
sources =
|
82
|
-
@silent =
|
83
|
-
@appkey =
|
84
|
-
@bundle_id =
|
55
|
+
@repo_no_update = false
|
56
|
+
service_url = nil
|
57
|
+
sources = 'https://github.com/volcengine/volcengine-specs.git,https://cdn.cocoapods.org/'
|
58
|
+
@silent = false
|
59
|
+
@appkey = ''
|
60
|
+
@bundle_id = nil
|
61
|
+
|
62
|
+
private_configs = prompt.ask("是否进行私有化配置?",convert: :boolean,default:"no")
|
63
|
+
if private_configs
|
64
|
+
service_url = prompt.ask('请输入基线服务的URL地址:',default: 'https://mars-fwk.vemarsdev.com/')
|
65
|
+
git_url = prompt.ask('请输入脚手架Demo仓库的地址:',default: 'https://github.com/volcengine/ve_Template_iOS.git')
|
66
|
+
sources = prompt.ask('请输入Cocoapods源的地址的URL地址:',default: 'https://github.com/volcengine/volcengine-specs.git,https://cdn.cocoapods.org/')
|
67
|
+
@repo_no_update = prompt.ask("是否跳过更新本地Pod仓库?",convert: :boolean,default:"no")
|
68
|
+
end
|
85
69
|
|
86
70
|
#save Configs
|
87
71
|
store['config-path'] = @config_json
|
@@ -115,10 +99,33 @@ module Pod
|
|
115
99
|
end
|
116
100
|
end
|
117
101
|
|
102
|
+
def promptAskWithCache(message,key,store,prompt)
|
103
|
+
if store.key?(key)
|
104
|
+
@config_json = prompt.ask(message,default:store[key])
|
105
|
+
elsif
|
106
|
+
@config_json = prompt.ask(message)
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
def getComponents
|
111
|
+
comp_api = Components_api.new(@version,@service_url)
|
112
|
+
components = comp_api.getComponents().select do |components|
|
113
|
+
components.name != "ve_Template_iOS"
|
114
|
+
end
|
115
|
+
components = components.map {|c| c.name}.select {|c| c.length > 0}
|
116
|
+
components.insert(0, components.delete('RangersAPM'))
|
117
|
+
components.insert(0, components.delete('RangersAppLog'))
|
118
|
+
components.insert(0, components.delete('VEAppUpdateHelper'))
|
119
|
+
components.insert(0, components.delete('VERemoteConfig'))
|
120
|
+
components.insert(0, components.delete('BDHotfix'))
|
121
|
+
components.insert(0, components.delete('VEH5Kit'))
|
122
|
+
components
|
123
|
+
end
|
124
|
+
|
118
125
|
def podInstallInCreateProcess
|
119
|
-
puts "Current dir: #{Dir.pwd}"
|
126
|
+
puts "[MARS] Current dir: #{Dir.pwd}"
|
120
127
|
project_dir = File.join(Dir.pwd, [@project.basicInfo.name, "Project"])
|
121
|
-
puts "Pod install directory: #{project_dir}"
|
128
|
+
puts "[MARS] Pod install directory: #{project_dir}"
|
122
129
|
if @silent
|
123
130
|
puts "Pod install skipped!"
|
124
131
|
puts "You can run Pod install in '#{project_dir}' later!"
|
@@ -131,7 +138,7 @@ module Pod
|
|
131
138
|
# system('bundle install')
|
132
139
|
# system('bundle exec pod install --repo-update')
|
133
140
|
if @repo_no_update
|
134
|
-
puts "pod install with no repo update"
|
141
|
+
puts "[MARS] pod install with no repo update"
|
135
142
|
system('pod install --no-repo-update')
|
136
143
|
else
|
137
144
|
system('pod install --repo-update')
|
@@ -140,9 +147,9 @@ module Pod
|
|
140
147
|
end
|
141
148
|
|
142
149
|
def podInstallInPatchProcess
|
143
|
-
puts "Current dir: #{Dir.pwd}"
|
150
|
+
puts "[MARS] Current dir: #{Dir.pwd}"
|
144
151
|
project_dir = @path
|
145
|
-
puts "Pod install directory: #{project_dir}"
|
152
|
+
puts "[MARS] Pod install directory: #{project_dir}"
|
146
153
|
if @silent
|
147
154
|
puts "Pod install skipped!"
|
148
155
|
puts "You can run Pod install in '#{project_dir}' later!"
|
@@ -153,7 +160,7 @@ module Pod
|
|
153
160
|
# system('bundle install')
|
154
161
|
# system('bundle exec pod install --repo-update')
|
155
162
|
if @repo_no_update
|
156
|
-
puts "pod install with no repo update"
|
163
|
+
puts "[MARS] pod install with no repo update"
|
157
164
|
system('pod install --no-repo-update')
|
158
165
|
else
|
159
166
|
system('pod install --repo-update')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-mars
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- huangbomao@bytedance.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|