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-feature
android:glEsVersion="0x00020000"/>
<application
android:label="@string/app_name"
>
</application>
<uses-feature android:glEsVersion="0x00020000"/>
</manifest>

View File

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

View File

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

View File

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

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