From 0d0b09af3098dfcf9807c7377433af81acb7893c Mon Sep 17 00:00:00 2001 From: Diego Beraldin Date: Sat, 23 Dec 2023 08:53:24 +0100 Subject: [PATCH] chore: possibility to install debug and release versions at the same time (#355) --- androidApp/build.gradle.kts | 6 ++++++ androidApp/src/debug/res/values/colors.xml | 4 ++++ androidApp/src/main/AndroidManifest.xml | 2 +- .../raccoonforlemmy/android/MainApplication.kt | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 androidApp/src/debug/res/values/colors.xml diff --git a/androidApp/build.gradle.kts b/androidApp/build.gradle.kts index a3aa56389..cab032a89 100644 --- a/androidApp/build.gradle.kts +++ b/androidApp/build.gradle.kts @@ -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( diff --git a/androidApp/src/debug/res/values/colors.xml b/androidApp/src/debug/res/values/colors.xml new file mode 100644 index 000000000..a9ef9657f --- /dev/null +++ b/androidApp/src/debug/res/values/colors.xml @@ -0,0 +1,4 @@ + + + #FFF68300 + \ No newline at end of file diff --git a/androidApp/src/main/AndroidManifest.xml b/androidApp/src/main/AndroidManifest.xml index 0785d1d8a..ffd085d14 100644 --- a/androidApp/src/main/AndroidManifest.xml +++ b/androidApp/src/main/AndroidManifest.xml @@ -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">