chore: possibility to install debug and release versions at the same time (#355)

This commit is contained in:
Diego Beraldin 2023-12-23 08:53:24 +01:00 committed by GitHub
parent 75210e2948
commit 0d0b09af30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 1 deletions

View File

@ -32,7 +32,13 @@ android {
}
}
buildTypes {
getByName("debug") {
resValue("string", "app_name", "Kijetesantakalu for Lemmy")
applicationIdSuffix = ".dev"
extra["enableCrashlytics"] = false
}
getByName("release") {
resValue("string", "app_name", "Raccoon for Lemmy")
isMinifyEnabled = true
setProguardFiles(
listOf(

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFF68300</color>
</resources>

View File

@ -5,7 +5,7 @@
android:name=".MainApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="Raccoon for Lemmy"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.AppSplash">
<activity

View File

@ -29,6 +29,9 @@ class MainApplication : Application(), ImageLoaderFactory {
append(" (")
append(BuildConfig.VERSION_CODE)
append(")")
if (BuildConfig.DEBUG) {
append(" - dev")
}
}
}.apply {
val crashReportWriter: CrashReportWriter by inject()