forked from AngelVenchev/react-native-camera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-native-camera.podspec
51 lines (38 loc) · 1.46 KB
/
react-native-camera.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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/react-native-community/react-native-camera', :tag => s.version }
s.requires_arc = true
s.platform = :ios, '9.0'
s.subspec "RCT" do |ss|
ss.source_files = "ios/RCT/**/*.{h,m}"
end
s.subspec "RN" do |ss|
ss.source_files = "ios/RN/**/*.{h,m}"
end
s.subspec "FaceDetector" do |ss|
ss.dependency 'react-native-camera/RN'
ss.dependency 'react-native-camera/RCT'
ss.dependency 'GoogleMobileVision/Detector', '~> 1.4'
ss.dependency 'GoogleMobileVision/MVDataOutput', '~> 1.4'
ss.dependency 'GoogleMobileVision/FaceDetector', '~> 1.4'
ss.source_files = "ios/FaceDetector/**/*.{h,m}"
s.static_framework = true
end
s.subspec "TextDetector" do |ss|
ss.dependency 'react-native-camera/RN'
ss.dependency 'react-native-camera/RCT'
ss.dependency 'GoogleMobileVision/TextDetector', '~> 1.4'
ss.source_files = "ios/TextDetector/**/*.{h,m}"
end
s.default_subspecs = "RN", "RCT"
s.preserve_paths = 'LICENSE', 'README.md', 'package.json', 'index.js'
s.dependency 'React'
end