From 23d406b748b52a2c7da9c64f184579833f178545 Mon Sep 17 00:00:00 2001 From: Joel Arvidsson Date: Sun, 3 Apr 2016 12:32:51 -0500 Subject: [PATCH] Makes podspec pull version number from package.json. --- RNVectorIcons.podspec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RNVectorIcons.podspec b/RNVectorIcons.podspec index f067e79..af08dc2 100644 --- a/RNVectorIcons.podspec +++ b/RNVectorIcons.podspec @@ -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"