cocoapods-mangle 1.0.0 → 1.0.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
  SHA1:
3
- metadata.gz: dc1d2558cf99da5046d0a14bb829edcc388102eb
4
- data.tar.gz: a0143366854142cfa87237dcf9d4eb2765f901b8
3
+ metadata.gz: a7219337c8214823557116123d5ac17d7fa68727
4
+ data.tar.gz: 6c26d23f03759a183767d1c11d4e288e466db99d
5
5
  SHA512:
6
- metadata.gz: b0961a1e50462566b277684d752226c52f296198550578976f986543ca5f9d9c6fc901c1a2d504f97f0b6e7ccf7337cab31f06fb130c8f46782bc19c212c4281
7
- data.tar.gz: bfd293bdd875576e88774fae3cdb39134e04ae4b46962ee5cc5af1a63e1a8c059b27dbc02a74f61952c7cce6914add6983bf962f9e8486d099d7bd35d3da078d
6
+ metadata.gz: 38488de2b6e008c63a81c6c2521daad4dd6049af22c1c4550c19a29ecb71fe30cce656d254c639ce4a68ac71d2746e1158a8b0c2077b81dc8451c2803e3b421e
7
+ data.tar.gz: 115e91d3f16a99339f9abbc5da75a47aef7656f4a21b2864fe8a3430f6ff43fbaf542d3b04546e08bb74485d4ce21d18b056ecfaaebefb2bc877da51bf7a67d3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # cocoapods-mangle changelog
2
2
 
3
+ ## 1.0.1 (2019-04-08)
4
+
5
+ * Update to support Xcode 10.2
6
+
3
7
  ## 1.0.0 (2017-12-08)
4
8
 
5
9
  * Initial release of cocoapods-mangle with support for mangling source Objective C dependencies.
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
 
@@ -1,4 +1,4 @@
1
1
  module CocoapodsMangle
2
2
  NAME = 'cocoapods-mangle'
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
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.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: 2017-12-11 00:00:00.000000000 Z
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