cocoapods-bb-PodAssistant 0.3.17.0 → 0.3.17.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8fbcde06046e55cecd2c3b7696753d69d45219cf3e28a6ed4a31764148aab08c
|
|
4
|
+
data.tar.gz: f8b612f7efc6eb7f4af25e0b0d63d992d348a7965e68c5c075f4b219e96f11b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f990896dada117544a1976ffe0e08a0cff74912243f3f998a19939348aa08f4df67baff6e50971aead83f829295c9eeeeeb45a51423516c04d5c2899af2b246e
|
|
7
|
+
data.tar.gz: 3ceae617700c0d27b7e7f228c6516e0ec10622cd37b89a263295f5dc54f35adb7d1644f236d22d3724f052106de7c243a85513a690fa0098949fb9747f756c5d
|
data/bin/omvllctl
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
require 'gli'
|
|
3
|
+
require 'cocoapods-bb-PodAssistant'
|
|
4
|
+
|
|
5
|
+
include GLI::App
|
|
6
|
+
|
|
7
|
+
program_desc 'iOS加固命令行工具, 为iOS开发者提供的工具集合'
|
|
8
|
+
version CocoapodsBbPodassistant::VERSION
|
|
9
|
+
|
|
10
|
+
# Environment management is delegated to the shared shell backend.
|
|
11
|
+
# Set OMVLL_SCRIPT_DIR to the directory containing the management scripts.
|
|
12
|
+
def execute_backend(name, args)
|
|
13
|
+
script_dir = ENV.fetch('OMVLL_SCRIPT_DIR', File.join(Dir.home, 'omvll', 'scripts'))
|
|
14
|
+
script_dir = script_dir.sub(/\A(?:\$HOME|\$\{HOME\})(?=\/|\z)/) { Dir.home }
|
|
15
|
+
script_dir = File.expand_path(script_dir)
|
|
16
|
+
script = File.join(script_dir, "#{name}.sh")
|
|
17
|
+
unless File.file?(script) && File.readable?(script)
|
|
18
|
+
abort "O-MVLL backend script not found: #{script}"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
success = system('/bin/bash', script, *args)
|
|
22
|
+
exit($?.exitstatus || 1) unless success
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
desc '安装指定版本的工具链'
|
|
26
|
+
arg_name '[version]'
|
|
27
|
+
command :install do |c|
|
|
28
|
+
c.action do |global_options, options, args|
|
|
29
|
+
execute_backend('install', args)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
desc '检查工具链环境及编译兼容性'
|
|
34
|
+
command :check do |c|
|
|
35
|
+
c.action do |global_options, options, args|
|
|
36
|
+
execute_backend('check', args)
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
desc '解析当前 Xcode 对应的工具链'
|
|
41
|
+
arg_name '[version]'
|
|
42
|
+
command :resolve do |c|
|
|
43
|
+
c.action do |global_options, options, args|
|
|
44
|
+
execute_backend('resolve', args)
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
desc '准备本次构建环境并生成环境描述文件'
|
|
49
|
+
arg_name '[version]'
|
|
50
|
+
command :prepare do |c|
|
|
51
|
+
c.action do |global_options, options, args|
|
|
52
|
+
execute_backend('prepare', args)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
desc '查看当前工具链版本'
|
|
57
|
+
command :version do |c|
|
|
58
|
+
c.action do |global_options, options, args|
|
|
59
|
+
execute_backend('version', args)
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
desc '列出已安装的工具链版本'
|
|
64
|
+
command :list do |c|
|
|
65
|
+
c.action do |global_options, options, args|
|
|
66
|
+
execute_backend('list', args)
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
desc '更新工具链'
|
|
71
|
+
arg_name '[version]'
|
|
72
|
+
command :update do |c|
|
|
73
|
+
c.action do |global_options, options, args|
|
|
74
|
+
execute_backend('update', args)
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
desc '回滚到指定工具链版本'
|
|
79
|
+
arg_name 'version'
|
|
80
|
+
command :rollback do |c|
|
|
81
|
+
c.action do |global_options, options, args|
|
|
82
|
+
abort 'Usage: omvllctl rollback <version>' unless args.length == 1
|
|
83
|
+
execute_backend('rollback', args)
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
desc '卸载指定工具链版本'
|
|
88
|
+
arg_name 'version'
|
|
89
|
+
command :uninstall do |c|
|
|
90
|
+
c.action do |global_options, options, args|
|
|
91
|
+
abort 'Usage: omvllctl uninstall <version>' unless args.length == 1
|
|
92
|
+
execute_backend('uninstall', args)
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
exit run(ARGV)
|
|
@@ -45,8 +45,8 @@ module SecurityHardening
|
|
|
45
45
|
DEFAULT_OMVLL_WHITELIST + Array(omvll_whitelist)
|
|
46
46
|
).uniq
|
|
47
47
|
puts "omvll加固白名单 #{omvll_whitelist}"
|
|
48
|
-
app_apply_security_hardening(installer, enable_omvll)
|
|
49
48
|
pod_apply_security_hardening(installer, enable_omvll, omvll_whitelist)
|
|
49
|
+
app_apply_security_hardening(installer, enable_omvll)
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
private def resolve_omvll_plugin_flag
|
|
@@ -92,6 +92,10 @@ module SecurityHardening
|
|
|
92
92
|
update_setting(config, omvll_flag, enable_omvll)
|
|
93
93
|
end
|
|
94
94
|
end
|
|
95
|
+
if enable_omvll == true
|
|
96
|
+
project.save
|
|
97
|
+
puts "[O-MVLL][App] 工程保存成功: #{project.path}"
|
|
98
|
+
end
|
|
95
99
|
end
|
|
96
100
|
|
|
97
101
|
# pods配置原生加固
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocoapods-bb-PodAssistant
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.17.
|
|
4
|
+
version: 0.3.17.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- humin
|
|
@@ -142,6 +142,7 @@ executables:
|
|
|
142
142
|
- bb_tools
|
|
143
143
|
- match_decrypt
|
|
144
144
|
- match_encrypt
|
|
145
|
+
- omvllctl
|
|
145
146
|
extensions: []
|
|
146
147
|
extra_rdoc_files: []
|
|
147
148
|
files:
|
|
@@ -150,6 +151,7 @@ files:
|
|
|
150
151
|
- bin/bb_tools
|
|
151
152
|
- bin/match_decrypt
|
|
152
153
|
- bin/match_encrypt
|
|
154
|
+
- bin/omvllctl
|
|
153
155
|
- lib/cocoapods-bb-PodAssistant.rb
|
|
154
156
|
- lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
|
|
155
157
|
- lib/cocoapods-bb-PodAssistant/babybus/business/babybus_install_environment.rb
|