-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplugin.xml
61 lines (52 loc) · 3.09 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="elastos-essentials-plugin-fingerprint" version="0.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>Fingerprint</name>
<js-module src="www/Fingerprint.js" name="Fingerprint">
<clobbers target="fingerprintManager"/>
</js-module>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="FingerprintPlugin">
<param name="ios-package" value="FingerprintPlugin"/>
</feature>
</config-file>
<source-file src="src/ios/FingerprintPlugin.swift"/>
<source-file src="src/ios/FingerPrintAuthHelper.swift"/>
<!-- Usage description of Face ID for iOS 11+ -->
<preference name="FACEID_USAGE_DESCRIPTION" default=" "/>
<config-file target="*-Info.plist" parent="NSFaceIDUsageDescription">
<string>Biometric authentication</string>
</config-file>
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="FingerprintPlugin">
<param name="android-package" value="org.elastos.essentials.plugins.fingerprint.FingerprintPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="application">
<activity android:name="org.elastos.essentials.plugins.fingerprint.BiometricActivity" android:theme="@style/TransparentTheme" android:exported="true"/>
</config-file>
<framework src="src/android/build.gradle" custom="true" type="gradleReference"/>
<resource-file src="src/android/res/biometric_activity.xml" target="res/layout/biometric_activity.xml"/>
<resource-file src="src/android/res/styles.xml" target="res/values/biometric-styles.xml"/>
<source-file src="src/android/Args.java" target-dir="src/org/elastos/essentials/plugins/fingerprint"/>
<source-file src="src/android/BiometricActivity.java" target-dir="src/org/elastos/essentials/plugins/fingerprint"/>
<source-file src="src/android/BiometricActivityType.java" target-dir="src/org/elastos/essentials/plugins/fingerprint"/>
<source-file src="src/android/CryptoException.java" target-dir="src/org/elastos/essentials/plugins/fingerprint"/>
<source-file src="src/android/PromptInfo.java" target-dir="src/org/elastos/essentials/plugins/fingerprint"/>
<source-file src="src/android/FingerprintPlugin.java" target-dir="src/org/elastos/essentials/plugins/fingerprint"/>
<source-file src="src/android/FingerPrintAuthHelper.java" target-dir="src/org/elastos/essentials/plugins/fingerprint"/>
<source-file src="src/android/PluginError.java" target-dir="src/org/elastos/essentials/plugins/fingerprint"/>
</platform>
<engines>
<engine name="cordova-android" version=">=7.0.0" />
</engines>
<hook src="hooks/before_plugin_install/build_ts.js" type="before_plugin_install" />
</plugin>