v0.7.4: centralized even more build properties, including moving some things out of app manifest

This commit is contained in:
Evan Debenham 2019-07-14 21:01:40 -04:00
parent 1f30626e55
commit fb34d976e8
7 changed files with 17 additions and 31 deletions

View File

@ -3,12 +3,6 @@
<uses-permission android:name="android.permission.VIBRATE"/> <uses-permission android:name="android.permission.VIBRATE"/>
<uses-feature <uses-feature android:glEsVersion="0x00020000"/>
android:glEsVersion="0x00020000"/>
<application
android:label="@string/app_name"
>
</application>
</manifest> </manifest>

View File

@ -1,3 +0,0 @@
<resources>
<string name="app_name">SPD-Classes</string>
</resources>

View File

@ -11,8 +11,11 @@ buildscript {
allprojects { allprojects {
ext { ext {
appVersionCode = 353 appName = 'Shattered Pixel Dungeon'
appVersionName = '0.7.4-BETA-4' appPackageName = 'com.shatteredpixel.shatteredpixeldungeon'
appVersionCode = 349
appVersionName = '0.7.3b'
appAndroidCompileSDK = 28 appAndroidCompileSDK = 28
appAndroidMinSDK = 9 appAndroidMinSDK = 9

View File

@ -4,13 +4,18 @@ android {
compileSdkVersion appAndroidCompileSDK compileSdkVersion appAndroidCompileSDK
defaultConfig { defaultConfig {
resConfigs "en_US", "cs", "tr", "ca", "ko", "pl", "it", manifestPlaceholders = [appName:appName]
"eo", "ru", "zh_CN", "de", "fr", "es", "pt", "fi", "hu", "in" applicationId appPackageName
versionCode appVersionCode
versionName appVersionName
//noinspection MinSdkTooLow //noinspection MinSdkTooLow
minSdkVersion appAndroidMinSDK minSdkVersion appAndroidMinSDK
targetSdkVersion appAndroidTargetSDK targetSdkVersion appAndroidTargetSDK
versionCode appVersionCode
versionName appVersionName resConfigs "en_US", "cs", "tr", "ca", "ko", "pl", "it",
"eo", "ru", "zh_CN", "de", "fr", "es", "pt", "fi", "hu", "in"
} }
buildTypes { buildTypes {

View File

@ -1,5 +0,0 @@
<resources>
<string name="app_name">ShatteredPD INDEV</string>
</resources>

View File

@ -1,8 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.shatteredpixel.shatteredpixeldungeon" package="com.shatteredpixel.shatteredpixeldungeon"
android:versionCode="349"
android:versionName="0.7.3b"
android:installLocation="auto"> android:installLocation="auto">
<uses-feature <uses-feature
@ -18,14 +16,14 @@
<application <application
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="${appName}"
android:theme="@android:style/Theme.Black.NoTitleBar" android:theme="@android:style/Theme.Black.NoTitleBar"
android:resizeableActivity="true" android:resizeableActivity="true"
android:allowBackup="true" android:allowBackup="true"
android:fullBackupOnly="true" android:fullBackupOnly="true"
android:backupAgent="com.shatteredpixel.shatteredpixeldungeon.BackupHandler"> android:backupAgent="com.shatteredpixel.shatteredpixeldungeon.BackupHandler">
<activity <activity
android:label="@string/app_name" android:label="${appName}"
android:name="com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon" android:name="com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon"
android:screenOrientation="nosensor"> android:screenOrientation="nosensor">
<intent-filter > <intent-filter >

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Shattered Pixel Dungeon</string>
</resources>