cocoapods-fix-react-native 2018.04.07.13 → 2018.04.07.18

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: 2476a85845864b0be9ccfb12966a864b8656255045c160986813d5514c9fc005
4
- data.tar.gz: afab028fdb6e3527b4341ac16994ff7536ab9cdeff9ce75492581f8255048cde
3
+ metadata.gz: 03e0c9b0aac77389ed9725c425a67ec959338546d7a366d4be1c123fd2ca4053
4
+ data.tar.gz: 7542e845466310c68f68ec6c7050f996166fef11ca62f7b9294914905b029997
5
5
  SHA512:
6
- metadata.gz: a2393d14ff15acfb39564c82171e1763b4b04c7f4099a2488ea1033ccab110717ad5df0ef0068dbb0355d50071e88dd9299974b72a108c8690f356a8311e988a
7
- data.tar.gz: a8c4e76491e62c8aa24a390c3097da366a258d090b6765b33fbb7d75c7bb58d212f472c9905d7dd87f21eb4bb1488b46936bb77790fcb3a27de16479bf7c7904
6
+ metadata.gz: bedec818bd31a6252bbf67620d883ad43e5f599442e4d261b494938e183b29442d04dc2ceb03397e46398df335dd65384b1c374325505e2136eebe0bde4651db
7
+ data.tar.gz: ac4fc6413c966d9e51d34998b17cb58ac0075e13b7faf43f60b5e281356909da0c156c6985412e6547ea93013fae000119b964f451c1b3ce39a43f88448f0ce1
@@ -7,7 +7,7 @@
7
7
  dev_pods_react = !File.directory?('Pods/React/React')
8
8
 
9
9
  # Detect CocoaPods + Frameworks
10
- $has_frameworks = File.exists?'Pods/Target Support Files/React/React-umbrella.h'
10
+ # $has_frameworks = File.exists?'Pods/Target Support Files/React/React-umbrella.h'
11
11
 
12
12
  # Check for whether
13
13
  same_repo_node_modules = File.directory?('node_modules/react-native')
@@ -76,23 +76,8 @@ def fix_unused_yoga_headers
76
76
  end
77
77
  end
78
78
 
79
-
80
- def fix_method_queue_property_defs
81
- return if $has_frameworks
82
-
83
- # Newer build of Xcode don't allow you to set a non-obj to be strong,
84
- # so this instead changes it to be an assign.
85
- module_data_file = 'React/Base/RCTModuleData.h'
86
- bridge_module_file = 'React/Base/RCTBridgeModule.h'
87
- method_queue_old_code = '(nonatomic, strong, readonly) dispatch_queue_t methodQueue'
88
- method_queue_new_code = '(nonatomic, retain, readonly) dispatch_queue_t methodQueue'
89
- edit_pod_file module_data_file, method_queue_old_code, method_queue_new_code
90
- edit_pod_file bridge_module_file, method_queue_old_code, method_queue_new_code
91
- end
92
-
93
79
  fix_unused_yoga_headers
94
80
  fix_cplusplus_header_compiler_error
95
- fix_method_queue_property_defs
96
81
 
97
82
  # https://github.com/facebook/react-native/pull/14664
98
83
  animation_view_file = 'Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h'
@@ -1,6 +1,18 @@
1
1
  require 'cocoapods-fix-react-native/version_resolver'
2
2
 
3
3
  Pod::HooksManager.register('cocoapods-fix-react-native', :post_install) do |context|
4
+
5
+ # Check that the min version of iOS has been set right for CocoaPods
6
+ # This happens when a pod has a lower than iOS 6 deployment target.
7
+ all_pods_targets = context.pods_project.targets
8
+ all_pods_targets.each do |t|
9
+ deployment_target = t.build_configurations.first.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
10
+ if deployment_target == '4.3'
11
+ raise 'You have a Pod who has a deployment target of 4.3.' +
12
+ "\nIn order for React Native to compile you need to give the Podspec for #{t.name} a version like `s.platform = :ios, '9.0'`.\n"
13
+ end
14
+ end
15
+
4
16
  fixer = CocoaPodsFixReactNative.new
5
17
  fixer.fix_with_context(context)
6
18
  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.07.13
4
+ version: 2018.04.07.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox