|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<!-- Replace com.test.game with the identifier of your game below, e.g. |
| 3 | + com.gamemaker.game |
| 4 | +--> |
| 5 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 6 | + package="com.nesbox.tic" |
| 7 | + android:versionCode="10200" |
| 8 | + android:versionName="1.02.00" |
| 9 | + android:installLocation="auto"> |
| 10 | + |
| 11 | + <!-- OpenGL ES 2.0 --> |
| 12 | + <uses-feature android:glEsVersion="0x00020000" /> |
| 13 | + |
| 14 | + <!-- Touchscreen support --> |
| 15 | + <uses-feature |
| 16 | + android:name="android.hardware.touchscreen" |
| 17 | + android:required="false" /> |
| 18 | + |
| 19 | + <!-- Game controller support --> |
| 20 | + <uses-feature |
| 21 | + android:name="android.hardware.bluetooth" |
| 22 | + android:required="false" /> |
| 23 | + <uses-feature |
| 24 | + android:name="android.hardware.gamepad" |
| 25 | + android:required="false" /> |
| 26 | + <uses-feature |
| 27 | + android:name="android.hardware.usb.host" |
| 28 | + android:required="false" /> |
| 29 | + |
| 30 | + <!-- External mouse input events --> |
| 31 | + <uses-feature |
| 32 | + android:name="android.hardware.type.pc" |
| 33 | + android:required="false" /> |
| 34 | + |
| 35 | + <!-- Audio recording support --> |
| 36 | + <!-- if you want to capture audio, uncomment this. --> |
| 37 | + <!-- <uses-feature |
| 38 | + android:name="android.hardware.microphone" |
| 39 | + android:required="false" /> --> |
| 40 | + |
| 41 | + <!-- Allow downloading to the external storage on Android 5.1 and older --> |
| 42 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="22" /> |
| 43 | + |
| 44 | + <!-- Allow access to Bluetooth devices --> |
| 45 | + <!-- Currently this is just for Steam Controller support and requires setting SDL_HINT_JOYSTICK_HIDAPI_STEAM --> |
| 46 | + <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" /> |
| 47 | + <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> |
| 48 | + |
| 49 | + <!-- Allow access to the vibrator --> |
| 50 | + <uses-permission android:name="android.permission.VIBRATE" /> |
| 51 | + <!-- Allow access to the Internet --> |
| 52 | + <uses-permission android:name="android.permission.INTERNET" /> |
| 53 | + |
| 54 | + <!-- if you want to capture audio, uncomment this. --> |
| 55 | + <!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> --> |
| 56 | + |
| 57 | + <!-- Create a Java class extending SDLActivity and place it in a |
| 58 | + directory under app/src/main/java matching the package, e.g. app/src/main/java/com/gamemaker/game/MyGame.java |
| 59 | +
|
| 60 | + then replace "SDLActivity" with the name of your class (e.g. "MyGame") |
| 61 | + in the XML below. |
| 62 | +
|
| 63 | + An example Java class can be found in README-android.md |
| 64 | + --> |
| 65 | + <application android:label="@string/app_name" |
| 66 | + android:icon="@mipmap/ic_launcher" |
| 67 | + android:allowBackup="true" |
| 68 | + android:theme="@android:style/Theme.NoTitleBar.Fullscreen" |
| 69 | + android:hardwareAccelerated="true" > |
| 70 | + |
| 71 | + <meta-data android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK" android:value="0"/> |
| 72 | + |
| 73 | + <activity android:name="TIC" |
| 74 | + android:label="@string/app_name" |
| 75 | + android:alwaysRetainTaskState="true" |
| 76 | + android:launchMode="singleInstance" |
| 77 | + android:configChanges="layoutDirection|locale|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation" |
| 78 | + android:preferMinimalPostProcessing="true" |
| 79 | + android:exported="true" |
| 80 | + > |
| 81 | + <intent-filter> |
| 82 | + <action android:name="android.intent.action.MAIN" /> |
| 83 | + <category android:name="android.intent.category.LAUNCHER" /> |
| 84 | + </intent-filter> |
| 85 | + |
| 86 | + <!-- Let Android know that we can handle some USB devices and should receive this event --> |
| 87 | + <intent-filter> |
| 88 | + <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> |
| 89 | + </intent-filter> |
| 90 | + |
| 91 | + <!-- Drop file event --> |
| 92 | + <intent-filter> |
| 93 | + <action android:name="android.intent.action.VIEW" /> |
| 94 | + <category android:name="android.intent.category.DEFAULT" /> |
| 95 | + <data android:mimeType="*/*" android:pathPattern=".*\\.tic" /> |
| 96 | + <data android:mimeType="*/*" android:pathPattern=".*\\.png" /> |
| 97 | + </intent-filter> |
| 98 | + |
| 99 | + </activity> |
| 100 | + <activity android:name=".TICFileReceiver" |
| 101 | + android:theme="@android:style/Theme.Translucent" |
| 102 | + android:exported="true"> |
| 103 | + <intent-filter> |
| 104 | + <action android:name="android.intent.action.SEND" /> |
| 105 | + <category android:name="android.intent.category.DEFAULT" /> |
| 106 | + <data android:mimeType="*/*"/> |
| 107 | + </intent-filter> |
| 108 | + </activity> |
| 109 | + |
| 110 | + <provider |
| 111 | + android:name="TICDocumentsProvider" |
| 112 | + android:authorities="com.nesbox.tic.documents" |
| 113 | + android:exported="true" |
| 114 | + android:grantUriPermissions="true" |
| 115 | + android:permission="android.permission.MANAGE_DOCUMENTS"> |
| 116 | + <intent-filter> |
| 117 | + <action android:name="android.content.action.DOCUMENTS_PROVIDER" /> |
| 118 | + </intent-filter> |
| 119 | + </provider> |
| 120 | + </application> |
| 121 | + |
| 122 | +</manifest> |
0 commit comments