diff --git a/RNFS.podspec b/RNFS.podspec index 8150514..6066703 100644 --- a/RNFS.podspec +++ b/RNFS.podspec @@ -1,11 +1,19 @@ +require 'json' +pjson = JSON.parse(File.read('package.json')) + Pod::Spec.new do |s| - s.name = "RNFS" - s.version = "1.3.0" - s.homepage = "https://github.com/johanneslumpe/react-native-fs" - s.platform = :ios, "7.0" - s.source = { :git => "https://github.com/johanneslumpe/react-native-fs.git" } - s.source_files = '*.{h,m}' - s.preserve_paths = "**/*.js" - s.dependency 'React/Core' + s.name = "RNFS" + s.version = pjson["version"] + s.homepage = "https://github.com/johanneslumpe/react-native-fs" + s.summary = pjson["description"] + s.license = pjson["license"] + s.author = { "Johannes Lumpe" => "johannes@lum.pe" } + s.platform = :ios, "7.0" + s.source = { :git => "https://github.com/johanneslumpe/react-native-fs", :tag => "#{s.version}" } + s.source_files = '*.{h,m}' + s.preserve_paths = "**/*.js" + + s.dependency 'React/Core' + end