Browse Source

Merge pull request #55 from oblador/podspec

Add podspec for CocoaPods support
Gaëtan Renaudeau 7 years ago
parent
commit
d63ce86ed3
1 changed files with 18 additions and 0 deletions
  1. 18
    0
      RNViewShot.podspec

+ 18
- 0
RNViewShot.podspec View File

@@ -0,0 +1,18 @@
1
+require 'json'
2
+version = JSON.parse(File.read('package.json'))["version"]
3
+
4
+Pod::Spec.new do |s|
5
+
6
+  s.name           = "RNViewShot"
7
+  s.version        = version
8
+  s.summary        = "Capture a React Native view to an image"
9
+  s.homepage       = "https://github.com/gre/react-native-view-shot"
10
+  s.license        = "MIT"
11
+  s.author         = { "Gaëtan Renaudeau" => "renaudeau.gaetan@gmail.com" }
12
+  s.platform       = :ios, "7.0"
13
+  s.source         = { :git => "https://github.com/gre/react-native-view-shot.git", :tag => "v#{s.version}" }
14
+  s.source_files   = 'ios/*.{h,m}'
15
+  s.preserve_paths = "**/*.js"
16
+  s.dependency 'React'
17
+
18
+end