mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 04:37:37 +02:00
feat: Add ReVanced API and implement cache on it and on Github API
This commit is contained in:
@ -46,10 +46,11 @@ class InstallerViewModel extends BaseViewModel {
|
||||
),
|
||||
);
|
||||
await FlutterBackground.enableBackgroundExecution();
|
||||
} finally {
|
||||
await handlePlatformChannelMethods();
|
||||
await runPatcher();
|
||||
} on Exception {
|
||||
// ignore
|
||||
}
|
||||
await handlePlatformChannelMethods();
|
||||
await runPatcher();
|
||||
}
|
||||
|
||||
Future<dynamic> handlePlatformChannelMethods() async {
|
||||
@ -118,10 +119,13 @@ class InstallerViewModel extends BaseViewModel {
|
||||
update(1.0, 'Aborting...', 'No app or patches selected! Aborting');
|
||||
}
|
||||
try {
|
||||
await FlutterBackground.disableBackgroundExecution();
|
||||
} finally {
|
||||
isPatching = false;
|
||||
if (FlutterBackground.isBackgroundExecutionEnabled) {
|
||||
await FlutterBackground.disableBackgroundExecution();
|
||||
}
|
||||
} on Exception {
|
||||
// ignore
|
||||
}
|
||||
isPatching = false;
|
||||
}
|
||||
|
||||
void installResult(bool installAsRoot) async {
|
||||
|
Reference in New Issue
Block a user