Merge pull request #495 from fiatjaf/debug-build
use a different id and name for the app when doing a debug build
This commit is contained in:
+12
-3
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user