From 0eb58387b0327fc957ee8e8fddc2fef380fa5ee9 Mon Sep 17 00:00:00 2001 From: Paul Rybitskyi Date: Wed, 23 Oct 2024 21:58:14 +0300 Subject: [PATCH] Add suffix to debug build package name (#248) --- .../gamedge/plugins/GamedgeAndroidPlugin.kt | 4 ++++ core/src/debug/res/values/strings.xml | 21 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 core/src/debug/res/values/strings.xml diff --git a/buildSrc/src/main/java/com/paulrybitskyi/gamedge/plugins/GamedgeAndroidPlugin.kt b/buildSrc/src/main/java/com/paulrybitskyi/gamedge/plugins/GamedgeAndroidPlugin.kt index 9a887afc..59861d42 100644 --- a/buildSrc/src/main/java/com/paulrybitskyi/gamedge/plugins/GamedgeAndroidPlugin.kt +++ b/buildSrc/src/main/java/com/paulrybitskyi/gamedge/plugins/GamedgeAndroidPlugin.kt @@ -30,6 +30,7 @@ class GamedgeAndroidPlugin : Plugin { private companion object { const val APPLICATION_ID = "com.paulrybitskyi.gamedge" const val BUILD_TYPE_DEBUG = "debug" + const val BUILD_TYPE_DEBUG_SUFFIX = ".debug" const val BUILD_TYPE_RELEASE = "release" const val SIGNING_CONFIG_RELEASE = "release" const val KEYSTORE_FILE_NAME = "keystore.properties" @@ -131,6 +132,9 @@ class GamedgeAndroidPlugin : Plugin { } buildTypes { + getByName(BUILD_TYPE_DEBUG) { + applicationIdSuffix = BUILD_TYPE_DEBUG_SUFFIX + } getByName(BUILD_TYPE_RELEASE) { isMinifyEnabled = true signingConfig = signingConfigs.getByName(SIGNING_CONFIG_RELEASE) diff --git a/core/src/debug/res/values/strings.xml b/core/src/debug/res/values/strings.xml new file mode 100644 index 00000000..05dbf261 --- /dev/null +++ b/core/src/debug/res/values/strings.xml @@ -0,0 +1,21 @@ + + + + + + Gamedge Dev +