mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 20:57:36 +02:00
feat: make firebase crashlytics optional.
This commit is contained in:
@ -91,6 +91,15 @@ class ManagerAPI {
|
||||
print('Sentry status: $value');
|
||||
}
|
||||
|
||||
bool isCrashlyticsEnabled() {
|
||||
return _prefs.getBool('crashlyticsEnabled') ?? true;
|
||||
}
|
||||
|
||||
Future<void> setCrashlyticsStatus(bool value) async {
|
||||
await _prefs.setBool('crashlyticsEnabled', value);
|
||||
print('Crashlytics status: $value');
|
||||
}
|
||||
|
||||
List<PatchedApplication> getPatchedApps() {
|
||||
List<String> apps = _prefs.getStringList('patchedApps') ?? [];
|
||||
return apps.map((a) => PatchedApplication.fromJson(jsonDecode(a))).toList();
|
||||
|
Reference in New Issue
Block a user