Add a way to crash this app on demand. Useful to test Crash detection, and analytics report, etc.

This commit is contained in:
Benoit Marty
2023-07-21 20:55:04 +02:00
parent 3e7234f3af
commit 6c9a36f56f

View File

@@ -56,6 +56,12 @@ fun DeveloperSettingsView(
RageshakePreferencesView(
state = state.rageshakeState,
)
PreferenceCategory(title = "Crash", showDivider = false) {
PreferenceText(
title = "Crash the app 💥!,",
onClick = { error("This crash is a test.") }
)
}
val cache = state.cacheSize
PreferenceCategory(title = "Cache", showDivider = false) {
PreferenceText(