-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugin.xml
69 lines (53 loc) · 2.77 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
63
64
65
66
67
68
69
<plugin id="cordova-plugin-mlkit-translate" version="0.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>MLKit Translate Plugin</name>
<license>MIT</license>
<engines>
<engine name="cordova" version=">=9" />
<engine name="cordova-android" version=">=8" />
<engine name="cordova-ios" version=">=5" />
</engines>
<js-module name="MLKitTranslate" src="www/translateText.js">
<clobbers target="MLKitTranslate" />
</js-module>
<platform name="android">
<dependency id="cordova-plugin-firebasex" version="^7.0.1" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="MLKitTranslate">
<param name="android-package" value="com.rigelglen.MLKitTranslate" />
</feature>
</config-file>
<source-file src="src/android/com/rigelglen/MLKitTranslate.java" target-dir="src/com/rigelglen" />
<preference name="FIREBASE_ML_NATURAL_LANGUAGE_VERSION" default="22.0.0" />
<preference name="FIREBASE_ML_NATURAL_LANGUAGE_MODEL_VERSION" default="20.0.7" />
<preference name="FIREBASE_ML_NATURAL_LANGUAGE_ID_VERSION" default="20.0.7" />
<framework src="com.google.firebase:firebase-ml-natural-language:$FIREBASE_ML_NATURAL_LANGUAGE_VERSION" />
<framework src="com.google.firebase:firebase-ml-natural-language-translate-model:$FIREBASE_ML_NATURAL_LANGUAGE_MODEL_VERSION" />
<framework src="com.google.firebase:firebase-ml-natural-language-language-id-model:$FIREBASE_ML_NATURAL_LANGUAGE_ID_VERSION" />
</platform>
<platform name="ios">
<dependency id="cordova-plugin-add-swift-support" version="2.0.2" />
<config-file parent="/*" target="config.xml">
<feature name="MLKitTranslate">
<param name="ios-package" value="MLKitTranslate" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file parent="aps-environment" target="*/Entitlements-Debug.plist">
<string>development</string>
</config-file>
<config-file parent="aps-environment" target="*/Entitlements-Release.plist">
<string>production</string>
</config-file>
<source-file src="src/ios/MLKitTranslate.swift" />
<podspec>
<config>
<source url="https://cdn.cocoapods.org/" />
</config>
<pods use-frameworks="true">
<pod name="FirebaseMLNaturalLanguage" spec="~> 0.17.0" />
<pod name="FirebaseMLNLLanguageID" spec="~> 0.17.0" />
<pod name="FirebaseMLNLTranslate" spec="~> 0.17.0" />
</pods>
</podspec>
</platform>
</plugin>