From a29c0602628389f1109ac5e6ac4401d84e9e7d08 Mon Sep 17 00:00:00 2001 From: samosvalishe Date: Wed, 8 Jul 2026 00:38:12 +0300 Subject: [PATCH] =?UTF-8?q?build(debug):=20=D0=BE=D1=82=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=8B=D0=B9=20applicationId=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20debug-=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Суффикс .debug + versionNameSuffix + своё имя на лаунчере - debug ставится рядом с релизом. Копия shortcuts.xml с debug-пакетом, иначе система отбрасывает статические шорткаты. --- app/build.gradle.kts | 7 +++++++ app/src/debug/res/xml/shortcuts.xml | 25 +++++++++++++++++++++++++ app/src/main/AndroidManifest.xml | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 app/src/debug/res/xml/shortcuts.xml diff --git a/app/build.gradle.kts b/app/build.gradle.kts index df05140..f38e746 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -41,6 +41,7 @@ android { buildFeatures { compose = true + resValues = true } signingConfigs { @@ -55,7 +56,13 @@ android { } buildTypes { + debug { + applicationIdSuffix = ".debug" + versionNameSuffix = "-debug" + resValue("string", "app_name", "FreeTurn Debug") + } release { + resValue("string", "app_name", "FreeTurn") signingConfig = signingConfigs.findByName("release") isMinifyEnabled = true isShrinkResources = true diff --git a/app/src/debug/res/xml/shortcuts.xml b/app/src/debug/res/xml/shortcuts.xml new file mode 100644 index 0000000..dc42d6d --- /dev/null +++ b/app/src/debug/res/xml/shortcuts.xml @@ -0,0 +1,25 @@ + + + + + + + + + diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d337f8b..a82042f 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -39,7 +39,7 @@ android:dataExtractionRules="@xml/data_extraction_rules" android:fullBackupContent="@xml/backup_rules" android:icon="@mipmap/ic_launcher" - android:label="FreeTurn" + android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config"