aboutsummaryrefslogtreecommitdiff
path: root/dists/android
diff options
context:
space:
mode:
authorColin Snover2017-11-23 13:22:54 -0600
committerColin Snover2017-11-23 14:02:55 -0600
commit583c7cf622db1a6d168c7498ed0aef8c2162d26c (patch)
treeb9e29faf65cfd0d45497a87394f280ad81c16516 /dists/android
parent2dfa1fa71e07385e5bcc1e5da6cb34d88561dc7c (diff)
downloadscummvm-rg350-583c7cf622db1a6d168c7498ed0aef8c2162d26c.tar.gz
scummvm-rg350-583c7cf622db1a6d168c7498ed0aef8c2162d26c.tar.bz2
scummvm-rg350-583c7cf622db1a6d168c7498ed0aef8c2162d26c.zip
ANDROID: Clean up AndroidManifest.xml
Keep uses-flags at the top to avoid them getting buried below the activities, update target SDK to the minimum supported by current Android SDKs, make Wi-Fi optional, and add screenSize configuration change recommended by the Android documentation since orientation is already supported.
Diffstat (limited to 'dists/android')
-rw-r--r--dists/android/AndroidManifest.xml44
-rw-r--r--dists/android/AndroidManifest.xml.in44
2 files changed, 50 insertions, 38 deletions
diff --git a/dists/android/AndroidManifest.xml b/dists/android/AndroidManifest.xml
index d4c40a8b17..d49cd51695 100644
--- a/dists/android/AndroidManifest.xml
+++ b/dists/android/AndroidManifest.xml
@@ -1,16 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- NB: android:versionCode needs to be bumped for formal releases -->
+<!-- NB: android:versionCode needs to be bumped for formal releases -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.scummvm.scummvm"
android:versionCode="@ANDROID_VERSIONCODE@"
android:versionName="2.0.0git"
android:sharedUserId="org.scummvm.scummvm">
- <!-- This version works on Android 1.5 (SDK 3) and newer, but we
- want Android 2.2 (SDK 8) defaults and features. -->
<uses-sdk android:minSdkVersion="3"
- android:targetSdkVersion="8"/>
+ android:targetSdkVersion="14"/>
+
+ <uses-permission
+ android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+
+ <uses-permission
+ android:name="android.permission.ACCESS_WIFI_STATE"/>
+
+ <uses-feature
+ android:name="android.hardware.wifi"
+ android:required="false"/>
+
+ <uses-feature
+ android:name="android.hardware.screen.landscape"
+ android:required="false"/>
+
+ <uses-feature
+ android:name="android.hardware.touchscreen"
+ android:required="false"/>
+
+ <uses-feature
+ android:name="android.software.leanback"
+ android:required="false"/>
<application
android:label="@string/app_name"
@@ -20,7 +40,7 @@
<activity android:name=".ScummVMActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="landscape"
- android:configChanges="orientation|keyboardHidden"
+ android:configChanges="orientation|keyboardHidden|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
@@ -37,18 +57,4 @@
</intent-filter>
</activity>
</application>
-
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
-
- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" android:required="true"/>
-
- <uses-feature android:name="android.hardware.screen.landscape"
- android:required="false" />
-
- <uses-feature android:name="android.hardware.touchscreen"
- android:required="false" />
-
- <uses-feature android:name="android.software.leanback"
- android:required="false" />
-
</manifest>
diff --git a/dists/android/AndroidManifest.xml.in b/dists/android/AndroidManifest.xml.in
index 9601425c74..957ec121a4 100644
--- a/dists/android/AndroidManifest.xml.in
+++ b/dists/android/AndroidManifest.xml.in
@@ -1,16 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- NB: android:versionCode needs to be bumped for formal releases -->
+<!-- NB: android:versionCode needs to be bumped for formal releases -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.scummvm.scummvm"
android:versionCode="@ANDROID_VERSIONCODE@"
android:versionName="@VERSION@"
android:sharedUserId="org.scummvm.scummvm">
- <!-- This version works on Android 1.5 (SDK 3) and newer, but we
- want Android 2.2 (SDK 8) defaults and features. -->
<uses-sdk android:minSdkVersion="3"
- android:targetSdkVersion="8"/>
+ android:targetSdkVersion="14"/>
+
+ <uses-permission
+ android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+
+ <uses-permission
+ android:name="android.permission.ACCESS_WIFI_STATE"/>
+
+ <uses-feature
+ android:name="android.hardware.wifi"
+ android:required="false"/>
+
+ <uses-feature
+ android:name="android.hardware.screen.landscape"
+ android:required="false"/>
+
+ <uses-feature
+ android:name="android.hardware.touchscreen"
+ android:required="false"/>
+
+ <uses-feature
+ android:name="android.software.leanback"
+ android:required="false"/>
<application
android:label="@string/app_name"
@@ -20,7 +40,7 @@
<activity android:name=".ScummVMActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="landscape"
- android:configChanges="orientation|keyboardHidden"
+ android:configChanges="orientation|keyboardHidden|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
@@ -37,18 +57,4 @@
</intent-filter>
</activity>
</application>
-
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
-
- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" android:required="true"/>
-
- <uses-feature android:name="android.hardware.screen.landscape"
- android:required="false" />
-
- <uses-feature android:name="android.hardware.touchscreen"
- android:required="false" />
-
- <uses-feature android:name="android.software.leanback"
- android:required="false" />
-
</manifest>