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

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:name="com.workingagenda.democracydroid.MainApplication"
        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/AppTheme"
        android:usesCleartextTraffic="true"
        >
        <activity
            android:name=".ui.MainActivity"
            android:exported="true"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:launchMode="singleTop"
            android:theme="@style/AppTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".ui.AboutActivity"
            android:icon="@drawable/appicon"
            android:label="@string/about_title"
            android:parentActivityName=".ui.MainActivity"
            android:exported="false"
            android:theme="@style/AppTheme">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.workingagenda.democracydroid.ui.MainActivity" />
        </activity>
        <activity
            android:name=".ui.StoryActivity"
            android:icon="@drawable/appicon"
            android:label="@string/app_name"
            android:parentActivityName=".ui.MainActivity"
            android:exported="false"
            android:theme="@style/AppTheme">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.workingagenda.democracydroid.ui.MainActivity" />
        </activity>
        <activity
            android:name=".ui.player.MediaActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:icon="@drawable/appicon"
            android:label="@string/app_name"
            android:launchMode="singleTask"
            android:parentActivityName=".ui.MainActivity"
            android:exported="false"
            android:theme="@style/AppTheme">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.workingagenda.democracydroid.ui.MainActivity" />
        </activity>

        <activity
            android:name=".ui.settings.SettingsActivity"
            android:icon="@drawable/appicon"
            android:label="@string/name_setting"
            android:parentActivityName=".ui.MainActivity"
            android:exported="false"
            android:theme="@style/AppTheme">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.workingagenda.democracydroid.ui.MainActivity" />
        </activity>

        <service android:name=".core.service.MediaService"
            android:exported="true">
            <intent-filter>
                <action android:name=".MediaService" />
            </intent-filter>
        </service>
    </application>
</manifest>
