<?xml version='1.0' encoding='utf-8'?>
<widget android-versionCode="10005" id="br.com.FBRegistroPro" version="1.0.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>RegistroPro</name>
    <description>
        A sample Apache Cordova application that responds to the deviceready event.
    </description>
    <author email="dev@cordova.apache.org" href="https://cordova.apache.org">
        Apache Cordova Team
    </author>
    <hook src="hooks/after_prepare_flag_secure.js" type="after_prepare" />
    <content src="index.html" />
    <preference name="AutoHideSplashScreen" value="true" />
    <preference name="SplashScreenDelay" value="0" />
    <preference name="FadeSplashScreen" value="false" />
    <preference name="ShowSplashScreenSpinner" value="false" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreen" value="none" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-navigation href="http://*/*" />
    <allow-navigation href="https://*/*" />
    <platform name="android">
        <resource-file src="resources/android/assets/adi-registration.properties" target="app/src/main/assets/adi-registration.properties" />
        <resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
        <resource-file src="resources/android/drawable/ic_cdv_splashscreen.xml" target="app/src/main/res/drawable/ic_cdv_splashscreen.xml" />
        <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
            <application android:networkSecurityConfig="@xml/network_security_config" android:usesCleartextTraffic="true" />
        </edit-config>
        <config-file parent="/manifest" target="AndroidManifest.xml" xmlns:android="http://schemas.android.com/apk/res/android">
            <uses-permission android:name="android.permission.CAMERA" />
            <uses-permission android:name="android.permission.RECORD_AUDIO" />
            <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
            <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
            <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
            <uses-permission android:name="android.permission.USE_BIOMETRIC" />
            <uses-feature android:name="android.hardware.camera" android:required="false" />
            <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
            <uses-feature android:name="android.hardware.microphone" android:required="false" />
        </config-file>
    </platform>
    <plugin name="cordova-open-native-settings" spec="~1.5.5" />

    <!-- Print / gravacao de tela: FLAG_SECURE controlado por cargo (JS + plugin nativo) -->
    <plugin name="cordova-plugin-registropro-screen-capture" spec="local-plugins/cordova-plugin-registropro-screen-capture" />

    <plugin name="cordova-plugin-fingerprint-aio" spec="~6.0.1">
        <variable name="FACEID_USAGE_DESCRIPTION" value="Use a biometria para entrar no RegistroPro." />
    </plugin>

    <plugin name="cordova.plugins.diagnostic" spec="~7.2.3" />
    <plugin name="cordova-plugin-android-permissions" spec="~1.1.5" />
    <plugin name="cordova-plugin-device" spec="~3.0.0" />
</widget>
