<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="au.gov.health.covidsafe">

    <uses-feature
        android:name="android.hardware.bluetooth_le"
        android:required="true" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

    <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />

    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />

    <application
        android:name="au.gov.health.covidsafe.app.TracerApp"
        android:allowBackup="false"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:networkSecurityConfig="@xml/network_security_config"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/MyTheme.DayNight"
        android:foregroundServiceType="location"
        tools:replace="android:supportsRtl">

        <activity
            android:name="au.gov.health.covidsafe.ui.splash.SplashActivity"
            android:configChanges="keyboardHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="au.gov.health.covidsafe.ui.onboarding.OnboardingActivity"

            android:windowSoftInputMode="adjustPan" />

        <activity
            android:name="au.gov.health.covidsafe.ui.onboarding.CountryCodeSelectionActivity"

            android:windowSoftInputMode="adjustPan" />

        <activity android:name="au.gov.health.covidsafe.ui.webview.WebViewActivity" />
        <activity android:name="au.gov.health.covidsafe.ui.devicename.DeviceNameChangePromptActivity" />
        <activity android:name="au.gov.health.covidsafe.ui.connection.InternetConnectionIssuesActivity" />
        <activity android:name="au.gov.health.covidsafe.ui.settings.ChanePostCodeActivity" />
        <activity android:name="au.gov.health.covidsafe.ui.restriction.RestrictionDescActivity" />
        <activity android:name="au.gov.health.covidsafe.ui.home.HelpActivity" />

        <activity
            android:name="au.gov.health.covidsafe.HomeActivity"
            android:launchMode="singleTask"
            android:windowSoftInputMode="adjustPan">
            <intent-filter>
                <action android:name="au.gov.health.covidsafe.UPGRADE_APP" />
                <action android:name="au.gov.health.covidsafe.POSSIBLE_ISSUE" />
                <action android:name="au.gov.health.covidsafe.NO_CHECKIN" />
                <action android:name="au.gov.health.covidsafe.POSSIBLE_ENCOUNTER_ERROR" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <receiver android:name="au.gov.health.covidsafe.boot.StartOnBootReceiver">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <action android:name="android.intent.action.QUICKBOOT_POWERON" />
            </intent-filter>
        </receiver>

        <service
            android:name="au.gov.health.covidsafe.services.BluetoothMonitoringService"
            android:foregroundServiceType="location" />

        <receiver android:name="au.gov.health.covidsafe.receivers.UpgradeReceiver">
            <intent-filter>
                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
            </intent-filter>
        </receiver>

        <receiver android:name="au.gov.health.covidsafe.receivers.PrivacyCleanerReceiver" />

        <service
            android:name="au.gov.health.covidsafe.notifications.CovidFirebaseMessagingService"
            android:exported="false">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>

        <service
            android:name="au.gov.health.covidsafe.scheduler.GetMessagesJobSchedulerService"
            android:exported="true"
            android:permission="android.permission.BIND_JOB_SERVICE" />

    </application>

</manifest>
