-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugin.xml
executable file
·87 lines (72 loc) · 3.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-facedetection-lite" version="0.3.5"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>FaceDetection-Lite</name>
<description>A face detection offline with a few lines of code. Was designed to run on old smartphones.</description>
<keywords>cordova,phonegap,ecosystem:cordova,cordova-android,cordova-ios,cordova-browser,android,ios,browser,ionic,face,facial,detection,face-detection,lite</keywords>
<repo>https://github.com/luisdemarchi/cordova-plugin-facedetection-lite.git</repo>
<issue>https://github.com/luisdemarchi/cordova-plugin-facedetection-lite/issues</issue>
<engines>
<engine name="cordova" version=">=3.4.0"/>
</engines>
<asset src="www/FaceDetection.js" target="js/facedetection.js"/>
<js-module name="FaceDetection-Lite" src="www/FaceDetection.js">
<clobbers target="facedetection" />
</js-module>
<!-- browser -->
<platform name="browser">
<js-module src="src/browser/FaceDetectionProxy.js" name="FaceDetectionProxy">
<runs />
</js-module>
<js-module src="src/browser/pico.min.js" name="Pico">
<merges target="Pico" />
</js-module>
</platform>
<!-- ios -->
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="FaceDetection-Lite">
<param name="ios-package" value="FaceDetection" />
</feature>
</config-file>
<config-file platform="ios" target="*-Info.plist" parent="NSCameraUsageDescription" overwrite="true">
<string>Allow the app to use your camera</string>
</config-file>
<source-file src="src/ios/FaceDetection.m" target-dir="FaceDetection-Lite" />
<!-- Compiled C libraries -->
<source-file src="src/ios/libs/libpicornt.a" framework="true" />
<!-- C header files -->
<header-file src="src/ios/libs/headers/libpicornt.h" target-dir="FaceDetection-Lite"/>
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="FaceDetection-Lite">
<param name="android-package" value="br.com.luisdemarchi.FaceDetectionPlugin" />
</feature>
</config-file>
<!-- Java plugin API -->
<source-file src="src/android/FaceDetectionPlugin.java" target-dir="app/src/main/java/br/com/luisdemarchi/"/>
<source-file src="src/android/FaceDetectionJni.java" target-dir="app/src/main/java/br/com/luisdemarchi/" />
<!-- PRODUCTION - comment out source files below for debugging -->
<!-- Compiled C libraries -->
<source-file src="src/android/libs/arm64-v8a/libpicornt.so" target-dir="app/src/main/jniLibs/arm64-v8a/" />
<source-file src="src/android/libs/armeabi-v7a/libpicornt.so" target-dir="app/src/main/jniLibs/armeabi-v7a/" />
<source-file src="src/android/libs/x86/libpicornt.so" target-dir="app/src/main/jniLibs/x86/" />
<source-file src="src/android/libs/x86_64/libpicornt.so" target-dir="app/src/main/jniLibs/x86_64/" />
<!-- END PRODUCTION -->
<!-- DEBUG
DEBUG - these files are not needed for production
Custom gradle file to setup NDK for debugging
<source-file src="src/android/build-extras.gradle" target-dir="."/>
NDK Make file for source references for C debugging
<source-file src="src/android/jni/Android.mk" target-dir="app/src/main/java/c/android/jni/"/>
C source files
<source-file src="src/android/jni/FaceDetectionJni.h" target-dir="app/src/main/java/c/android/jni/"/>
<source-file src="src/android/jni/FaceDetectionJni.c" target-dir="app/src/main/java/c/android/jni/"/>
<source-file src="src/common/picornt/picornt.h" target-dir="app/src/main/java/c/common/picornt"/>
<source-file src="src/common/picornt/picornt.c" target-dir="app/src/main/java/c/common/picornt"/>
END DEBUG -->
</platform>
</plugin>