feat: ability to delete keystores.

This commit is contained in:
Aunali321
2022-10-17 00:22:07 +05:30
parent 331691cc9d
commit 9de063aced
4 changed files with 34 additions and 1 deletions

View File

@@ -337,6 +337,12 @@ class SettingsViewModel extends BaseViewModel {
notifyListeners();
}
void deleteKeystore() {
_managerAPI.deleteKeystore();
_toast.showBottom('settingsView.deletedKeystore');
notifyListeners();
}
Future<int> getSdkVersion() async {
AndroidDeviceInfo info = await DeviceInfoPlugin().androidInfo;
return info.version.sdkInt ?? -1;