1+ <?xml version =' 1.0' encoding =' utf-8' ?>
2+ <plugin id =" com.ttv.face.plugin" version =" 0.0.2" xmlns =" http://apache.org/cordova/ns/plugins/1.0" xmlns : android =" http://schemas.android.com/apk/res/android" >
3+ <name >FacePlugin</name >
4+ <js-module name =" FacePlugin" src =" www/FacePlugin.js" >
5+ <clobbers target =" FacePlugin" />
6+ </js-module >
7+ <platform name =" android" >
8+ <config-file parent =" /*" target =" res/xml/config.xml" >
9+ <feature name =" FacePlugin" >
10+ <param name =" android-package" value =" com.ttv.face.plugin.FacePlugin" />
11+ </feature >
12+ <preference name =" AndroidXEnabled" value =" true" />
13+ </config-file >
14+ <config-file target =" AndroidManifest.xml" parent =" /manifest/application" >
15+ <activity android : label =" Camera Activity" android : name =" com.ttv.facerecog.CameraActivity" android : theme =" @style/Theme.AppCompat" ></activity >
16+ </config-file >
17+ <!-- <config-file target="AndroidManifest.xml" parent="/*" mode="merge">
18+ <uses-permission android:name="android.permission.CAMERA" />
19+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
20+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
21+ </config-file> -->
22+ <config-file parent =" /*" target =" AndroidManifest.xml" ></config-file >
23+ <source-file src =" src/android/FacePlugin.java" target-dir =" src/com/ttv/face/plugin" />
24+ <source-file src =" src/android/CameraActivity.java" target-dir =" src/com/ttv/facerecog" />
25+ <source-file src =" src/android/FaceRectTransformer.java" target-dir =" src/com/ttv/facerecog" />
26+ <source-file src =" src/android/FaceRectView.java" target-dir =" src/com/ttv/facerecog" />
27+ <source-file src =" src/android/ImageRotator.java" target-dir =" src/com/ttv/facerecog" />
28+ <source-file src =" src/android/PermissionsDelegate.java" target-dir =" src/com/ttv/facerecog" />
29+ <source-file src =" src/android/activity_camera.xml" target-dir =" res/layout" />
30+ <source-file src =" src/android/ic_refresh.xml" target-dir =" res/drawable" />
31+ <source-file src =" src/android/build-extras.gradle" target-dir =" ." />
32+ <framework src =" src/android/aarintegration.gradle" custom =" true" type =" gradleReference" />
33+ <resource-file src =" src/android/facesdk.aar" target =" libs/facesdk.aar" />
34+
35+ <framework src =" androidx.appcompat:appcompat:1.1.0" />
36+ <framework src =" com.google.android.material:material:1.1.0-alpha05" />
37+ <framework src =" androidx.constraintlayout:constraintlayout:2.1.2" />
38+ <framework src =" androidx.camera:camera-core:1.0.0-beta12" />
39+ <framework src =" androidx.camera:camera-camera2:1.0.0-beta12" />
40+ <framework src =" androidx.camera:camera-lifecycle:1.0.0-beta12" />
41+ <framework src =" androidx.camera:camera-view:1.0.0-alpha19" />
42+ </platform >
43+
44+ <platform name =" ios" >
45+
46+ <config-file target =" config.xml" parent =" /widget" >
47+ <feature name =" FacePlugin" >
48+ <param name =" ios-package" value =" FacePlugin" />
49+ </feature >
50+ </config-file >
51+
52+ <header-file src =" src/ios/FacePlugin.h" target-dir =" FacePlugin" />
53+ <source-file src =" src/ios/FacePlugin.m" target-dir =" FacePlugin" />
54+ <header-file src =" src/ios/FaceView.h" target-dir =" FacePlugin" />
55+ <source-file src =" src/ios/FaceView.m" target-dir =" FacePlugin" />
56+ <header-file src =" src/ios/VideoViewController.h" target-dir =" FacePlugin" />
57+ <source-file src =" src/ios/VideoViewController.mm" target-dir =" FacePlugin" />
58+
59+ <source-file src =" src/ios/facesdk.framework" target-dir =" lib" framework =" true" />
60+ <framework src =" src/ios/facesdk.framework" embed =" true" custom =" true" />
61+ <header-file src =" src/ios/facesdk.framework/Headers/facesdk.h" target-dir =" FacePlugin" />
62+ <header-file src =" src/ios/facesdk.framework/Headers/facesdk_api.h" target-dir =" FacePlugin" />
63+
64+ <resource-file src =" src/ios/ic_switch.png" />
65+
66+
67+ </platform >
68+ </plugin >
0 commit comments