From 9ed1a55b4b390eb36068d15ea74aa9ce442ba24e Mon Sep 17 00:00:00 2001 From: Tom Spencer Date: Thu, 18 Jan 2018 22:02:17 +0000 Subject: [PATCH 1/2] Correct version in podspec --- react-native-safari-view.podspec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/react-native-safari-view.podspec b/react-native-safari-view.podspec index 45630b1..9eac54b 100644 --- a/react-native-safari-view.podspec +++ b/react-native-safari-view.podspec @@ -1,7 +1,10 @@ +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| s.name = "react-native-safari-view" - s.version = "1.0.0" + s.version = "package['version'] s.summary = "A React Native wrapper for Safari View Controller" s.requires_arc = true s.author = { 'Naoufal Kadhom' => 'naoufalkadhom@gmail.com' } From e33eac5e31cad2ddd54c371dc338a5393d03cb9a Mon Sep 17 00:00:00 2001 From: Tom Spencer Date: Fri, 19 Jan 2018 20:05:43 +0000 Subject: [PATCH 2/2] Fix podspec syntax error --- react-native-safari-view.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-native-safari-view.podspec b/react-native-safari-view.podspec index 9eac54b..285dd9d 100644 --- a/react-native-safari-view.podspec +++ b/react-native-safari-view.podspec @@ -4,7 +4,7 @@ package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| s.name = "react-native-safari-view" - s.version = "package['version'] + s.version = package['version'] s.summary = "A React Native wrapper for Safari View Controller" s.requires_arc = true s.author = { 'Naoufal Kadhom' => 'naoufalkadhom@gmail.com' }