Implement the automatic update check and installation
This commit is contained in:
parent
70d8fc4d39
commit
660a4a670a
10 changed files with 176 additions and 122 deletions
13
test/test_update_checker.dart
Normal file
13
test/test_update_checker.dart
Normal 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");
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue