Skip to content

Commit

Permalink
chore(mobile): Add debug build type suffix to the applicationId and v…
Browse files Browse the repository at this point in the history
…ersion (immich-app#2826)
  • Loading branch information
brighteyed authored Jun 18, 2023
1 parent b47027e commit f294258
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mobile/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ android {
}

buildTypes {
debug {
applicationIdSuffix '.debug'
versionNameSuffix '-DEBUG'
}

release {
signingConfig signingConfigs.release
}
Expand Down
2 changes: 1 addition & 1 deletion mobile/lib/shared/providers/server_info.provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")),
};
}
}
Expand Down

0 comments on commit f294258

Please sign in to comment.