<?xml version='1.0' encoding='utf-8'?>
<widget id="br.com.saasport" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>FBUSINESS Portaria</name>
    <description>
        Aplicativo FBUSINESS para portaria — liberação de acessos, visitantes, entregas e monitoramento.
    </description>
    <author email="dev@pro-control.site" href="https://cliente.procontrolcloud.com">
        SaaS Control
    </author>
    <content src="splash.html" />
    <preference name="android-minSdkVersion" value="24" />
    <preference name="android-targetSdkVersion" value="36" />
    <preference name="android-compileSdkVersion" value="36" />
    <preference name="AndroidInsecureFileModeEnabled" value="true" />
    <preference name="StatusBarBackgroundColor" value="#0b1421" />
    <preference name="BackgroundColor" value="#0b1421" />
    <preference name="SplashScreenBackgroundColor" value="#0b1421" />
    <preference name="AndroidWindowSplashScreenBackground" value="#0b1421" />
    <preference name="AndroidWindowSplashScreenIconBackgroundColor" value="#0b1421" />
    <preference name="AutoHideSplashScreen" value="true" />
    <preference name="FadeSplashScreen" value="true" />
    <preference name="FadeSplashScreenDuration" value="200" />
    <preference name="SplashScreenDelay" value="0" />
    <preference name="ShowSplashScreenSpinner" value="false" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-navigation href="*" />
    <icon src="res/icon/android/icon-1024.png" />
    <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
        <application android:usesCleartextTraffic="true" />
    </edit-config>
    <hook type="after_prepare" src="hooks/after_prepare/01_portaria_branding.js" />
    <hook type="before_compile" src="hooks/before_compile/01_portaria_branding.js" />
    <platform name="android">
        <preference name="scheme" value="http" />
        <preference name="hostname" value="localhost" />
        <preference name="AndroidWindowSplashScreenBackground" value="#0b1421" />
        <preference name="AndroidWindowSplashScreenIconBackgroundColor" value="#0b1421" />
        <icon density="ldpi" src="res/icon/android/ldpi.png" />
        <icon density="mdpi" src="res/icon/android/mdpi.png" />
        <icon density="hdpi" src="res/icon/android/hdpi.png" />
        <icon density="xhdpi" src="res/icon/android/xhdpi.png" />
        <icon density="xxhdpi" src="res/icon/android/xxhdpi.png" />
        <icon density="xxxhdpi" src="res/icon/android/xxxhdpi.png" />
        <icon background="res/icon/android/ic_launcher_background-ldpi.png" density="ldpi" foreground="res/icon/android/ic_launcher_foreground-ldpi.png" />
        <icon background="res/icon/android/ic_launcher_background-mdpi.png" density="mdpi" foreground="res/icon/android/ic_launcher_foreground-mdpi.png" />
        <icon background="res/icon/android/ic_launcher_background-hdpi.png" density="hdpi" foreground="res/icon/android/ic_launcher_foreground-hdpi.png" />
        <icon background="res/icon/android/ic_launcher_background-xhdpi.png" density="xhdpi" foreground="res/icon/android/ic_launcher_foreground-xhdpi.png" />
        <icon background="res/icon/android/ic_launcher_background-xxhdpi.png" density="xxhdpi" foreground="res/icon/android/ic_launcher_foreground-xxhdpi.png" />
        <icon background="res/icon/android/ic_launcher_background-xxxhdpi.png" density="xxxhdpi" foreground="res/icon/android/ic_launcher_foreground-xxxhdpi.png" />
        <resource-file src="res/android/drawable/ic_portaria_splash.png" target="app/src/main/res/drawable/ic_portaria_splash.png" />
        <resource-file src="res/android/values/cdv_themes.xml" target="app/src/main/res/values/cdv_themes.xml" />
        <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
            <application android:usesCleartextTraffic="true" />
        </edit-config>
    </platform>
</widget>
