cocoapods-fix-react-native 2018.04.12.11 → 2018.04.17.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cocoapods_plugin.rb +4 -2
- 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: 99d823adc3a5507eff455b4a95e12794ef457ab0ff819c4e713a011726701f97
|
|
4
|
+
data.tar.gz: c8a602d20ef5d84a1210af1d87065a02f0b7a0b143185dfab3784ed28985b386
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 01c933c874472126ba228f6ae0cd75cc38afc4c2635256ace9a32777bb40c3c639b426c72959869dfb38fbd76c9a39f4c314387f011717beebbe024fd27e2c52
|
|
7
|
+
data.tar.gz: 88d004654dd90a32a03855a075b377c6b4df81f89816c45552f249974b1c76b66286bc8739b86394c401b8a507b5c8b89ff284a50496ea21ed4c7dbda3c12d7f
|
data/lib/cocoapods_plugin.rb
CHANGED
|
@@ -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
|
-
|
|
11
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2018-04-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|