diff --git a/ios/RNImageToPdf.podspec b/ios/RNImageToPdf.podspec index fd3c8c0..76bfb01 100644 --- a/ios/RNImageToPdf.podspec +++ b/ios/RNImageToPdf.podspec @@ -1,17 +1,20 @@ Pod::Spec.new do |s| + # NPM package specification + package = JSON.parse(File.read(File.join(File.dirname(__FILE__), "package.json"))) + s.name = "RNImageToPdf" - s.version = "1.0.0" - s.summary = "RNImageToPdf" + s.version = package["version"] + s.summary = package["description"] s.description = <<-DESC RNImageToPdf DESC s.homepage = "" s.license = "MIT" # s.license = { :type => "MIT", :file => "FILE_LICENSE" } - s.author = { "author" => "author@domain.cn" } + s.author = { package["author"]["name"] => package["author"]["email"] } s.platform = :ios, "7.0" - s.source = { :git => "https://github.com/author/RNImageToPdf.git", :tag => "master" } + s.source = { :git => "https://github.com/ojcarcete/RNImageToPdf.git", :tag => "master" } s.source_files = "RNImageToPdf/**/*.{h,m}" s.requires_arc = true @@ -21,4 +24,4 @@ Pod::Spec.new do |s| end - \ No newline at end of file +