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:
parent
d03698ff93
commit
d41dd35075
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue