Log app scope failures instead of crashing outside debug builds

This commit is contained in:
AntsyLich
2026-10-10 22:51:17 +06:00
parent a82d27c3a6
commit f9c5fa9011
4 changed files with 28 additions and 1 deletions
@@ -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
}