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

(cherry picked from commit 7c7af72f8cb12decc06b76c36852dcc54696236d)

# Conflicts:
#	app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsSecurityScreen.kt
#	app/src/standard/AndroidManifest.xml
This commit is contained in:
Roshan Varughese
2024-10-12 13:46:28 +13:00
committed by Jobobby04
parent f6d2d0bd48
commit 2bd9a914c1
9 changed files with 276 additions and 132 deletions
@@ -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)
}