cocoapods-mangle 1.1.4 → 1.1.6
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 +13 -4
- data/lib/cocoapods_mangle/gem_version.rb +1 -1
- data/spec/unit/defines_spec.rb +1 -0
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dce1fccee413b65c1513bc716a1bbdb154aa8180cb38052f0bc18c9efdbb0b1
|
4
|
+
data.tar.gz: b66cca93a59abb4f05d75400af20fe68e6ec08cc352e526872cc77c3b8269bda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40caf72c9c13099d506ee83a373c44f5e8c54aa63a215dbcad79be2c00b875fae75ac93d2a7dd0a9356e911dd186889d731b6e1cb8c2b96bfce37267bb59ef1a
|
7
|
+
data.tar.gz: 26a35559c15780a1e1e8b926d44fb98a3ee1e66d4f2eae7986c5f96ab410ef142077efa2d8e3f38cf6997eff6730f886f5758fd53feeb148bed6f487c1c3fe6d
|
@@ -69,7 +69,10 @@ module CocoapodsMangle
|
|
69
69
|
class_name = selector[/[-|+]\[(.*?)\(/m, 1]
|
70
70
|
classes.include? class_name
|
71
71
|
end
|
72
|
-
selectors = selectors.map
|
72
|
+
selectors = selectors.map do |selector|
|
73
|
+
cleaned = selector.split(']').first + ']'
|
74
|
+
cleaned[/[^ ]*\]\z/][0...-1]
|
75
|
+
end
|
73
76
|
selectors = selectors.map { |selector| selector.split(':').first }
|
74
77
|
selectors.uniq
|
75
78
|
end
|
@@ -125,9 +128,15 @@ module CocoapodsMangle
|
|
125
128
|
# Internal Swift symbols starting with __swift or ___swift such as should not be mangled
|
126
129
|
# e.g. '00000000000050ac S ___swift_reflection_version'
|
127
130
|
symbol[/ __(_)?swift/] ||
|
128
|
-
# Internal Swift symbols starting with Swift
|
129
|
-
# e.g. '
|
130
|
-
symbol[
|
131
|
+
# Internal Swift symbols starting with digit+Swift+optional_digit should not be mangled
|
132
|
+
# e.g. '34SwiftOverride', '34Swift570Override'
|
133
|
+
symbol[/\d+Swift(\d+)?/] ||
|
134
|
+
# Internal Swift symbols starting with Swift+digit should not be mangled
|
135
|
+
# e.g. 'Swift570Override'
|
136
|
+
symbol[/Swift\d+/] ||
|
137
|
+
# Internal SwiftUI symbols starting with digit+SwiftUI+optional_digit such as should not be mangled
|
138
|
+
# e.g. '55SwiftUI', '55SwiftUI45'
|
139
|
+
symbol[/\d+SwiftUI(\d+)?/] ||
|
131
140
|
# Swift symbols starting with symbolic should be ignored
|
132
141
|
# e.g. '0000000000000248 S symbolic _____ 9ManglePod9SomeClassC'
|
133
142
|
symbol[/symbolic /] ||
|
data/spec/unit/defines_spec.rb
CHANGED
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Treanor, Brian Boyle
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-01 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.
|
19
|
+
version: '1.15'
|
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.
|
26
|
+
version: '1.15'
|
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:
|
@@ -57,7 +57,7 @@ homepage: https://github.com/intercom/cocoapods-mangle
|
|
57
57
|
licenses:
|
58
58
|
- Apache-2.0
|
59
59
|
metadata: {}
|
60
|
-
post_install_message:
|
60
|
+
post_install_message:
|
61
61
|
rdoc_options: []
|
62
62
|
require_paths:
|
63
63
|
- lib
|
@@ -72,16 +72,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
|
-
rubygems_version: 3.
|
76
|
-
signing_key:
|
75
|
+
rubygems_version: 3.5.11
|
76
|
+
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: A CocoaPods plugin which mangles the symbols of your dependencies
|
79
79
|
test_files:
|
80
|
+
- spec/integration/integration_spec.rb
|
80
81
|
- spec/spec_helper.rb
|
81
82
|
- spec/unit/builder_spec.rb
|
82
83
|
- spec/unit/config_spec.rb
|
83
84
|
- spec/unit/context_spec.rb
|
84
|
-
- spec/unit/hooks_spec.rb
|
85
85
|
- spec/unit/defines_spec.rb
|
86
|
+
- spec/unit/hooks_spec.rb
|
86
87
|
- spec/unit/post_install_spec.rb
|
87
|
-
- spec/integration/integration_spec.rb
|