Implement the automatic update check and installation

This commit is contained in:
zontreck 2025-05-14 19:05:09 -07:00
parent 70d8fc4d39
commit 660a4a670a
10 changed files with 176 additions and 122 deletions

View file

@ -0,0 +1,13 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:timetrack/consts.dart';
void main() {
test("Test the update checking behavior", () async {
await TTConsts.checkUpdate();
if (TTConsts.UPDATE_AVAILABLE) {
print("An update is available for the current update channel");
} else {
print("No updates available");
}
});
}