Compare commits

...

11 Commits

6 changed files with 40 additions and 12 deletions

View File

@@ -1,5 +1,14 @@
# 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
* `Kotlin`: `1.8.0`

View File

@@ -50,6 +50,11 @@ kotlin {
linuxArm64()
linuxArm32Hfp()
linuxX64()
wasm {
browser()
nodejs()
d8()
}
wasm32()
mingwX64()
mingwX86()
@@ -60,6 +65,13 @@ 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
android.useAndroidX=true
android.enableJetifier=true
org.gradle.jvmargs=-Xmx196m
org.gradle.jvmargs=-Xmx512m
# Project data
group=dev.inmo
version=1.0.0
android_code_version=18
version=1.1.1
android_code_version=20

View File

@@ -1,18 +1,18 @@
[versions]
kotlin = "1.8.0"
kotlin-gradle-plugin = "7.3.0"
kotlin = "1.8.20"
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"
test_ext_junit_version = "1.1.3"
espresso_core = "3.4.0"
android-minSdk = "21"
android-compileSdk = "33"
android-buildTools = "33.0.0"
android-buildTools = "33.0.1"
github-release = "2.4.1"

View File

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