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