cocoapods-privacy 0.7.0 → 0.7.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: beb3bc28efd1813cccefa829300fe3f334c93180e124bfb984185d89e2595f86
|
4
|
+
data.tar.gz: e3f167d76c1b78e46887b0464e62bedfbd557cc3f87a66da7bb8a5c8932f5da9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e197dce77387dc835bf28841bb2a46e7e372b885393059082127bf146678e865c6c8a0e48128b8bc381ebcc4ec1f6a3bfe92edf8bda8acbcb847088d3f23fb51
|
7
|
+
data.tar.gz: e82af2e42076cd1173c4c5a9142b4f46118ae97629270cde4ccceef1b39d2245fd57f77a374a3d9370512bbcdf405483c537258d764552def9b904637098c010
|
@@ -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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- youhui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|