add server version check & auto sync cloud ids on compatible servers

This commit is contained in:
shenlong-tanwen
2025-12-04 22:36:24 +05:30
parent 0a84783841
commit d47e9a5db4
6 changed files with 35 additions and 8 deletions

View File

@@ -10,4 +10,8 @@ class ServerVersion extends SemVer {
}
ServerVersion.fromDto(ServerVersionResponseDto dto) : super(major: dto.major, minor: dto.minor, patch: dto.patch_);
bool isAtLeast({int major = 0, int minor = 0, int patch = 0}) {
return this >= SemVer(major: major, minor: minor, patch: patch);
}
}