Browse Source

Update podspec

Laurin Quast 6 years ago
parent
commit
717405acdb
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      RNThumbnail.podspec

ios/RNThumbnail.podspec → RNThumbnail.podspec View File

@@ -1,7 +1,10 @@
1
+require 'json'
2
+
3
+package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
1 4
 
2 5
 Pod::Spec.new do |s|
3 6
   s.name         = "RNThumbnail"
4
-  s.version      = "1.0.0"
7
+  s.version      = package['version']
5 8
   s.summary      = "RNThumbnail"
6 9
   s.description  = <<-DESC
7 10
                   RNThumbnail
@@ -13,7 +16,7 @@ Pod::Spec.new do |s|
13 16
   s.homepage     = "https://github.com/author/RNThumbnail"
14 17
   s.platform     = :ios, "7.0"
15 18
   s.source       = { :git => "https://github.com/author/RNThumbnail.git", :tag => "master" }
16
-  s.source_files  = "RNThumbnail/**/*.{h,m}"
19
+  s.source_files  = "ios/**/*.{h,m}"
17 20
   s.requires_arc = true
18 21
 
19 22