forked from expo/expo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EXFaceDetector.podspec
33 lines (28 loc) · 1.35 KB
/
EXFaceDetector.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
require 'json'
package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
Pod::Spec.new do |s|
s.name = 'EXFaceDetector'
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.platform = :ios, '12.0'
s.source = { git: 'https://github.com/expo/expo.git' }
s.static_framework = true
s.dependency 'ExpoModulesCore'
# even though `GoogleMLKit/FaceDetection` depends on all `MLKit*` references below
# framework generation code (prebuilds) cannot locate them properly, so these are defined explicitly
# TODO: research why xcodegen fails to detect dependencies of dependencies (resulted .xcodeproj is missing them)
s.dependency 'GoogleMLKit/FaceDetection', '2.6.0'
s.dependency 'MLKitFaceDetection', '1.5.0'
s.dependency 'MLKitCommon', '5.0.0'
s.dependency 'MLKitVision', '3.0.0'
if !$ExpoUseSources&.include?(package['name']) && ENV['EXPO_USE_SOURCE'].to_i == 0 && File.exist?("#{s.name}.xcframework") && Gem::Version.new(Pod::VERSION) >= Gem::Version.new('1.10.0')
s.source_files = "#{s.name}/**/*.h"
s.vendored_frameworks = "#{s.name}.xcframework"
else
s.source_files = "#{s.name}/**/*.{h,m}"
end
end