diff --git a/lib/build.gradle b/lib/build.gradle index 8a9c0a9656f4c679e8b46e1aeb0f20a2b6136eb6..d3f59c48b6d2fcb730bc34fcf9ba55a23860576b 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -6,7 +6,7 @@ plugins { def versionMajor = 0 def versionMinor = 0 -def versionPatch = 7 +def versionPatch = 8 def releasePatch = "alpha" android { 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 f76d0dd98b7cf5baebd0dcc8a4452b361dc461a7..008fcc7f2578e19e4bfa561f2ee54f62cd400951 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() } }