feat: experimental settings to allow patch on any app version.

This commit is contained in:
Aunali321 2022-11-01 15:26:15 +05:30
parent 293f7150f1
commit ba5234e850
6 changed files with 86 additions and 13 deletions

View file

@ -90,6 +90,14 @@ class ManagerAPI {
// await _prefs.setBool('sentryEnabled', value);
// }
bool areExperimentalPatchesEnabled() {
return _prefs.getBool('experimentalPatchesEnabled') ?? false;
}
Future<void> enableExperimentalPatchesStatus(bool value) async {
await _prefs.setBool('experimentalPatchesEnabled', value);
}
Future<void> deleteTempFolder() async {
final Directory dir = Directory('/data/local/tmp/revanced-manager');
if (await dir.exists()) {