From c6b5062f10b8093466e781d564a9f1298596c31a Mon Sep 17 00:00:00 2001 From: Joseph Roque Date: Mon, 29 Jul 2024 23:46:46 -0700 Subject: [PATCH] chore(android): add captureMessage to ErrorReporting module --- .../josephroque/bowlingcompanion/core/error/ErrorReporting.kt | 1 + .../bowlingcompanion/core/error/SentryErrorReporting.kt | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/android/core/error/src/main/kotlin/ca/josephroque/bowlingcompanion/core/error/ErrorReporting.kt b/android/core/error/src/main/kotlin/ca/josephroque/bowlingcompanion/core/error/ErrorReporting.kt index c2e46f6de..b7f9ff3fd 100644 --- a/android/core/error/src/main/kotlin/ca/josephroque/bowlingcompanion/core/error/ErrorReporting.kt +++ b/android/core/error/src/main/kotlin/ca/josephroque/bowlingcompanion/core/error/ErrorReporting.kt @@ -2,4 +2,5 @@ package ca.josephroque.bowlingcompanion.core.error interface ErrorReporting { fun captureException(throwable: Throwable) + fun captureMessage(message: String) } diff --git a/android/core/error/src/main/kotlin/ca/josephroque/bowlingcompanion/core/error/SentryErrorReporting.kt b/android/core/error/src/main/kotlin/ca/josephroque/bowlingcompanion/core/error/SentryErrorReporting.kt index 6a6448dee..da4f696e3 100644 --- a/android/core/error/src/main/kotlin/ca/josephroque/bowlingcompanion/core/error/SentryErrorReporting.kt +++ b/android/core/error/src/main/kotlin/ca/josephroque/bowlingcompanion/core/error/SentryErrorReporting.kt @@ -7,4 +7,8 @@ class SentryErrorReporting @Inject constructor() : ErrorReporting { override fun captureException(throwable: Throwable) { Sentry.captureException(throwable) } + + override fun captureMessage(message: String) { + Sentry.captureMessage(message) + } }