mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-11 13:05:37 +02:00
feat: experimental settings to allow patch on any app version.
This commit is contained in:
parent
293f7150f1
commit
ba5234e850
6 changed files with 86 additions and 13 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue