From 74d4e3b4f011761f34a9b86fc102cda1d42fba3c Mon Sep 17 00:00:00 2001 From: Sergej Shafarenka Date: Mon, 15 Jul 2024 13:01:21 +0200 Subject: [PATCH] Release 0.4 --- README.md | 3 ++- .../src/main/kotlin/root.publication.gradle.kts | 2 +- .../commonTest/kotlin/de/halfbit/logger/LogExceptionsTest.kt | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c73ca9b..2057696 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ In `gradle/libs.versions.toml` ```toml [versions] kotlin = "2.0.0" -logger = "0.3" +logger = "0.4" [libraries] logger = { module = "de.halfbit:logger", version.ref = "logger" } @@ -82,6 +82,7 @@ kotlin { # Release Notes +- 0.4 Migrate to the Apache 2.0 license. - 0.3 MemoryRingSink prints log entries lazily. - 0.2 Improve log layouts for Println and MemoryRing sinks. - 0.1 Initial release diff --git a/convention-plugins/src/main/kotlin/root.publication.gradle.kts b/convention-plugins/src/main/kotlin/root.publication.gradle.kts index cdaf529..d1398d7 100644 --- a/convention-plugins/src/main/kotlin/root.publication.gradle.kts +++ b/convention-plugins/src/main/kotlin/root.publication.gradle.kts @@ -4,5 +4,5 @@ plugins { allprojects { group = "de.halfbit" - version = "0.3" + version = "0.4" } diff --git a/logger/src/commonTest/kotlin/de/halfbit/logger/LogExceptionsTest.kt b/logger/src/commonTest/kotlin/de/halfbit/logger/LogExceptionsTest.kt index 4aa6e8a..cfcef5b 100644 --- a/logger/src/commonTest/kotlin/de/halfbit/logger/LogExceptionsTest.kt +++ b/logger/src/commonTest/kotlin/de/halfbit/logger/LogExceptionsTest.kt @@ -36,8 +36,9 @@ class LogExceptionsTest { val actualException = stackTrace[1] assertTrue("Cannot find exception in: $actualException") { - actualException.contains("java.lang.Exception") || // jvm - actualException.contains("kotlin.Exception") // ios + actualException.contains("Exception") || + actualException.contains("captureStack@") // js (firefox) + } } }