feat: working resource patching

This commit is contained in:
Alberto Ponces
2022-08-19 19:13:43 +01:00
parent e373aef2d9
commit 4b2806c519
8 changed files with 107 additions and 64 deletions

View File

@ -89,7 +89,7 @@ class HomeViewModel extends BaseViewModel {
toastLength: Toast.LENGTH_LONG,
gravity: ToastGravity.CENTER,
);
File? managerApk = await _managerAPI.downloadManager();
File? managerApk = await _managerAPI.downloadManager('.apk');
if (managerApk != null) {
flutterLocalNotificationsPlugin.show(
0,

View File

@ -111,7 +111,7 @@ class InstallerViewModel extends BaseViewModel {
'com.google.android.apps.youtube.music') {
resourcePatching = true;
}
await _patcherAPI.initPatcher(mergeIntegrations);
await _patcherAPI.mergeIntegrations(mergeIntegrations);
await _patcherAPI.runPatcher(
apkFilePath,
_patches,