From c5974fb51c05c84cf4af39fc94c0394109726c00 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 12 Apr 2023 22:33:22 +0600 Subject: [PATCH 1/3] start 1.1.0 --- CHANGELOG.md | 2 ++ gradle.properties | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc1b635..50b26fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 1.1.0 + ## 1.0.0 * `Kotlin`: `1.8.0` diff --git a/gradle.properties b/gradle.properties index bcf34e7..fa2f84b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,5 +10,5 @@ org.gradle.jvmargs=-Xmx512m # Project data group=dev.inmo -version=1.0.0 -android_code_version=18 +version=1.1.0 +android_code_version=19 From a2b497d0f9a960c7ed590a6c5b350c25b2931a11 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 12 Apr 2023 22:35:34 +0600 Subject: [PATCH 2/3] update dependencies --- CHANGELOG.md | 2 ++ gradle/libs.versions.toml | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50b26fa..df1c20c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 1.1.0 +* `Kotlin`: `1.8.20` + ## 1.0.0 * `Kotlin`: `1.8.0` diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c56bcb9..563ef2b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ [versions] -kotlin = "1.8.0" -kotlin-gradle-plugin = "7.3.0" +kotlin = "1.8.20" +kotlin-gradle-plugin = "7.3.1" dokka = "1.8.10" @@ -12,7 +12,7 @@ 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" From a71405aff5bb6fa62086e875413c81416521c149 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 12 Apr 2023 22:42:17 +0600 Subject: [PATCH 3/3] small improvements in KSLog --- CHANGELOG.md | 1 + src/commonMain/kotlin/KSLog.kt | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df1c20c..0fb18a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.1.0 * `Kotlin`: `1.8.20` +* Standard factory `KSLog` with `String` arg now use `TagLogger` ## 1.0.0 diff --git a/src/commonMain/kotlin/KSLog.kt b/src/commonMain/kotlin/KSLog.kt index 60fe5d0..2629e5c 100644 --- a/src/commonMain/kotlin/KSLog.kt +++ b/src/commonMain/kotlin/KSLog.kt @@ -68,7 +68,11 @@ internal val printlnLogging: (level: LogLevel, tag: String, message: Any, throwa fun KSLog( defaultTag: String, - messageFormatter: MessageFormatter = defaultMessageFormatter +): KSLog = TagLogger(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,