mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-16 13:48:09 -07:00
Log app scope failures instead of crashing outside debug builds
This commit is contained in:
@@ -59,6 +59,10 @@ object TelemetryConfig {
|
||||
.getCertificateFingerprints()
|
||||
.any { it == MIHON_CERTIFICATE_FINGERPRINT }
|
||||
}
|
||||
|
||||
fun recordException(throwable: Throwable) {
|
||||
crashlytics?.recordException(throwable)
|
||||
}
|
||||
}
|
||||
|
||||
private val MIHON_PACKAGES = hashSetOf("app.mihon", "app.mihon.debug")
|
||||
|
||||
@@ -9,4 +9,6 @@ object TelemetryConfig {
|
||||
fun setAnalyticsEnabled(enabled: Boolean) = Unit
|
||||
|
||||
fun setCrashlyticsEnabled(enabled: Boolean) = Unit
|
||||
|
||||
fun recordException(throwable: Throwable) = Unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user