Add option to opt out of Analytics and Crashlytics (#1237)

This commit is contained in:
Roshan Varughese
2024-10-12 13:46:28 +13:00
committed by GitHub
parent c8bb78d91a
commit 7c7af72f8c
9 changed files with 200 additions and 45 deletions

View File

@ -0,0 +1,11 @@
package eu.kanade.tachiyomi.core.security
import tachiyomi.core.common.preference.PreferenceStore
class PrivacyPreferences(
private val preferenceStore: PreferenceStore,
) {
fun crashlytics() = preferenceStore.getBoolean("crashlytics", true)
fun analytics() = preferenceStore.getBoolean("analytics", true)
}