if current version first version number is larger then remote version, or if first version is less than/equal to remote version and second number is bigger, don't show dialog (#1240)

This commit is contained in:
ggurdin 2024-12-13 11:51:03 -05:00 committed by GitHub
parent d03698ff93
commit d41dd35075
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,6 +70,15 @@ class AppVersionController {
final currentBuildNumberInt = int.parse(currentBuildNumber);
final remoteBuildNumberInt = int.parse(remoteBuildNumber);
if (currentVersionParts[0] > remoteVersionParts[0]) {
return;
}
if (currentVersionParts[0] == remoteVersionParts[0] &&
currentVersionParts[1] > remoteVersionParts[1]) {
return;
}
// indicates if the current version is older than the remote version
bool isOlderCurrentVersion = false;
bool isDifferentVersion = false;