From 34f2471418b049b7835ec0443149d3758f474da4 Mon Sep 17 00:00:00 2001 From: Joel Arvidsson Date: Thu, 2 Jun 2016 22:40:16 +0200 Subject: [PATCH] Makes podspec use version from package.json. --- RNKeychain.podspec | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/RNKeychain.podspec b/RNKeychain.podspec index be18ce7..1f67790 100644 --- a/RNKeychain.podspec +++ b/RNKeychain.podspec @@ -1,14 +1,17 @@ +require 'json' +version = JSON.parse(File.read('package.json'))["version"] + Pod::Spec.new do |s| - s.name = "RNKeychain" - s.version = "0.2.7" - s.summary = "Keychain Access for React Native." - s.homepage = "https://github.com/oblador/react-native-keychain" - s.license = "MIT" - s.author = { "Joel Arvidsson" => "joel@oblador.se" } - s.platform = :ios, "7.0" - s.source = { :git => "https://github.com/oblador/react-native-keychain.git", :tag => "v#{s.version}" } - s.source_files = 'RNKeychainManager/**/*.{h,m}' + s.name = "RNKeychain" + s.version = version + s.summary = "Keychain Access for React Native." + s.homepage = "https://github.com/oblador/react-native-keychain" + s.license = "MIT" + s.author = { "Joel Arvidsson" => "joel@oblador.se" } + s.platform = :ios, "7.0" + s.source = { :git => "https://github.com/oblador/react-native-keychain.git", :tag => "v#{s.version}" } + s.source_files = 'RNKeychainManager/**/*.{h,m}' s.preserve_paths = "**/*.js" s.dependency 'React'