fix(mobile): background backup not working in release mode (#664)

This commit is contained in:
Alex 2022-09-10 11:46:51 -05:00 committed by GitHub
parent cc4881d633
commit f88ff4fb5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 12 deletions

View file

@ -173,7 +173,8 @@ class BackgroundService {
}
} catch (error) {
debugPrint(
"[_clearErrorNotifications] failed to communicate with plugin");
"[_clearErrorNotifications] failed to communicate with plugin",
);
}
return false;
}
@ -344,7 +345,9 @@ class BackgroundService {
}
Future<bool> _runBackup(
BackupService backupService, HiveBackupAlbums backupAlbumInfo) async {
BackupService backupService,
HiveBackupAlbums backupAlbumInfo,
) async {
_errorGracePeriodExceeded = _isErrorGracePeriodExceeded();
if (_canceledBySystem) {
@ -445,6 +448,7 @@ class BackgroundService {
}
/// entry point called by Kotlin/Java code; needs to be a top-level function
@pragma('vm:entry-point')
void _nativeEntry() {
WidgetsFlutterBinding.ensureInitialized();
BackgroundService backgroundService = BackgroundService();