Makes podspec use version from package.json.

This commit is contained in:
Joel Arvidsson 2016-06-02 22:40:16 +02:00
parent 040b2c2128
commit 34f2471418
1 changed files with 12 additions and 9 deletions

View File

@ -1,7 +1,10 @@
require 'json'
version = JSON.parse(File.read('package.json'))["version"]
Pod::Spec.new do |s|
s.name = "RNKeychain"
s.version = "0.2.7"
s.version = version
s.summary = "Keychain Access for React Native."
s.homepage = "https://github.com/oblador/react-native-keychain"
s.license = "MIT"