<?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="org.pandemoniumengine.editor"
    android:installLocation="auto">

    <supports-screens
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true" />

    <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true" />

    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
        tools:ignore="ScopedStorage" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
        android:maxSdkVersion="29"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
        android:maxSdkVersion="29"/>
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.VIBRATE" />

    <application
        android:allowBackup="false"
        android:icon="@mipmap/icon"
        android:label="@string/pandemonium_editor_name_string"
        tools:ignore="GoogleAppIndexingWarning"
        android:requestLegacyExternalStorage="true">

        <activity
            android:name=".PandemoniumProjectManager"
            android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
            android:launchMode="singleInstance"
            android:screenOrientation="userLandscape"
            android:exported="true"
            android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
            android:process=":PandemoniumProjectManager">

            <layout android:defaultHeight="@dimen/editor_default_window_height"
                android:defaultWidth="@dimen/editor_default_window_width" />

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity
            android:name=".PandemoniumEditor"
            android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
            android:process=":PandemoniumEditor"
            android:launchMode="singleInstance"
            android:screenOrientation="userLandscape"
            android:exported="false"
            android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
            <layout android:defaultHeight="@dimen/editor_default_window_height"
                android:defaultWidth="@dimen/editor_default_window_width" />
        </activity>

        <activity
            android:name=".PandemoniumGame"
            android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
            android:label="@string/pandemonium_project_name_string"
            android:process=":PandemoniumGame"
            android:launchMode="singleInstance"
            android:exported="false"
            android:screenOrientation="userLandscape"
            android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
            <layout android:defaultHeight="@dimen/editor_default_window_height"
                android:defaultWidth="@dimen/editor_default_window_width" />
        </activity>

    </application>

</manifest>