From fd20b5d91e2dfd8b95d36d6fb33ec37e137fdbb6 Mon Sep 17 00:00:00 2001 From: Robin Schanbacher Date: Sun, 4 Oct 2026 15:53:24 +0200 Subject: [PATCH] chore: debug/dev builds besides normal builds --- app/build.gradle.kts | 6 +++++- app/src/debug/res/values/strings.xml | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 app/src/debug/res/values/strings.xml diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 365304d..f9a06a1 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -24,7 +24,7 @@ android { applicationId = "de.schanbro.weekfocus" minSdk = 29 targetSdk = 37 - versionCode = major * 10000 + minor * 100 + patch + versionCode = (major * 10000 + minor * 100 + patch).coerceAtLeast(1) versionName = tagVersion testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" @@ -43,6 +43,10 @@ android { } buildTypes { + debug { + applicationIdSuffix = ".debug" + versionNameSuffix = "-dev" + } release { signingConfig = signingConfigs.getByName("release") optimization { diff --git a/app/src/debug/res/values/strings.xml b/app/src/debug/res/values/strings.xml new file mode 100644 index 0000000..b27befc --- /dev/null +++ b/app/src/debug/res/values/strings.xml @@ -0,0 +1,4 @@ + + + WeekFocus-dev +