cocoapods-privacy 0.7.0 → 0.7.2
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: '009e9030ccb783722e84f98a57d3b42a006b9d6791b16b05878d078096712082'
|
|
4
|
+
data.tar.gz: f476990fb8393fd7f89c7bd73749393494e84ac7dff7035769851217788bea19
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d49ea524e3646a1b5b4b1ed0c8ecf44b95aa50f5cb836e4b4f7d67b34972d5a7575cfdcc693aa34282b3f04cfc3924ac52d5358012f4f52b54e28932e16539bb
|
|
7
|
+
data.tar.gz: 5ba30536b73faf5d1d99a9fe907daa67e800e503c6b500391783f956ed7d120a112c2d133772e1ae2b328e18ed6067b35d279c90b1de214719ce0a717519cb9a
|
|
@@ -20,7 +20,7 @@ module Confuse
|
|
|
20
20
|
return apis_define_map, swift_extension_funcBody_map
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
def insert_encrypted_apis_to_confuse_header(apis_define_map,confuse_header_path
|
|
23
|
+
def insert_encrypted_apis_to_confuse_header(apis_define_map,confuse_header_path)
|
|
24
24
|
# 存储已生成的随机字符串以确保唯一性
|
|
25
25
|
generated_strings = {}
|
|
26
26
|
|
|
@@ -36,7 +36,7 @@ module Confuse
|
|
|
36
36
|
File.write(confuse_header_path, confuse_header_content)
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
def insert_encrypted_apis_to_confuse_swift(swift_extension_funcBody_map,swift_confuse_file_path
|
|
39
|
+
def insert_encrypted_apis_to_confuse_swift(swift_extension_funcBody_map,swift_confuse_file_path)
|
|
40
40
|
# 存储已生成的随机字符串以确保唯一性
|
|
41
41
|
generated_strings = {}
|
|
42
42
|
|
|
@@ -4,6 +4,7 @@ require 'cocoapods-core/specification/dsl/attribute'
|
|
|
4
4
|
require 'xcodeproj'
|
|
5
5
|
require 'plist'
|
|
6
6
|
require 'yaml'
|
|
7
|
+
require 'base64'
|
|
7
8
|
|
|
8
9
|
module ConfuseModule
|
|
9
10
|
|
|
@@ -22,17 +23,18 @@ module ConfuseModule
|
|
|
22
23
|
# puts "exclude_files = #{exclude_files}"
|
|
23
24
|
# puts "confuse_file_path = #{confuse_file_path}"
|
|
24
25
|
podspec = Pod::Specification.from_file(podspec_file_path)
|
|
25
|
-
version =
|
|
26
|
-
|
|
26
|
+
version = podspec.version.to_s.gsub('.', '_') # Replace dots with underscores
|
|
27
|
+
name = Base64.encode64(podspec.name.to_s)
|
|
28
|
+
mix_version = version + "_" + name
|
|
27
29
|
|
|
28
|
-
hunter = Confuse::Hunter.new(
|
|
30
|
+
hunter = Confuse::Hunter.new(mix_version)
|
|
29
31
|
apis_define_map, swift_extension_funcBody_map = hunter.search_need_confuse_apis(source_files,exclude_files)
|
|
30
32
|
# puts "swift_extension_funcBody_map = #{swift_extension_funcBody_map}"
|
|
31
33
|
|
|
32
34
|
oc_confuse_file_path = "#{confuse_file_path}.h"
|
|
33
35
|
swift_confuse_file_path = "#{confuse_file_path}.swift"
|
|
34
|
-
hunter.insert_encrypted_apis_to_confuse_header(apis_define_map,oc_confuse_file_path
|
|
35
|
-
hunter.insert_encrypted_apis_to_confuse_swift(swift_extension_funcBody_map,swift_confuse_file_path
|
|
36
|
+
hunter.insert_encrypted_apis_to_confuse_header(apis_define_map,oc_confuse_file_path)
|
|
37
|
+
hunter.insert_encrypted_apis_to_confuse_swift(swift_extension_funcBody_map,swift_confuse_file_path)
|
|
36
38
|
end
|
|
37
39
|
puts "👆👆👆👆👆👆 End analysis component confuse 👆👆👆👆👆👆"
|
|
38
40
|
end
|
|
@@ -66,6 +66,17 @@ module Pod
|
|
|
66
66
|
else
|
|
67
67
|
#读取工程plistinfo 中的ISConfuse 配置
|
|
68
68
|
project_path = ConfuseUtils.project_path()
|
|
69
|
+
if project_path.nil? || project_path.empty?
|
|
70
|
+
puts "[Confuse] project_path is nil or empty, skip confuse check"
|
|
71
|
+
return
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
project_file = File.basename(project_path)
|
|
75
|
+
unless File.exist?(project_file)
|
|
76
|
+
puts "[Confuse] project file not found: #{project_file}, skip confuse check"
|
|
77
|
+
return
|
|
78
|
+
end
|
|
79
|
+
|
|
69
80
|
project = Xcodeproj::Project.open(File.basename(project_path))
|
|
70
81
|
target = project.targets.first
|
|
71
82
|
plist_path = target.resolved_build_setting('INFOPLIST_FILE', resolve_against: target).first.last
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocoapods-privacy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- youhui
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bundler
|
|
@@ -79,7 +78,6 @@ homepage: https://github.com/ymoyao/cocoapods-privacy
|
|
|
79
78
|
licenses:
|
|
80
79
|
- MIT
|
|
81
80
|
metadata: {}
|
|
82
|
-
post_install_message:
|
|
83
81
|
rdoc_options: []
|
|
84
82
|
require_paths:
|
|
85
83
|
- lib
|
|
@@ -94,8 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
92
|
- !ruby/object:Gem::Version
|
|
95
93
|
version: '0'
|
|
96
94
|
requirements: []
|
|
97
|
-
rubygems_version:
|
|
98
|
-
signing_key:
|
|
95
|
+
rubygems_version: 4.0.9
|
|
99
96
|
specification_version: 4
|
|
100
97
|
summary: A longer description of cocoapods-privacy.
|
|
101
98
|
test_files:
|