mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 04:37:37 +02:00
feat: make firebase crashlytics optional.
This commit is contained in:
@ -327,6 +327,16 @@ class SettingsViewModel extends BaseViewModel {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
bool isCrashlyticsEnabled() {
|
||||
return _managerAPI.isCrashlyticsEnabled();
|
||||
}
|
||||
|
||||
void useCrashlytics(bool value) {
|
||||
_managerAPI.setCrashlyticsStatus(value);
|
||||
_toast.showBottom('settingsView.restartAppForChanges');
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
Future<int> getSdkVersion() async {
|
||||
AndroidDeviceInfo info = await DeviceInfoPlugin().androidInfo;
|
||||
return info.version.sdkInt ?? -1;
|
||||
|
Reference in New Issue
Block a user