cocoapods-fix-react-native 2018.04.05.17 → 2018.04.06.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-fix-react-native/versions/0_54_4.rb +20 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2020f7d4babcaf0cd27c4719ef0b88410307356752b4599860ffac58cd1aac2d
|
4
|
+
data.tar.gz: 9f8e022efd7e9e40b7d96075caa9117d01191987aae7505720a9804241d650d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acf388d87c0ce4ebe5550f95ee131f3577ba580788cc72f766a82e95daf49633c865d2b3de621f8af3220a92dc9ac91cf9c9cfdcf27880edeccff58cc5d00c1f
|
7
|
+
data.tar.gz: 0d07923acbb199e9512ad0ce5c3ce0e24326d47f5a68122214c2c5120cb5ffb7b348db55a35dbf686267f48f59a0ca2a029f7e5947f8e485d1d774a9004e569d
|
@@ -73,8 +73,28 @@ def fix_unused_yoga_headers
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
+
# Detect CocoaPods + Frameworks
|
77
|
+
def has_frameworks
|
78
|
+
filepath = 'Pods/Target Support Files/React/React-umbrella.h'
|
79
|
+
return File.exists?(filepath)
|
80
|
+
end
|
81
|
+
|
82
|
+
def fix_method_queue_property_defs
|
83
|
+
return if has_frameworks
|
84
|
+
|
85
|
+
# Newer build of Xcode don't allow you to set a non-obj to be strong,
|
86
|
+
# so this instead changes it to be an assign.
|
87
|
+
module_data_file = 'React/Base/RCTModuleData.h'
|
88
|
+
bridge_module_file = 'React/Base/RCTBridgeModule.h'
|
89
|
+
method_queue_old_code = '(nonatomic, strong, readonly) dispatch_queue_t methodQueue'
|
90
|
+
method_queue_new_code = '(nonatomic, assign, readonly) dispatch_queue_t methodQueue'
|
91
|
+
edit_pod_file module_data_file, method_queue_old_code, method_queue_new_code
|
92
|
+
edit_pod_file bridge_module_file, method_queue_old_code, method_queue_new_code
|
93
|
+
end
|
94
|
+
|
76
95
|
fix_unused_yoga_headers
|
77
96
|
fix_cplusplus_header_compiler_error
|
97
|
+
fix_method_queue_property_defs
|
78
98
|
|
79
99
|
# https://github.com/facebook/react-native/pull/14664
|
80
100
|
animation_view_file = 'Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h'
|
@@ -99,12 +119,3 @@ else
|
|
99
119
|
dev_settings_new_code = '//#import //"RCTPackagerClient.h"'
|
100
120
|
edit_pod_file dev_settings, dev_settings_old_code, dev_settings_new_code
|
101
121
|
end
|
102
|
-
|
103
|
-
# Newer build of Xcode don't allow you to set a non-obj to be strong,
|
104
|
-
# so this instead changes it to be an assign.
|
105
|
-
module_data_file = 'React/Base/RCTModuleData.h'
|
106
|
-
bridge_module_file = 'React/Base/RCTBridgeModule.h'
|
107
|
-
method_queue_old_code = '(nonatomic, strong, readonly) dispatch_queue_t methodQueue'
|
108
|
-
method_queue_new_code = '(nonatomic, assign, readonly) dispatch_queue_t methodQueue'
|
109
|
-
edit_pod_file module_data_file, method_queue_old_code, method_queue_new_code
|
110
|
-
edit_pod_file bridge_module_file, method_queue_old_code, method_queue_new_code
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-fix-react-native
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2018.04.
|
4
|
+
version: 2018.04.06.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orta Therox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|