cocoapods-mangle 1.0.0 → 1.0.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/lib/cocoapods_mangle/defines.rb +3 -0
- data/lib/cocoapods_mangle/gem_version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7219337c8214823557116123d5ac17d7fa68727
|
4
|
+
data.tar.gz: 6c26d23f03759a183767d1c11d4e288e466db99d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38488de2b6e008c63a81c6c2521daad4dd6049af22c1c4550c19a29ecb71fe30cce656d254c639ce4a68ac71d2746e1158a8b0c2077b81dc8451c2803e3b421e
|
7
|
+
data.tar.gz: 115e91d3f16a99339f9abbc5da75a47aef7656f4a21b2864fe8a3430f6ff43fbaf542d3b04546e08bb74485d4ce21d18b056ecfaaebefb2bc877da51bf7a67d3
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -119,6 +119,7 @@ plugin 'cocoapods-mangle', targets: ['MyTarget'],
|
|
119
119
|
- cocoapods-mangle will only work for source dependencies. Pre-compiled frameworks cannot be mangled.
|
120
120
|
- Currently only supports iOS. It should be very straightforward to extend support to macOS, tvOS or watchOS.
|
121
121
|
- Category mangling may cause issues if the dependency does not correctly prefix its category selectors (see http://nshipster.com/namespacing/#method-prefixes).
|
122
|
+
- Usage of `NSClassFromString(@"MyClass")` will not work after mangling has been applied. You will need to use `NSClassFromString(@"Prefix_MyClass")` for this to work correctly.
|
122
123
|
|
123
124
|
## Related links
|
124
125
|
|
@@ -38,10 +38,13 @@ module CocoapodsMangle
|
|
38
38
|
all_symbols = run_nm(binaries, '-gU')
|
39
39
|
consts = all_symbols.select { |const| const[/ S /] }
|
40
40
|
consts = consts.reject { |const| const[/_OBJC_/] }
|
41
|
+
consts = consts.reject { |const| const[/__block_descriptor.*/] }
|
41
42
|
consts = consts.map! { |const| const.gsub(/^.* _/, '') }
|
42
43
|
consts = consts.uniq
|
43
44
|
|
44
45
|
other_consts = all_symbols.select { |const| const[/ T /] }
|
46
|
+
other_consts = other_consts.reject { |const| const[/__copy_helper_block.*/] }
|
47
|
+
other_consts = other_consts.reject { |const| const[/__destroy_helper_block.*/] }
|
45
48
|
other_consts = other_consts.map! { |const| const.gsub(/^.* _/, '') }
|
46
49
|
other_consts = other_consts.uniq
|
47
50
|
|
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.0.
|
4
|
+
version: 1.0.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:
|
11
|
+
date: 2019-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -78,11 +78,11 @@ signing_key:
|
|
78
78
|
specification_version: 4
|
79
79
|
summary: A CocoaPods plugin which mangles the symbols of your dependencies
|
80
80
|
test_files:
|
81
|
-
- spec/integration/integration_spec.rb
|
82
81
|
- spec/spec_helper.rb
|
83
82
|
- spec/unit/builder_spec.rb
|
84
83
|
- spec/unit/config_spec.rb
|
85
84
|
- spec/unit/context_spec.rb
|
86
|
-
- spec/unit/defines_spec.rb
|
87
85
|
- spec/unit/hooks_spec.rb
|
86
|
+
- spec/unit/defines_spec.rb
|
88
87
|
- spec/unit/post_install_spec.rb
|
88
|
+
- spec/integration/integration_spec.rb
|