use a different id and name for the app when doing a debug build.

This commit is contained in:
fiatjaf
2026-04-29 16:18:33 -03:00
parent 413a06915e
commit e0c2c7c9e9
3 changed files with 16 additions and 4 deletions
+12 -3
View File
@@ -9,15 +9,19 @@ plugins {
}
android {
val baseApplicationId = rootProject.extra["baseApplicationId"] as String
val debugApplicationIdSuffix = rootProject.extra["debugApplicationIdSuffix"] as String
namespace = "com.wisp.app"
compileSdk = 35
defaultConfig {
applicationId = "com.wisp.app"
applicationId = baseApplicationId
minSdk = 26
targetSdk = 35
versionCode = 76
versionName = "1.0.2"
versionCode = 74
versionName = "1.0.0"
resValue("string", "app_name", "Wisp")
ndk {
abiFilters += "arm64-v8a"
@@ -34,6 +38,11 @@ android {
}
buildTypes {
debug {
applicationIdSuffix = debugApplicationIdSuffix
resValue("string", "app_name", "Wisp Debug")
}
release {
isMinifyEnabled = true
isShrinkResources = true
+1 -1
View File
@@ -22,7 +22,7 @@
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="Wisp"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:supportsRtl="true"
android:largeHeap="true"
+3
View File
@@ -1,3 +1,6 @@
extra["baseApplicationId"] = "com.wisp.app"
extra["debugApplicationIdSuffix"] = ".debug"
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false