From f2942588f2516a0c4854c0b529829e67a005e02e Mon Sep 17 00:00:00 2001 From: Sergey Kondrikov Date: Sun, 18 Jun 2023 07:10:57 +0300 Subject: [PATCH] chore(mobile): Add debug build type suffix to the applicationId and version (#2826) --- mobile/android/app/build.gradle | 5 +++++ mobile/lib/shared/providers/server_info.provider.dart | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mobile/android/app/build.gradle b/mobile/android/app/build.gradle index 38ef303b6e..ccf6321402 100644 --- a/mobile/android/app/build.gradle +++ b/mobile/android/app/build.gradle @@ -72,6 +72,11 @@ android { } buildTypes { + debug { + applicationIdSuffix '.debug' + versionNameSuffix '-DEBUG' + } + release { signingConfig signingConfigs.release } diff --git a/mobile/lib/shared/providers/server_info.provider.dart b/mobile/lib/shared/providers/server_info.provider.dart index ae2779adb1..2613b85224 100644 --- a/mobile/lib/shared/providers/server_info.provider.dart +++ b/mobile/lib/shared/providers/server_info.provider.dart @@ -76,7 +76,7 @@ class ServerInfoNotifier extends StateNotifier { return { "major": int.parse(major), "minor": int.parse(minor), - "patch": int.parse(patch), + "patch": int.parse(patch.replaceAll("-DEBUG", "")), }; } }