-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
74 lines (60 loc) · 2.82 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
70
71
72
73
74
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-faceid"
version="1.0.1">
<name>FaceID</name>
<description>A cordova plugin, a JS version of FaceID SDK</description>
<license>MIT</license>
<keywords>cordova,faceid</keywords>
<!-- js module-->
<js-module src="www/faceid.js" name="FaceID">
<clobbers target="FaceID" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="FaceID">
<param name="android-package" value="xu.li.cordova.faceid.FaceID"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<source-file src="src/android/FaceID.java" target-dir="src/xu/li/cordova/faceid" />
<source-file src="src/android/licensemanager-v1.1.jar" target-dir="libs" />
<framework src="src/android/IDCardLib" custom="true" />
<framework src="src/android/livenesslib" custom="true" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="FaceID">
<param name="ios-package" value="CDVFaceID"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
<string>身份证检测需要相机权限</string>
</config-file>
<!-- Plugin source code -->
<header-file src="src/ios/CDVFaceID.h" />
<source-file src="src/ios/CDVFaceID.m" />
<!-- Plugin resources -->
<resource-file src="src/ios/MGIDCardResource.bundle" />
<resource-file src="src/ios/MGLiveResource.bundle" />
<!-- Sub projects -->
<framework src="src/ios/MGBaseKit.framework" custom="true" />
<framework src="src/ios/MGIDCard.framework" custom="true" />
<framework src="src/ios/MGLivenessDetection.framework" custom="true" />
<!-- Other required frameworks -->
<framework src="AVFoundation.framework" />
<framework src="CoreMedia.framework" />
<framework src="libc++.tbd" />
</platform>
</plugin>