summaryrefslogtreecommitdiff
path: root/android/src/main/AndroidManifest.xml
blob: 5df05314f25ca9982671333c4eaf4e2abc66df1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
	android:versionCode="1"
	android:versionName="1.0"
	android:installLocation="auto">

	<!-- OpenGL ES 3.2 -->
	<uses-feature android:glEsVersion="0x00030002"/>
	<!-- Touchscreen support -->
	<uses-feature
		android:name="android.hardware.touchscreen"
		android:required="false"/>
	<!-- Game controller support -->
	<uses-feature
		android:name="android.hardware.bluetooth"
		android:required="false"/>
	<uses-feature
		android:name="android.hardware.gamepad"
		android:required="false"/>
	<uses-feature
		android:name="android.hardware.usb.host"
		android:required="false"/>
	<!-- External mouse input events -->
	<uses-feature
		android:name="android.hardware.type.pc"
		android:required="false"/>

	<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
	<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="22"/>
	<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30"/>
	<uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/>
	<uses-permission android:name="android.permission.VIBRATE"/>
	<uses-permission android:name="android.permission.INTERNET"/>
	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

	<application android:label="@string/app_name"
		android:allowBackup="true"
		android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
		android:hardwareAccelerated="true">
		<!-- android:icon="@mipmap/ic_launcher"
                        (2024 note): I removed the icon files since they were
                        just the default ones that come with SDL. -->

		<activity android:name="MainActivity"
			android:label="@string/app_name"
			android:alwaysRetainTaskState="true"
			android:launchMode="singleInstance"
			android:configChanges="layoutDirection|locale|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
			android:preferMinimalPostProcessing="true"
			android:exported="true">

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

		</activity>

	</application>

</manifest>