diff --git a/react-native-mail.podspec b/react-native-mail.podspec index 08fc5a6..7bbc619 100644 --- a/react-native-mail.podspec +++ b/react-native-mail.podspec @@ -1,12 +1,18 @@ +require 'json' +pjson = JSON.parse(File.read('package.json')) + Pod::Spec.new do |s| - s.name = "react-native-mail" - s.version = "0.2.4" - s.summary = "A wrapper on top of MFMailComposeViewController" - s.homepage = "https://github.com/chirag04/react-native-mail" - s.license = "MIT" - s.platform = :ios, "7.0" - s.source = { :git => "https://github.com/chirag04/react-native-mail.git" } - s.source_files = "RNMail/*.{h,m}" + + s.name = pjson["name"] + s.version = pjson["version"] + s.homepage = "https://github.com/chirag04/react-native-mail" + 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/chirag04/react-native-mail", :tag => "#{s.version}" } + s.source_files = 'RNMail/*.{h,m}' + + s.dependency 'React' - s.dependency "React" end