<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.radio.codec2talkie">

    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

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

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.Codec2Talkie">
        <service android:name=".app.AppService" android:foregroundServiceType="location|microphone"/>
        <activity
            android:name=".connect.UsbConnectActivity"
            android:configChanges="orientation|screenSize" />
        <activity
            android:name=".connect.TcpIpConnectActivity"
            android:configChanges="orientation|screenSize" />
        <activity
            android:name=".connect.BluetoothConnectActivity"
            android:configChanges="orientation|screenSize"/>
        <activity
            android:name=".connect.BleConnectActivity"
            android:configChanges="orientation|screenSize"/>
        <activity
            android:name=".settings.BluetoothSettingsActivity"
            android:configChanges="orientation|screenSize" />
        <activity
            android:name=".recorder.RecorderActivity"
            android:configChanges="orientation|screenSize" />
        <activity
            android:name=".log.LogItemActivity"
            android:configChanges="orientation|screenSize" />
        <activity
            android:name=".MainActivity"
            android:configChanges="orientation|screenSize">
            <intent-filter>
                <category android:name="android.intent.category.LAUNCHER" />
                <action android:name="android.intent.action.MAIN" />
                <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
            </intent-filter>
            <meta-data
                android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
                android:resource="@xml/device_filter" />
        </activity>
        <activity
            android:name=".settings.SettingsActivity"
            android:configChanges="orientation|screenSize" />
    </application>
</manifest>