Makes podspec pull version number from package.json.

This commit is contained in:
Joel Arvidsson
2016-04-03 12:32:51 -05:00
parent 728ecd8da5
commit 23d406b748

View File

@@ -1,7 +1,10 @@
require 'json'
version = JSON.parse(File.read('package.json'))["version"]
Pod::Spec.new do |s|
s.name = "RNVectorIcons"
s.version = "1.1.1"
s.version = version
s.summary = "Customizable Icons for React Native with support for NavBar/TabBar, image source and full styling."
s.homepage = "https://github.com/oblador/react-native-vector-icons"
s.license = "MIT"