<?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="com.unciv.app" >

    <uses-sdk/>

    <uses-permission android:name="android.permission.INTERNET" />
    <!-- See https://developer.android.com/training/tv/start/start -->
    <uses-feature android:name="android.software.leanback" android:required="false" />
    <uses-feature android:name="android.hardware.touchscreen" android:required="false" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/uncivicon2"
        android:label="@string/app_name"
        android:isGame="true"
        android:appCategory="game"
        android:banner="@drawable/banner"
        android:theme="@style/GdxTheme" >
        <activity
            android:name="com.unciv.app.AndroidLauncher"
            android:launchMode="singleTask"
            android:exported="true"
            android:label="@string/app_name"
            android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
            tools:ignore="LockedOrientationActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <intent-filter android:autoVerify="true" >
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data
                    android:scheme="https"
                    android:host="unciv.app"
                    android:path="/multiplayer"
                />
            </intent-filter>
        </activity>

        <activity
            android:name="com.unciv.app.AndroidTvLauncher"
            android:label="@string/app_name"
            android:exported="true"
            android:theme="@style/GdxTheme">

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

        </activity>
        <receiver android:name=".CopyToClipboardReceiver"  android:exported="false" />
    </application>

</manifest>
