cocoapods-fix-react-native 2018.04.12.11 → 2018.04.17.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cocoapods_plugin.rb +4 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6027fc7d857ebc94d523efd5ab4b4fe1ef8b2309583f06094e14285aa2cd31a
4
- data.tar.gz: f0b702a36ed034920ffabb353d24dcb62c1af152e80f5dc583674419e56ab29e
3
+ metadata.gz: 99d823adc3a5507eff455b4a95e12794ef457ab0ff819c4e713a011726701f97
4
+ data.tar.gz: c8a602d20ef5d84a1210af1d87065a02f0b7a0b143185dfab3784ed28985b386
5
5
  SHA512:
6
- metadata.gz: e91985183d599a160e38fa2f30caffcb59518b1940761e479be05345be34fb2f7f16bfcc5a1115276fb7d47b6efab4b08d2a9b6805519f6820d28537709e3496
7
- data.tar.gz: 4297f07ee213bcd253ec03af23d7e2a75f2a8a88310c8c793bc3f117b2d3b4e2f400982d226f4d91453f8b0a7a84ea283aa664f03669175a45d3ec6d96931274
6
+ metadata.gz: 01c933c874472126ba228f6ae0cd75cc38afc4c2635256ace9a32777bb40c3c639b426c72959869dfb38fbd76c9a39f4c314387f011717beebbe024fd27e2c52
7
+ data.tar.gz: 88d004654dd90a32a03855a075b377c6b4df81f89816c45552f249974b1c76b66286bc8739b86394c401b8a507b5c8b89ff284a50496ea21ed4c7dbda3c12d7f
@@ -7,8 +7,10 @@ Pod::HooksManager.register('cocoapods-fix-react-native', :post_install) do |cont
7
7
  all_pods_targets = context.pods_project.targets
8
8
  all_pods_targets.each do |t|
9
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.' +
10
+ has_react_dep = t.dependencies.find { |dep| dep.name == "React" }
11
+
12
+ if has_react_dep && deployment_target == '4.3'
13
+ raise 'You have a Pod which has a deployment target of 4.3, and a dependency on React.' +
12
14
  "\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
15
  end
14
16
  end
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.12.11
4
+ version: 2018.04.17.13
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-12 00:00:00.000000000 Z
11
+ date: 2018-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler