cocoapods-privacy 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-privacy/command/privacy/install.rb +2 -0
- data/lib/cocoapods-privacy/command/privacy/spec.rb +7 -0
- data/lib/cocoapods-privacy/gem_version.rb +1 -1
- data/lib/cocoapods-privacy/privacy/PrivacyModule.rb +1 -6
- data/lib/cocoapods-privacy/privacy/privacy_installer_hook.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e2c2edb2a21e1dc73f639fab1bd7b78eda9e0caeecd8597378c8f8b4c4f35c2
|
4
|
+
data.tar.gz: 8f98ddf47a36beebbc8c80b3da3fad5f0cfccfd0a0b491e81af13bf1f156e16f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 407e0cf2c260455f3bfed2232b656317b140759018dae8ce9eb6aa605c3df316d07ef772c23b2aa823a03790088257c5763e5bf73f2e70d0342783df5c953fc6
|
7
|
+
data.tar.gz: 5c2859958cdfafb1ef978d1ede514595caaaf73a9bd864a84eb7a1522f0d40768a3310b67d7206b68c95f16514a9b22cb014e6b23215cbd70e19d2f861ccd1c2
|
@@ -16,6 +16,13 @@ module Pod
|
|
16
16
|
@podspec_file = argv.arguments!.first
|
17
17
|
super
|
18
18
|
end
|
19
|
+
|
20
|
+
def validate!
|
21
|
+
@podspec_file = @podspec_file ? @podspec_file : PrivacyUtils.podspec_file_path
|
22
|
+
unless @podspec_file && !@podspec_file.empty?
|
23
|
+
raise Informative, 'no podspec file were found, please run pod privacy podspec_file_path'
|
24
|
+
end
|
25
|
+
end
|
19
26
|
|
20
27
|
def run
|
21
28
|
PrivacyModule.load_module(@podspec_file)
|
@@ -149,12 +149,7 @@ module PrivacyModule
|
|
149
149
|
end
|
150
150
|
|
151
151
|
# 处理组件
|
152
|
-
def self.load_module(
|
153
|
-
podspec_file_path = podspec_file ? podspec_file : PrivacyUtils.podspec_file_path
|
154
|
-
unless podspec_file_path && !podspec_file_path.empty?
|
155
|
-
raise Informative, "no podspec file were found, please run `pod privacy podspec_file_path`"
|
156
|
-
end
|
157
|
-
|
152
|
+
def self.load_module(podspec_file_path)
|
158
153
|
privacy_hash = PrivacyModule.check(podspec_file_path)
|
159
154
|
privacy_hash.each do |privacy_file_path, source_files|
|
160
155
|
data = PrivacyHunter.search_pricacy_apis(source_files)
|
@@ -65,7 +65,7 @@ module Pod
|
|
65
65
|
def install!
|
66
66
|
privacy_origin_install!()
|
67
67
|
|
68
|
-
if !(Pod::Config.instance.is_privacy || !Pod::Config.instance.privacy_folds.empty?)
|
68
|
+
if !(Pod::Config.instance.is_privacy || (Pod::Config.instance.privacy_folds && !Pod::Config.instance.privacy_folds.empty?))
|
69
69
|
return
|
70
70
|
end
|
71
71
|
|