Browse Source

use package.json for versioning

Travis Nuttall 5 years ago
parent
commit
7b8be92b27
1 changed files with 7 additions and 4 deletions
  1. 7
    4
      rn-fetch-blob.podspec

+ 7
- 4
rn-fetch-blob.podspec View File

@@ -1,11 +1,14 @@
1
+require "json"
2
+package = JSON.parse(File.read('package.json'))
3
+
1 4
 Pod::Spec.new do |s|
2
-  s.name             = "rn-fetch-blob"
3
-  s.version          = "0.10.16"
4
-  s.summary          = "A project committed to make file acess and data transfer easier, effiecient for React Native developers."
5
+  s.name             = package['name']
6
+  s.version          = package['version']
7
+  s.summary          = package['description']
5 8
   s.requires_arc = true
6 9
   s.license      = 'MIT'
7 10
   s.homepage     = 'n/a'
8
-  s.source       = { :git => "https://github.com/joltup/rn-fetch-blob", :tag => 'v0.10.16'}
11
+  s.source       = { :git => "https://github.com/joltup/rn-fetch-blob" }
9 12
   s.author       = 'Joltup'
10 13
   s.source_files = 'ios/**/*.{h,m}'
11 14
   s.platform     = :ios, "8.0"