Add podspec (#329)

* Add podspec file

* Add instructions for CocoaPods
This commit is contained in:
Jonathan Stanton
2016-07-02 12:01:43 -07:00
committed by Zack Story
parent 75093a36d8
commit 0d32769dac
3 changed files with 35 additions and 3 deletions
+22
View File
@@ -0,0 +1,22 @@
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = 'react-native-camera'
s.version = package['version']
s.summary = package['description']
s.description = package['description']
s.license = package['license']
s.author = package['author']
s.homepage = package['homepage']
s.source = { :git => 'https://github.com/lwansbrough/react-native-camera', :tag => s.version }
s.requires_arc = true
s.platform = :ios, '8.0'
s.preserve_paths = 'LICENSE', 'README.md', 'package.json', 'index.js'
s.source_files = 'ios/*.{h,m}'
s.dependency 'React'
end