mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-11 13:05:37 +02:00
feat: Disable selection of un-suggested app version by default (#1471)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
e7d82850c9
commit
70b2ee0a84
7 changed files with 182 additions and 29 deletions
|
@ -34,6 +34,7 @@ class ManagerAPI {
|
|||
Patch? selectedPatch;
|
||||
BuildContext? ctx;
|
||||
bool isRooted = false;
|
||||
bool suggestedAppVersionSelected = true;
|
||||
bool isDynamicThemeAvailable = false;
|
||||
String storedPatchesFile = '/selected-patches.json';
|
||||
String keystoreFile =
|
||||
|
@ -259,6 +260,14 @@ class ManagerAPI {
|
|||
await _prefs.setBool('versionCompatibilityCheckEnabled', value);
|
||||
}
|
||||
|
||||
bool isRequireSuggestedAppVersionEnabled() {
|
||||
return _prefs.getBool('requireSuggestedAppVersionEnabled') ?? true;
|
||||
}
|
||||
|
||||
Future<void> enableRequireSuggestedAppVersionStatus(bool value) async {
|
||||
await _prefs.setBool('requireSuggestedAppVersionEnabled', value);
|
||||
}
|
||||
|
||||
Future<void> setKeystorePassword(String password) async {
|
||||
await _prefs.setString('keystorePassword', password);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue