mirror of
https://github.com/immich-app/immich.git
synced 2025-08-11 09:16:31 -04:00
* chore: bump dart sdk to 3.8 * chore: make build * make pigeon * chore: format files --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
13 lines
452 B
Dart
13 lines
452 B
Dart
String? getVersionCompatibilityMessage(int appMajor, int appMinor, int serverMajor, int serverMinor) {
|
|
if (serverMajor != appMajor) {
|
|
return 'Your app major version is not compatible with the server!';
|
|
}
|
|
|
|
// Add latest compat info up top
|
|
if (serverMinor < 106 && appMinor >= 106) {
|
|
return 'Your app minor version is not compatible with the server! Please update your server to version v1.106.0 or newer to login';
|
|
}
|
|
|
|
return null;
|
|
}
|