cocoapods-mangle 1.1.0 → 1.1.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 +4 -4
- data/lib/cocoapods_mangle/defines.rb +30 -9
- data/lib/cocoapods_mangle/gem_version.rb +1 -1
- data/spec/integration/integration_spec.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fba51e9e4914e8fd195d8bd14b59f089a35b20ac22a2fb446c1c30af7734e401
|
4
|
+
data.tar.gz: ddb6cb9f8e0c44a800f8ad4bac67df3320d92efafd172af0d8e1aab719949d65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d9d9973dfe54289ec2183c3e157005093e79de47a407b5dd939e17ade99de447b449e6b55a77603b520c830d91c8a4e7fd25b61a3591ada9816c3002ae50b2c
|
7
|
+
data.tar.gz: b8249e75f26e7f5ca5076ebda0e11320512d75ea268f2d095b5d53437e4b1c6a890046751e0e01142f5b15848be1115505ef2e61e2dab2a42928dbc3fcee8de2
|
@@ -121,26 +121,47 @@ module CocoapodsMangle
|
|
121
121
|
def self.swift_symbol?(symbol)
|
122
122
|
# Swift binaries have many symbols starting with $s_ that should be excluded
|
123
123
|
# e.g. '0000000000000258 S _$s9ManglePod9SomeClassCMF'
|
124
|
-
symbol[
|
124
|
+
symbol[/\$s/] ||
|
125
125
|
# Internal Swift symbols starting with __swift or ___swift such as should not be mangled
|
126
126
|
# e.g. '00000000000050ac S ___swift_reflection_version'
|
127
127
|
symbol[/ __(_)?swift/] ||
|
128
|
-
# Swift symbols starting with
|
129
|
-
# e.g. '
|
130
|
-
symbol[/
|
128
|
+
# Internal Swift symbols starting with Swift such as should not be mangled
|
129
|
+
# e.g. 'Swift51Override'
|
130
|
+
symbol[/Swift/] ||
|
131
|
+
# Swift symbols starting with symbolic should be ignored
|
132
|
+
# e.g. '0000000000000248 S symbolic _____ 9ManglePod9SomeClassC'
|
133
|
+
symbol[/symbolic /] ||
|
131
134
|
# Swift symbol references to Objective-C symbols should not be mangled
|
132
135
|
# e.g. '00000000000108ca S _associated conformance So26SCNetworkReachabilityFlagsVs10SetAlgebraSCSQ'
|
133
136
|
symbol[/associated conformance/] ||
|
134
|
-
#
|
135
|
-
# e.g. 0000000000000000 T
|
136
|
-
symbol[/
|
137
|
+
# " globalinit" symbols should be skipped
|
138
|
+
# e.g. 0000000000000000 T " globalinit_33_A313450CFC1FC3D0CBEF4411412DB9E8_func0"
|
139
|
+
symbol[/ globalinit/] ||
|
140
|
+
# "globalinit" symbols should be skipped
|
141
|
+
# e.g. 0000000000000000 T "globalinit_33_A313450CFC1FC3D0CBEF4411412DB9E8_func0"
|
142
|
+
symbol[/globalinit/] ||
|
137
143
|
# Swift classes inheriting from Objective-C classes should not be mangled
|
138
144
|
# e.g. '0000000000000290 S _OBJC_CLASS_$__TtC9ManglePod19SomeFoundationClass'
|
139
|
-
symbol[/_OBJC_CLASS_\$__/]
|
145
|
+
symbol[/_OBJC_CLASS_\$__/] ||
|
146
|
+
# Swift symbols starting with ____ should be ignored
|
147
|
+
# e.g. ' ____ 6Lottie15AnimatedControlCC'
|
148
|
+
symbol[/____ /] ||
|
149
|
+
# _PROTOCOL symbols should be skipped
|
150
|
+
# e.g. 0000000000000000 _PROTOCOL_METHOD_TYPES_CAAction
|
151
|
+
symbol[/_PROTOCOL/] ||
|
152
|
+
# _swiftoverride_ symbols should be skipped
|
153
|
+
# e.g. _swiftoverride_
|
154
|
+
symbol[/_\w+_swiftoverride_/] ||
|
155
|
+
# _Zxxxswift symbols should be skipped
|
156
|
+
# e.g. _ZN5swift34swift50override_conformsToProtocolEPKNS
|
157
|
+
symbol[/_Z\w+swift/] ||
|
158
|
+
# get_witness_table symbols should be skipped
|
159
|
+
# e.g. get_witness_table Say6.2
|
160
|
+
symbol[/get_witness_table /]
|
140
161
|
end
|
141
162
|
|
142
163
|
def self.run_nm(binaries, flags)
|
143
164
|
`nm #{flags} #{binaries.join(' ')}`.split("\n")
|
144
165
|
end
|
145
166
|
end
|
146
|
-
end
|
167
|
+
end
|
@@ -52,14 +52,14 @@ describe CocoapodsMangle do
|
|
52
52
|
plugin 'cocoapods-mangle'
|
53
53
|
target 'Mangle Integration' do
|
54
54
|
pod 'ManglePod', path: '../pod'
|
55
|
-
pod '
|
55
|
+
pod 'lottie-ios'
|
56
56
|
end
|
57
57
|
PODFILE
|
58
58
|
end
|
59
59
|
let(:expected_defines) do
|
60
60
|
%w[
|
61
61
|
PodsDummy_ManglePod=Mangle_Integration_PodsDummy_ManglePod
|
62
|
-
|
62
|
+
PodsDummy_lottie_ios=Mangle_Integration_PodsDummy_lottie_ios
|
63
63
|
]
|
64
64
|
end
|
65
65
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-mangle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- James Treanor
|
7
|
+
- James Treanor, Brian Boyle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.11.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.11.3
|
27
27
|
description: Mangling your dependencies symbols allows more than one copy of a dependency
|
28
28
|
to exist without errors. This plugin mangles your dependecies to make this possible
|
29
29
|
email:
|
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
|
-
rubygems_version: 3.
|
75
|
+
rubygems_version: 3.1.6
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: A CocoaPods plugin which mangles the symbols of your dependencies
|