Loading lib/build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ plugins { def versionMajor = 0 def versionMinor = 0 def versionPatch = 3 def versionPatch = 4 def releasePatch = "alpha" Loading lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt +2 −2 Original line number Diff line number Diff line Loading @@ -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 } Loading @@ -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) { Loading Loading
lib/build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ plugins { def versionMajor = 0 def versionMinor = 0 def versionPatch = 3 def versionPatch = 4 def releasePatch = "alpha" Loading
lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt +2 −2 Original line number Diff line number Diff line Loading @@ -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 } Loading @@ -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) { Loading