Skip to content

Commit

Permalink
Update plugin kotlinter to v4.4.0 (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
juul-mobile-bot authored Jul 8, 2024
1 parent 5908e36 commit 2e8c54c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true

ktlint_standard_blank-line-before-declaration = disabled
ktlint_standard_class-signature = disabled
ktlint_standard_filename = disabled
ktlint_standard_function-signature = disabled
ktlint_standard_no-blank-line-in-list = disabled
Expand Down
3 changes: 2 additions & 1 deletion bundled/src/androidMain/kotlin/DatadogInitializer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public actual class DatadogInitializer(
}

private fun Configuration.toDatadogType(variant: String): DatadogConfiguration =
DatadogConfiguration.Builder(clientToken, environment, variant, service)
DatadogConfiguration
.Builder(clientToken, environment, variant, service)
.useSite(site.toDatadogType())
.build()

Expand Down
6 changes: 3 additions & 3 deletions bundled/src/androidMain/kotlin/DatadogLogger.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public actual class DatadogLogger actual constructor(
configuration: LoggerConfiguration?,
) : JvmLogger, TagHandler {

private val logger: DatadogLogger = DatadogLogger.Builder()
private val logger: DatadogLogger = DatadogLogger
.Builder()
.setName(name)
.setRemoteLogThreshold(level?.toDatadogType() ?: ALL)
.apply {
Expand All @@ -30,8 +31,7 @@ public actual class DatadogLogger actual constructor(
setRemoteSampleRate(configuration.remoteSampleRate)
setLogcatLogsEnabled(configuration.logToConsole)
}
}
.build()
}.build()

actual override fun log(level: Logger.Level, message: String, attributes: Map<String, Any?>?, throwable: Throwable?) {
when (level) {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ nserrorkt = { module = "com.rickclephas.kmp:nserror-kt", version = "0.2.0" }
android-library = { id = "com.android.library", version = "8.5.0" }
api = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.14.0" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version = "2.0.0" }
kotlinter = { id = "org.jmailen.kotlinter", version = "4.3.0" }
kotlinter = { id = "org.jmailen.kotlinter", version = "4.4.0" }
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.29.0" }
swiftpackage = { id = "io.github.luca992.multiplatform-swiftpackage", version = "2.2.3" }

0 comments on commit 2e8c54c

Please sign in to comment.