forked from invertase/react-native-firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRNFBMLVision.podspec
48 lines (41 loc) · 1.99 KB
/
RNFBMLVision.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
require 'json'
require '../app/firebase_json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
firebase_sdk_version = '~> 6.13.0'
using_custom_firebase_sdk_version = defined? $FirebaseSDKVersion
if using_custom_firebase_sdk_version
Pod::UI.puts "RNFBMLVision: Using user specified Firebase SDK version '#{$FirebaseSDKVersion}'"
firebase_sdk_version = $FirebaseSDKVersion
end
Pod::Spec.new do |s|
s.name = "RNFBMLVision"
s.version = package["version"]
s.description = package["description"]
s.summary = <<-DESC
A well tested feature rich Firebase implementation for React Native, supporting iOS & Android.
DESC
s.homepage = "http://invertase.io/oss/react-native-firebase"
s.license = package['license']
s.authors = "Invertase Limited"
s.source = { :git => "https://github.com/invertase/react-native-firebase.git", :tag => "v#{s.version}" }
s.social_media_url = 'http://twitter.com/invertaseio'
s.ios.deployment_target = "9.0"
s.source_files = 'ios/**/*.{h,m}'
s.dependency 'RNFBApp'
s.dependency 'React'
s.dependency 'Firebase/Core', firebase_sdk_version
s.dependency 'Firebase/MLVision', firebase_sdk_version
if FirebaseJSON::Config.get_value_or_default('ml_vision_face_model', false)
s.dependency 'Firebase/MLVisionFaceModel', firebase_sdk_version
end
if FirebaseJSON::Config.get_value_or_default('ml_vision_ocr_model', false)
s.dependency 'Firebase/MLVisionTextModel', firebase_sdk_version
end
if FirebaseJSON::Config.get_value_or_default('ml_vision_barcode_model', false)
s.dependency 'Firebase/MLVisionBarcodeModel', firebase_sdk_version
end
if FirebaseJSON::Config.get_value_or_default('ml_vision_image_label_model', false)
s.dependency 'Firebase/MLVisionLabelModel', firebase_sdk_version
end
s.static_framework = false
end