Sfoglia il codice sorgente

Add podspec for CocoaPods support

Joel Arvidsson 7 anni fa
parent
commit
135a2b7ab0
1 ha cambiato i file con 18 aggiunte e 0 eliminazioni
  1. 18
    0
      RNViewShot.podspec

+ 18
- 0
RNViewShot.podspec Vedi 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