This commit is contained in:
unknown 2021-09-11 19:26:53 +02:00
parent 0471843919
commit abf9f9b13d
No known key found for this signature in database
GPG Key ID: 1D070E0B09CFB257
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ import 'package:open_file/open_file.dart';
enum UpdateState { prepare, downloading, installing }
typedef UpdateCallback = Function(double progress, UpdateState state);
// TODO: cleanup old apk files
extension UpdateHelper on Release {
Future<void> install({UpdateCallback? updateCallback}) async {
String downloads = await StorageHelper.downloadsPath();

@ -1 +1 @@
Subproject commit b301aee9d0722d7fbdb2ebad8e7176a4baf1d4f2
Subproject commit 6ba35d8050c65100ab71cb84012f012323c7e035