-
Notifications
You must be signed in to change notification settings - Fork 595
/
ReactNativeCameraKit.podspec
34 lines (27 loc) · 1.05 KB
/
ReactNativeCameraKit.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
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = "ReactNativeCameraKit"
s.version = package["version"]
s.summary = "A high performance, easy to use camera API"
s.license = "MIT"
s.authors = "CameraKit"
s.homepage = "https://github.com/teslamotors/react-native-camera-kit"
s.platform = :ios, "11.0"
s.source = { :git => "https://github.com/teslamotors/react-native-camera-kit.git", :tag => "v#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm,swift}"
s.private_header_files = 'ios/ReactNativeCameraKit/ReactNativeCameraKit-Swift.pre.h'
if ENV['USE_FRAMEWORKS']
exisiting_flags = s.attributes_hash["compiler_flags"]
if exisiting_flags.present?
s.compiler_flags = exisiting_flags + "-DCK_USE_FRAMEWORKS=1"
else
s.compiler_flags = "-DCK_USE_FRAMEWORKS=1"
end
end
if defined?(install_modules_dependencies()) != nil
install_modules_dependencies(s)
else
s.dependency 'React-Core'
end
end