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: 5cba9b9c9c115fa3aa4ce42e7a16a941ff121244e8293b73ef966d66e83a1d6f
4
- data.tar.gz: dc65d1598e50bcda55d989d70e515e3197540d43e952d2fa4d3941010f585080
3
+ metadata.gz: beb3bc28efd1813cccefa829300fe3f334c93180e124bfb984185d89e2595f86
4
+ data.tar.gz: e3f167d76c1b78e46887b0464e62bedfbd557cc3f87a66da7bb8a5c8932f5da9
5
5
  SHA512:
6
- metadata.gz: c72e3521078489bed4c1e4dfea1f9cf229d5ff9a315750bb7043106078225c8e976894306a8997af365b418a6c03132b837c6364895f12d8e7aae5a920db1a5f
7
- data.tar.gz: 4e2e36942669c75e9ff98be1224989bd4682830cf25ca2c6763b57fb0fd24ded722909e090389aeaf5a76e3a831c68f629945594d94c4783a58857fd655d1d19
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,flag = "")
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,flag = "")
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 = podspec.version.to_s
26
- version = version.gsub('.', '_') # Replace dots with underscores
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(version)
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,version)
35
- hunter.insert_encrypted_apis_to_confuse_swift(swift_extension_funcBody_map,swift_confuse_file_path,version)
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
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPrivacy
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  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.0
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-05-21 00:00:00.000000000 Z
11
+ date: 2025-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler