fix: if .dev is exist in the version do not show update needed

This commit is contained in:
Hiddify
2023-09-15 16:51:39 +02:00
parent 2fe2ef98ed
commit 31423a8aa7

View File

@@ -21,11 +21,13 @@ class AppUpdateNotifier extends _$AppUpdateNotifier with AppLogger {
throw l;
},
(remote) {
if (remote.version.compareTo(currentVersion) > 0) {
if (remote.version.replaceAll(".dev", "").compareTo(currentVersion) >
0) {
loggy.info("new version available: $remote");
return remote;
}
loggy.info("already using latest version[$currentVersion], remote: $remote");
loggy.info(
"already using latest version[$currentVersion], remote: $remote");
return null;
},
).run();