cocoapods-mangle 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12bdc6a5d84c28840e77fd5b88b8a460460eec6886e77a069dd09764e7288d88
4
- data.tar.gz: 5d8d4f20a4ddc3a6d0f580e9e27fc1836989a2ea47e62c69033d1c6354acdfdd
3
+ metadata.gz: 8e3e5ea98b00fef6e6fe353b1d5af1a3cea60e8754232da6e68af0f963672b3a
4
+ data.tar.gz: 1acb90d8e00f8067719da05d0be65b06fed8c53260e311c07ac23e93a274b80f
5
5
  SHA512:
6
- metadata.gz: b0d0292dc9c564f905f3e140c6401dffecf45fbfb4df9659365219d33486ea7c22c24beb3730fa494be71fd5f7cfe3d80c2bce6dbb4b54edbb5e382e73f1cbf8
7
- data.tar.gz: 7400bc11b992f41aeb45f2f1747c6eb1f90c5cb9196425a0827632f063085a57e4e515d6da08e10e75c11452dd0e96619e0e4eefae33b60f108fee26f4b67663
6
+ metadata.gz: 47e25cb2dc8d9472883d9015d696b551ff4ddbb282f818081bcf63a9b0d961c2ee64e029d0524984df558ae6ff17ddc40a626be9f1553cc5664df3911092c364
7
+ data.tar.gz: 335dc5007733d490e97bb3f8d06dab0d122ffea13575a6b684f921286e9f4d22291697083ef5e36a7b53376ec36166e6f36bdb573f206b01c89f41b124268120
@@ -121,26 +121,44 @@ 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[/ _\$s/] ||
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 _symbolic should be ignored
129
- # e.g. '0000000000000248 S _symbolic _____ 9ManglePod9SomeClassC'
130
- symbol[/ _symbolic/] ||
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
- # _globalinit symbols should be skipped
135
- # e.g. 0000000000000000 T _globalinit_33_A313450CFC1FC3D0CBEF4411412DB9E8_func0
136
- symbol[/ _globalinit/] ||
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/]
140
158
  end
141
159
 
142
160
  def self.run_nm(binaries, flags)
143
161
  `nm #{flags} #{binaries.join(' ')}`.split("\n")
144
162
  end
145
163
  end
146
- end
164
+ end
@@ -1,4 +1,4 @@
1
1
  module CocoapodsMangle
2
2
  NAME = 'cocoapods-mangle'
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  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 'Alamofire', '5.2.2'
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
- PodsDummy_Alamofire=Mangle_Integration_PodsDummy_Alamofire
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.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Treanor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-21 00:00:00.000000000 Z
11
+ date: 2023-04-11 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: '1.0'
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: '1.0'
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.0.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