v0.7.4b: restructured initialization logic into new android module
A lot of cleanup is needed for this, but everything works
@@ -1,41 +1,15 @@
|
||||
apply plugin: 'com.android.application'
|
||||
//FIXME currently an android library while small amounts of android-specific code remain in SPD-classes
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdkVersion appAndroidCompileSDK
|
||||
|
||||
defaultConfig {
|
||||
manifestPlaceholders = [appName:appName]
|
||||
applicationId appPackageName
|
||||
|
||||
versionCode appVersionCode
|
||||
versionName appVersionName
|
||||
|
||||
//noinspection MinSdkTooLow
|
||||
minSdkVersion appAndroidMinSDK
|
||||
targetSdkVersion appAndroidTargetSDK
|
||||
|
||||
resConfigs "en_US", "cs", "tr", "ca", "ko", "pl", "it",
|
||||
"eo", "ru", "zh_CN", "de", "fr", "es", "pt", "fi", "hu", "in"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
applicationIdSuffix ".indev"
|
||||
versionNameSuffix '-INDEV'
|
||||
}
|
||||
release {
|
||||
|
||||
//These lines enable R8, which is a code shrinker/optimizer/obfuscator.
|
||||
//This makes release APKs smaller and more efficient, but also makes debugging trickier
|
||||
//as the information produced in stack traces must be de-obfuscated.
|
||||
//See here: https://developer.android.com/studio/build/shrink-code#decode-stack-trace
|
||||
shrinkResources true
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':SPD-classes')
|
||||
api project(':SPD-classes')
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
# retain these to support class references for the bundling and translation systems
|
||||
-keepnames class com.shatteredpixel.** { *; }
|
||||
-keepnames class com.watabou.** { *; }
|
||||
|
||||
# retained to support meaningful stack traces
|
||||
# note that the mapping file must be referenced in order to make sense of line numbers
|
||||
# mapping file can be found in core/build/outputs/mapping after running a release build
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@mipmap/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
|
Before Width: | Height: | Size: 1017 B |
|
Before Width: | Height: | Size: 470 B |
|
Before Width: | Height: | Size: 376 B |
|
Before Width: | Height: | Size: 498 B |
|
Before Width: | Height: | Size: 749 B |
|
Before Width: | Height: | Size: 351 B |
|
Before Width: | Height: | Size: 354 B |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 468 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 619 B |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 953 B |
|
Before Width: | Height: | Size: 595 B |
@@ -1,38 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.shatteredpixel.shatteredpixeldungeon"
|
||||
android:installLocation="auto">
|
||||
|
||||
<uses-feature
|
||||
android:glEsVersion="0x00020000"/>
|
||||
package="com.shatteredpixel.shatteredpixeldungeon">
|
||||
|
||||
<!-- Note that the game doesn't truly support small screen resolutions,
|
||||
it instead forces downscaling to work on these displays.-->
|
||||
<supports-screens
|
||||
android:smallScreens="true"
|
||||
android:normalScreens="true"
|
||||
android:largeScreens="true"
|
||||
android:xlargeScreens="true"/>
|
||||
|
||||
<application
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
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="${appName}"
|
||||
android:name="com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon"
|
||||
android:screenOrientation="nosensor"
|
||||
android:configChanges="keyboard|keyboardHidden|orientation">
|
||||
<intent-filter >
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
</application>
|
||||
<uses-feature android:glEsVersion="0x00020000"/>
|
||||
|
||||
</manifest>
|
||||
|
||||
|
Before Width: | Height: | Size: 423 B |
|
Before Width: | Height: | Size: 121 B |
|
Before Width: | Height: | Size: 180 B |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 351 B |
|
Before Width: | Height: | Size: 598 B |
|
Before Width: | Height: | Size: 350 B |
|
Before Width: | Height: | Size: 413 B |
|
Before Width: | Height: | Size: 1019 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 860 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 289 B |
|
Before Width: | Height: | Size: 716 B |
|
Before Width: | Height: | Size: 337 B |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 83 B |
|
Before Width: | Height: | Size: 712 B |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 299 B |
|
Before Width: | Height: | Size: 1002 B |
|
Before Width: | Height: | Size: 408 B |
|
Before Width: | Height: | Size: 491 B |
|
Before Width: | Height: | Size: 702 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 109 B |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 276 B |
|
Before Width: | Height: | Size: 172 B |
|
Before Width: | Height: | Size: 208 B |
|
Before Width: | Height: | Size: 120 B |
|
Before Width: | Height: | Size: 475 B |
|
Before Width: | Height: | Size: 232 B |
|
Before Width: | Height: | Size: 146 B |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 404 B |
|
Before Width: | Height: | Size: 751 B |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 416 B |
|
Before Width: | Height: | Size: 543 B |
|
Before Width: | Height: | Size: 797 B |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 511 B |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 865 B |
|
Before Width: | Height: | Size: 375 B |
|
Before Width: | Height: | Size: 671 B |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 74 B |
|
Before Width: | Height: | Size: 598 B |
|
Before Width: | Height: | Size: 280 B |
|
Before Width: | Height: | Size: 108 B |
|
Before Width: | Height: | Size: 279 B |
|
Before Width: | Height: | Size: 548 B |