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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2020f7d4babcaf0cd27c4719ef0b88410307356752b4599860ffac58cd1aac2d
4
- data.tar.gz: 9f8e022efd7e9e40b7d96075caa9117d01191987aae7505720a9804241d650d1
3
+ metadata.gz: 7f8f33278f4727ffed5abb19f16bcc8e10a7fd64a9fa723f3384f344eda900f6
4
+ data.tar.gz: 019965d6221a6d6f8e21f2ecb6c940d34fa4243e4f22088576772f9bffdf559e
5
5
  SHA512:
6
- metadata.gz: acf388d87c0ce4ebe5550f95ee131f3577ba580788cc72f766a82e95daf49633c865d2b3de621f8af3220a92dc9ac91cf9c9cfdcf27880edeccff58cc5d00c1f
7
- data.tar.gz: 0d07923acbb199e9512ad0ce5c3ce0e24326d47f5a68122214c2c5120cb5ffb7b348db55a35dbf686267f48f59a0ca2a029f7e5947f8e485d1d774a9004e569d
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, assign, readonly) dispatch_queue_t methodQueue'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-fix-react-native
3
3
  version: !ruby/object:Gem::Version
4
- version: 2018.04.06.11
4
+ version: 2018.04.06.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox