feat: Do not generate a new keystore each time Patcher runs

This commit is contained in:
Alberto Ponces
2022-09-07 18:25:12 +01:00
parent 825a57ee69
commit 63c1fdf9c5
3 changed files with 13 additions and 6 deletions

View File

@ -18,6 +18,7 @@ class PatcherAPI {
final ManagerAPI _managerAPI = locator<ManagerAPI>();
final RootAPI _rootAPI = RootAPI();
late Directory _tmpDir;
late File _keyStoreFile;
List<Patch> _patches = [];
File? _outFile;
@ -25,6 +26,7 @@ class PatcherAPI {
await _loadPatches();
Directory appCache = await getTemporaryDirectory();
_tmpDir = Directory('${appCache.path}/patcher');
_keyStoreFile = File('${appCache.path}/revanced-manager.keystore');
cleanPatcher();
}
@ -138,6 +140,7 @@ class PatcherAPI {
'cacheDirPath': cacheDir.path,
'mergeIntegrations': mergeIntegrations,
'resourcePatching': resourcePatching,
'keyStoreFilePath': _keyStoreFile.path,
},
);
}