From 39ca0937be1d6235f45f49672ee4c7e15e7fc83e Mon Sep 17 00:00:00 2001 From: SayantanRC Date: Tue, 20 Jun 2023 06:24:18 +0530 Subject: [PATCH 1/2] add reportException --- .../main/java/foundation/e/lib/telemetry/Telemetry.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt b/lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt index 008fcc7..3a31ec0 100644 --- a/lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt +++ b/lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt @@ -84,6 +84,17 @@ object Telemetry { Sentry.captureMessage(message, level) } + /** + * Report an exception. + * Generally called from catch block of try-catch. + * + * @param e: The exception to report. + */ + @JvmStatic + fun reportException(e: Exception) { + Sentry.captureException(e) + } + @Deprecated( "Use isReportingTelemetry()", ReplaceWith("isReportingTelemetry()"), -- GitLab From 311e2d4fa39b971b10f5b17853532cffff688d2d Mon Sep 17 00:00:00 2001 From: SayantanRC Date: Tue, 20 Jun 2023 06:25:01 +0530 Subject: [PATCH 2/2] update version 0.0.9-alpha --- lib/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build.gradle b/lib/build.gradle index d3f59c4..7bd2508 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -6,7 +6,7 @@ plugins { def versionMajor = 0 def versionMinor = 0 -def versionPatch = 8 +def versionPatch = 9 def releasePatch = "alpha" android { -- GitLab