<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
        id="cordova-plugin-hrms-faceidentify" version="0.2.3">
        <name>FacePlugin</name>
    <author>Xiang Wang</author>
    <description>for face recognition</description>
    <keywords>FacePlugin</keywords>
    <license>GPLv2</license>
    <js-module charset="utf-8" name="pluginface" src="www/pluginface.js">
		<clobbers target="pluginface"/>
    </js-module>
  <platform name="android">
    <config-file parent="/*" target="res/xml/config.xml">
      <feature name="FacePlugin">
        <param name="android-package" value="com.hand.hrms.face.FacePlugin"/>
      </feature>
    </config-file>
    <source-file src="src/android/FacePlugin.java" target-dir="src/com/hand/hrms/face"/>
	<source-file src="src/android/Config.java" target-dir="src/com/hand/face/common"/>
	<source-file src="src/android/LoadingDialog.java" target-dir="src/com/hand/face/common"/>
	<source-file src="src/android/CameraInterface.java" target-dir="src/com/hand/face/myinterface"/>
	<source-file src="src/android/NotifyMessage.java" target-dir="src/com/hand/face/myinterface"/>
	<source-file src="src/android/FaceCompareActivity.java" target-dir="src/com/hand/face/ui"/>
	<source-file src="src/android/FaceSerchActivity.java" target-dir="src/com/hand/face/ui"/>
	<source-file src="src/android/Accelerometer.java" target-dir="src/com/hand/face/utils"/>
	<source-file src="src/android/CamParaUtil.java" target-dir="src/com/hand/face/utils"/>
	<source-file src="src/android/DisplayUtil.java" target-dir="src/com/hand/face/utils"/>
	<source-file src="src/android/EventUtil.java" target-dir="src/com/hand/face/utils"/>
	<source-file src="src/android/FaceUtil.java" target-dir="src/com/hand/face/utils"/>
	<source-file src="src/android/FileUtil.java" target-dir="src/com/hand/face/utils"/>
	<source-file src="src/android/NotifyMessageManager.java" target-dir="src/com/hand/face/utils"/>
	<source-file src="src/android/GoogleFaceDetect.java" target-dir="src/com/hand/face/utils"/>
	<source-file src="src/android/ImageUtil.java" target-dir="src/com/hand/face/utils"/>
	<source-file src="src/android/Utils.java" target-dir="src/com/hand/face/utils"/>
	<source-file src="src/android/CameraSurfaceView.java" target-dir="src/com/hand/face/view"/>
	<source-file src="src/android/FaceView.java" target-dir="src/com/hand/face/view"/>
	<source-file src="src/android/MaskView.java" target-dir="src/com/hand/face/view"/>
	<source-file src="src/android/Base64Util.java" target-dir="src/com/youtu/sign"/>
	<source-file src="src/android/HMACSHA1.java" target-dir="src/com/youtu/sign"/>
	<source-file src="src/android/MD5.java" target-dir="src/com/youtu/sign"/>
	<source-file src="src/android/YoutuSign.java" target-dir="src/com/youtu/sign"/>
	<source-file src="src/android/HttpsUtil.java" target-dir="src/com/youtu"/>
	<source-file src="src/android/Youtu.java" target-dir="src/com/youtu"/>

	<source-file src="src/android/layout/activity_video.xml" target-dir="res/layout"/>
    <source-file src="src/android/layout/loading_dialog.xml" target-dir="res/layout"/>

	<source-file src="src/android/drawable/dialog_bg.9.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/ic_face_find_2.9.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/ic_switch_camera.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/loading1.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/loading2.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/loading3.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/loading4.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/loading5.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/loading6.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/loading7.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/loading8.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/loading9.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/loading10.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/loading11.png" target-dir="res/drawable-hdpi"/>
	<source-file src="src/android/drawable/loading12.png" target-dir="res/drawable-hdpi"/>

	<source-file src="src/android/drawable/loading_drawable.xml" target-dir="res/drawable"/>
	<source-file src="src/android/aliyun-oss-sdk-android-2.3.0.jar" target-dir="libs/" />

    <config-file target="res/values/styles.xml" parent="/resources">
        <style name="loading_dialog" parent="android:style/Theme.Dialog">
        <item name="android:windowFrame">@null</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowBackground">@color/loading_dialog_bg</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:windowContentOverlay">@null</item>
		</style>
		<style name="Dialog_No_Border">
        <item name="android:windowIsFloating">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
		</style>
    </config-file>

    <source-file src="src/android/values/face_colors.xml" target-dir="res/values"/>


	<config-file parent="/manifest" target="AndroidManifest.xml">
       <uses-permission android:name="android.permission.INTERNET" />
		<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
		<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
		<uses-permission android:name="android.permission.CAMERA" />
		<uses-feature android:name="android.hardware.camera" />
		<uses-feature android:name="android.hardware.autofocus"/>
		<uses-permission android:name="android.permission.RECORD_AUDIO" />
		<uses-permission android:name="android.permission.RECORD_VIDEO" />
		<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
		<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    </config-file>
	<config-file target="AndroidManifest.xml" parent="/manifest/application">
		<activity
            android:name="com.hand.face.ui.FaceCompareActivity"
            android:screenOrientation="portrait" >
        </activity>
		<activity android:name="com.hand.face.ui.FaceSerchActivity"
			android:screenOrientation="portrait" >
		</activity>
	</config-file>
  </platform>
   <platform name="ios">
        <config-file target="config.xml" parent="/*">
            <feature name="FacePlugin">
                <param name="ios-package" value="FaceRecognizer"/>
            </feature>
        </config-file>

        <!--麦克风权限-->
        <config-file target="*-Info.plist"  parent="NSMicrophoneUsageDescription">
            <string>我们将在拍照模块使用您的麦克风</string>
        </config-file>
        <!--相机使用权限-->
        <config-file target="*-Info.plist"  parent="NSCameraUsageDescription">
            <string>我们将在拍照模块使用您的相机</string>
        </config-file>

        <!-- 图片资源 -->
        <resource-file src="src/ios/plugins/images/style_default_bg_mask_normal@2x.png"/>
        <resource-file src="src/ios/plugins/images/style_default_bg_mask_normal@3x.png"/>
        <!-- 源码    -->

        <header-file src="src/ios/plugins/FaceRecognizer.h"/>
        <source-file src="src/ios/plugins/FaceRecognizer.m"/>

<!--        <header-file src="src/ios/plugins/FaceRecognizerViewController.h"/>-->
<!--        <source-file src="src/ios/plugins/FaceRecognizerViewController.m"/>-->

        <header-file src="src/ios/plugins/FaceVideoDectorViewController.h" />
        <source-file src="src/ios/plugins/FaceVideoDectorViewController.m" />

        <header-file src="src/ios/plugins/CaptureService/WBCaptureService.h"/>
        <source-file src="src/ios/plugins/CaptureService/WBCaptureService.m"/>

        <header-file src="src/ios/plugins/CaptureService/WBVideoRecorder.h"/>
        <source-file src="src/ios/plugins/CaptureService/WBVideoRecorder.m"/>

        <header-file src="src/ios/plugins/MBProgressHUD/Definition.h"/>

        <header-file src="src/ios/plugins/MBProgressHUD/MBProgressHUD.h"/>
        <source-file src="src/ios/plugins/MBProgressHUD/MBProgressHUD.m"/>

        <!--Tool -->
<!--        <header-file src="src/ios/plugins/Tool/AFNetworkReachabilityManager.h"/>-->
<!--        <source-file src="src/ios/plugins/Tool/AFNetworkReachabilityManager.m"/>-->

        <header-file src="src/ios/plugins/Tool/Auth.h"/>
        <source-file src="src/ios/plugins/Tool/Auth.m"/>

        <header-file src="src/ios/plugins/Tool/Conf.h"/>
        <source-file src="src/ios/plugins/Tool/Conf.m"/>

        <header-file src="src/ios/plugins/Tool/FaceHeader.h" />

        <header-file src="src/ios/plugins/Tool/NSData+FaceBase64.h"/>
        <source-file src="src/ios/plugins/Tool/NSData+FaceBase64.m"/>

        <header-file src="src/ios/plugins/Tool/ToastUtils.h"/>
        <source-file src="src/ios/plugins/Tool/ToastUtils.m"/>

        <header-file src="src/ios/plugins/Tool/TXQcloudFrSDK.h"/>
        <source-file src="src/ios/plugins/Tool/TXQcloudFrSDK.m"/>

        <header-file src="src/ios/plugins/Tool/UIImage+FaceDetect.h"/>
        <source-file src="src/ios/plugins/Tool/UIImage+FaceDetect.m"/>

        <header-file src="src/ios/plugins/Tool/UIImage+FaceExtensions.h"/>
        <source-file src="src/ios/plugins/Tool/UIImage+FaceExtensions.m"/>

        <header-file src="src/ios/plugins/Tool/ZLDefine.h"/>

        <header-file src="src/ios/plugins/Tool/ZLProgressHUD.h"/>
        <source-file src="src/ios/plugins/Tool/ZLProgressHUD.m"/>

        <!-- 必须的frameworks -->
        <framework src="AVFoundation.framework" />
        <framework src="libz.tbd" />
        <framework src="libstdc++.tbd" />
        <framework src="libz.1.2.5.tbd" />
        <framework src="libresolv.tbd" />
        <framework src="SystemConfiguration.framework" />
        <framework src="src/ios/plugins/AliyunOSSiOS.framework" custom="true" />
    </platform>
</plugin>