cocoapods-fix-react-native 2018.04.06.11 → 2018.04.06.21
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 +4 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f8f33278f4727ffed5abb19f16bcc8e10a7fd64a9fa723f3384f344eda900f6
|
4
|
+
data.tar.gz: 019965d6221a6d6f8e21f2ecb6c940d34fa4243e4f22088576772f9bffdf559e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31e46e8e104f937a2ce414a83fd63ce28ac7b245cca3ef0a1002e0fc39e7f782cd8dec84d1c8fcea3d292b5b1c10b4a112c75efe734c35aa1b2afddc0516008e
|
7
|
+
data.tar.gz: 16b011a898302dd8d81627fab693317eef1b66dbc625ca88e9f7118712a97e306977c59fdb8f052e089f50b1b0c9a1ed53320512ec5aaf1fdb3a001ba6377d31
|
@@ -6,6 +6,9 @@
|
|
6
6
|
# Are you using :path based Pods?
|
7
7
|
dev_pods_react = !File.directory?('Pods/React/React')
|
8
8
|
|
9
|
+
# Detect CocoaPods + Frameworks
|
10
|
+
has_frameworks = File.exists?'Pods/Target Support Files/React/React-umbrella.h'
|
11
|
+
|
9
12
|
# Check for whether
|
10
13
|
same_repo_node_modules = File.directory?('node_modules/react-native')
|
11
14
|
previous_repo_node_modules = File.directory?('../node_modules/react-native')
|
@@ -73,11 +76,6 @@ def fix_unused_yoga_headers
|
|
73
76
|
end
|
74
77
|
end
|
75
78
|
|
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
79
|
|
82
80
|
def fix_method_queue_property_defs
|
83
81
|
return if has_frameworks
|
@@ -87,7 +85,7 @@ def fix_method_queue_property_defs
|
|
87
85
|
module_data_file = 'React/Base/RCTModuleData.h'
|
88
86
|
bridge_module_file = 'React/Base/RCTBridgeModule.h'
|
89
87
|
method_queue_old_code = '(nonatomic, strong, readonly) dispatch_queue_t methodQueue'
|
90
|
-
method_queue_new_code = '(nonatomic,
|
88
|
+
method_queue_new_code = '(nonatomic, retain, readonly) dispatch_queue_t methodQueue'
|
91
89
|
edit_pod_file module_data_file, method_queue_old_code, method_queue_new_code
|
92
90
|
edit_pod_file bridge_module_file, method_queue_old_code, method_queue_new_code
|
93
91
|
end
|