This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathplugin.xml
62 lines (51 loc) · 2.7 KB
/
plugin.xml
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
52
53
54
55
56
57
58
59
60
61
62
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-firebase-mlvision" version="0.5.3" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>FirebaseVision</name>
<js-module name="FirebaseVisionPlugin" src="www/firebase-vision.js">
<clobbers target="FirebaseVisionPlugin" />
</js-module>
<platform name="ios">
<dependency id="cordova-plugin-add-swift-support" version="2.0.2"/>
<config-file target="config.xml" parent="/*">
<feature name="FirebaseVisionPlugin">
<param name="ios-package" value="FirebaseVisionPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<source-file src="src/ios/FirebaseVisionPlugin.swift" />
<source-file src="src/ios/FirebaseExtensions.swift" />
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="GoogleMLKit/TextRecognition"/>
<pod name="GoogleMLKit/BarcodeScanning"/>
<pod name="GoogleMLKit/ImageLabeling"/>
</pods>
</podspec>
</platform>
<platform name="android">
<dependency id="cordova-plugin-androidx" version="^2.0.0" />
<dependency id="cordova-plugin-androidx-adapter" version="^1.1.1" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="FirebaseVisionPlugin">
<param name="android-package" value="by.alon22.cordova.firebase.FirebaseVisionPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data
android:name="com.google.mlkit.vision.DEPENDENCIES"
android:value="ocr" />
</config-file>
<source-file src="src/android/FirebaseVisionPlugin.java" target-dir="by/alon22/cordova/firebase"/>
<source-file src="src/android/FirebaseUtils.java" target-dir="by/alon22/cordova/firebase"/>
<preference name="MKLKIT_VERSION_TEXT_RECOGNITION" default="16.1.1"/>
<preference name="MKLKIT_VERSION_BARCODE" default="16.0.3"/>
<preference name="MKLKIT_VERSION_IMAGE_LABELLING" default="17.0.0"/>
<framework src="com.google.android.gms:play-services-mlkit-text-recognition:$MKLKIT_VERSION_TEXT_RECOGNITION"/>
<framework src="com.google.mlkit:barcode-scanning:$MKLKIT_VERSION_BARCODE"/>
<framework src="com.google.mlkit:image-labeling:$MKLKIT_VERSION_IMAGE_LABELLING"/>
</platform>
</plugin>