Browse Source

Merge pull request #26 from kevinresol/master

Add podspec to support cocoapods projects
Hau Vo 5 years ago
parent
commit
1bc185390d
No account linked to committer's email address
2 changed files with 14 additions and 20 deletions
  1. 13
    19
      RNThumbnail.podspec
  2. 1
    1
      package.json

+ 13
- 19
RNThumbnail.podspec View File

@@ -3,26 +3,20 @@ require 'json'
3 3
 package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4 4
 
5 5
 Pod::Spec.new do |s|
6
-  s.name         = "RNThumbnail"
7
-  s.version      = package['version']
8
-  s.summary      = "RNThumbnail"
9
-  s.description  = <<-DESC
10
-                  RNThumbnail
11
-                   DESC
12
-  s.homepage     = ""
13
-  s.license      = "MIT"
14
-  # s.license      = { :type => "MIT", :file => "FILE_LICENSE" }
15
-  s.author             = { "author" => "author@domain.cn" }
16
-  s.homepage     = "https://github.com/author/RNThumbnail"
17
-  s.platform     = :ios, "7.0"
18
-  s.source       = { :git => "https://github.com/author/RNThumbnail.git", :tag => "master" }
19
-  s.source_files  = "ios/**/*.{h,m}"
20
-  s.requires_arc = true
6
+  s.name           = "RNThumbnail"
7
+  s.version        = package['version']
8
+  s.summary        = package['description']
9
+  s.description    = package['description']
10
+  s.license        = package['license']
11
+  s.author         = package['author']
12
+  s.homepage       = "https://github.com/phuochau/react-native-thumbnail/#readme"
13
+  s.source         = { :git => 'https://github.com/phuochau/react-native-thumbnail.git' }
21 14
 
15
+  s.requires_arc   = true
16
+  s.platform       = :ios, '7.0'
22 17
 
23
-  s.dependency "React"
24
-  #s.dependency "others"
18
+  s.preserve_paths = 'README.md', 'package.json', 'index.js'
19
+  s.source_files   = 'ios/**/*.{h,m}'
25 20
 
21
+  s.dependency 'React'
26 22
 end
27
-
28
-  

+ 1
- 1
package.json View File

@@ -1,7 +1,7 @@
1 1
 {
2 2
   "name": "react-native-thumbnail",
3 3
   "version": "1.1.3",
4
-  "description": "",
4
+  "description": "Get thumbnail from local media.",
5 5
   "main": "index.js",
6 6
   "scripts": {
7 7
     "test": "echo \"Error: no test specified\" && exit 1"