Skip to content

High performance self-hosted photo and video management solution.

chore(mobile): Add debug build type suffix to the applicationId and version (#2826)

Sergey Kondrikovf2942588f251
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<ServerInfoState> {
return {
"major": int.parse(major),
"minor": int.parse(minor),
- "patch": int.parse(patch),
+ "patch": int.parse(patch.replaceAll("-DEBUG", "")),
};
}
}