From 5df11b67a0a46396c97b919e598887ec2eccf759 Mon Sep 17 00:00:00 2001 From: SayantanRC Date: Thu, 4 May 2023 20:44:37 +0530 Subject: [PATCH 1/3] surround Sentry initialization with try-catch --- .../foundation/e/lib/telemetry/Telemetry.kt | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) 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 f76d0dd..008fcc7 100644 --- a/lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt +++ b/lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt @@ -38,23 +38,27 @@ object Telemetry { String() } - SentryAndroid.init(application) { options -> - options.dsn = sentryDsn - options.addIntegration( - SentryTimberIntegration( - minEventLevel = SentryLevel.ERROR, - minBreadcrumbLevel = SentryLevel.INFO + try { + SentryAndroid.init(application) { options -> + options.dsn = sentryDsn + options.addIntegration( + SentryTimberIntegration( + minEventLevel = SentryLevel.ERROR, + minBreadcrumbLevel = SentryLevel.INFO + ) ) - ) - } + } - Sentry.configureScope { - if (enableOsTag) { - val eVersion = getSystemProperty(Constants.PROPERTY_OS_VERSION) ?: "" - it.setTag(Constants.TAG_E_VERSION, eVersion) - } else { - it.removeTag(Constants.TAG_E_VERSION) + Sentry.configureScope { + if (enableOsTag) { + val eVersion = getSystemProperty(Constants.PROPERTY_OS_VERSION) ?: "" + it.setTag(Constants.TAG_E_VERSION, eVersion) + } else { + it.removeTag(Constants.TAG_E_VERSION) + } } + } catch (e: Exception) { + e.printStackTrace() } } -- GitLab From c307d91901dca3eb066860eea0e13ca79dcc9567 Mon Sep 17 00:00:00 2001 From: SayantanRC Date: Thu, 4 May 2023 20:45:46 +0530 Subject: [PATCH 2/3] update version 0.0.8-test --- lib/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/build.gradle b/lib/build.gradle index 8a9c0a9..3c4f51b 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -6,8 +6,8 @@ plugins { def versionMajor = 0 def versionMinor = 0 -def versionPatch = 7 -def releasePatch = "alpha" +def versionPatch = 8 +def releasePatch = "test" android { namespace 'foundation.e.lib.telemetry' -- GitLab From 885493922d8c2b4b50a6cfc679e73fa26538e6d9 Mon Sep 17 00:00:00 2001 From: SayantanRC Date: Thu, 4 May 2023 21:14:46 +0530 Subject: [PATCH 3/3] update version 0.0.8-alpha --- lib/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build.gradle b/lib/build.gradle index 3c4f51b..d3f59c4 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -7,7 +7,7 @@ plugins { def versionMajor = 0 def versionMinor = 0 def versionPatch = 8 -def releasePatch = "test" +def releasePatch = "alpha" android { namespace 'foundation.e.lib.telemetry' -- GitLab