Compare commits

...

11 Commits

6 changed files with 40 additions and 12 deletions

View File

@@ -1,5 +1,14 @@
# Changelog # Changelog
## 1.1.1
* Rollback `KSLog` with `String` arg factory to use `DefaultKSLog`
## 1.1.0
* `Kotlin`: `1.8.20`
* Standard factory `KSLog` with `String` arg now use `TagLogger`
## 1.0.0 ## 1.0.0
* `Kotlin`: `1.8.0` * `Kotlin`: `1.8.0`

View File

@@ -50,6 +50,11 @@ kotlin {
linuxArm64() linuxArm64()
linuxArm32Hfp() linuxArm32Hfp()
linuxX64() linuxX64()
wasm {
browser()
nodejs()
d8()
}
wasm32() wasm32()
mingwX64() mingwX64()
mingwX86() mingwX86()
@@ -60,6 +65,13 @@ kotlin {
implementation libs.kotlin implementation libs.kotlin
} }
} }
commonTest {
dependencies {
implementation libs.kotlin.test.common
implementation libs.kotlin.test.annotations.common
implementation libs.kotlin.test.junit
}
}
} }
} }

View File

@@ -5,10 +5,10 @@ kotlin.incremental=true
kotlin.incremental.js=true kotlin.incremental.js=true
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
org.gradle.jvmargs=-Xmx196m org.gradle.jvmargs=-Xmx512m
# Project data # Project data
group=dev.inmo group=dev.inmo
version=1.0.0 version=1.1.1
android_code_version=18 android_code_version=20

View File

@@ -1,18 +1,18 @@
[versions] [versions]
kotlin = "1.8.0" kotlin = "1.8.20"
kotlin-gradle-plugin = "7.3.0" kotlin-gradle-plugin = "7.3.1"
dokka = "1.7.20" dokka = "1.8.10"
dexcount = "3.1.0" dexcount = "4.0.0"
junit_version = "4.12" junit_version = "4.12"
test_ext_junit_version = "1.1.3" test_ext_junit_version = "1.1.3"
espresso_core = "3.4.0" espresso_core = "3.4.0"
android-minSdk = "21" android-minSdk = "21"
android-compileSdk = "33" android-compileSdk = "33"
android-buildTools = "33.0.0" android-buildTools = "33.0.1"
github-release = "2.4.1" github-release = "2.4.1"

View File

@@ -68,7 +68,11 @@ internal val printlnLogging: (level: LogLevel, tag: String, message: Any, throwa
fun KSLog( fun KSLog(
defaultTag: String, defaultTag: String,
messageFormatter: MessageFormatter = defaultMessageFormatter ): KSLog = DefaultKSLog(defaultTag)
fun KSLog(
defaultTag: String,
messageFormatter: MessageFormatter
): KSLog = DefaultKSLog( ): KSLog = DefaultKSLog(
defaultTag, defaultTag,
messageFormatter messageFormatter
@@ -79,11 +83,10 @@ fun KSLog(
defaultTag: String, defaultTag: String,
filter: MessageFilter, filter: MessageFilter,
messageFormatter: MessageFormatter = defaultMessageFormatter messageFormatter: MessageFormatter = defaultMessageFormatter
): KSLog = DefaultKSLog( ): KSLog = KSLog (
defaultTag, defaultTag,
filter,
messageFormatter messageFormatter
) ).filtered(filter)
fun KSLog( fun KSLog(
defaultTag: String, defaultTag: String,

View File

@@ -0,0 +1,4 @@
package dev.inmo.kslog.common
internal actual val defaultLogging: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit
get() = printlnLogging