mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-11 13:05:37 +02:00
feat: make firebase crashlytics optional.
This commit is contained in:
parent
79aca0e579
commit
f31a60d9bb
5 changed files with 58 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue