Loading lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt +9 −8 Original line number Diff line number Diff line Loading @@ -31,10 +31,12 @@ object Telemetry { this.enableOsTag = enableOsTag this.isTelemetryEnabled = checkTelemetryDeveloperOption() if (isTelemetryEnabled) { val sentryDsn = if (isTelemetryEnabled) identifier else String() SentryAndroid.init(application) { options -> options.dsn = identifier } options.dsn = sentryDsn } Sentry.configureScope { Loading Loading @@ -65,10 +67,8 @@ object Telemetry { * telemetry from developer options is turned off. * In this case, disable telemetry. */ SentryAndroid.init(application) { options -> options.dsn = "" } isTelemetryEnabled = false Sentry.endSession() init(identifier, application, enableOsTag) } else if (!isTelemetryEnabled && checkTelemetryDeveloperOption()) { println("Testingggg: enable") Loading @@ -76,6 +76,7 @@ object Telemetry { * Just the opposite of the above case. * Re-initialise to auto enable. */ Sentry.endSession() init(identifier, application, enableOsTag) } Loading Loading
lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt +9 −8 Original line number Diff line number Diff line Loading @@ -31,10 +31,12 @@ object Telemetry { this.enableOsTag = enableOsTag this.isTelemetryEnabled = checkTelemetryDeveloperOption() if (isTelemetryEnabled) { val sentryDsn = if (isTelemetryEnabled) identifier else String() SentryAndroid.init(application) { options -> options.dsn = identifier } options.dsn = sentryDsn } Sentry.configureScope { Loading Loading @@ -65,10 +67,8 @@ object Telemetry { * telemetry from developer options is turned off. * In this case, disable telemetry. */ SentryAndroid.init(application) { options -> options.dsn = "" } isTelemetryEnabled = false Sentry.endSession() init(identifier, application, enableOsTag) } else if (!isTelemetryEnabled && checkTelemetryDeveloperOption()) { println("Testingggg: enable") Loading @@ -76,6 +76,7 @@ object Telemetry { * Just the opposite of the above case. * Re-initialise to auto enable. */ Sentry.endSession() init(identifier, application, enableOsTag) } Loading