diff --git a/lib/build.gradle b/lib/build.gradle index 10793d2cf4378f15b9b6b0093d964f222f10d2de..c8131c9913b5e2c3d389894f99baee0926cce160 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -7,7 +7,7 @@ plugins { def versionMajor = 0 def versionMinor = 0 -def versionPatch = 3 +def versionPatch = 4 def releasePatch = "alpha" 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 1ad424e0a91e349dbc665fa04e5ce2d7c935acf2..5fc36391173088e32e407a18a6ba79bd769af1a0 100644 --- a/lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt +++ b/lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt @@ -16,7 +16,7 @@ object Telemetry { */ fun init(identifier: String, application: Application) { this.identifier = identifier - if (shouldEnableSentry(application)) { + if (isTelemetryEnabled(application)) { SentryAndroid.init(application) { options -> options.dsn = identifier } @@ -35,7 +35,7 @@ object Telemetry { * Read from OS developer options. * Pass false by default. */ - private fun shouldEnableSentry(application: Application): Boolean { + fun isTelemetryEnabled(application: Application): Boolean { return try { Settings.System.getInt(application.contentResolver, SETTINGS_TELEMETRY_FIELD) == 1 } catch (e: Settings.SettingNotFoundException) {