From 2849db57f2b6ba2f6a9ca2e73f52954d6d15b525 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 12 Nov 2025 18:01:11 +0600 Subject: [PATCH 1/4] start 0.26.8 --- CHANGELOG.md | 2 ++ gradle.properties | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 144bfe91565..34159b41688 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 0.26.8 + ## 0.26.7 * `Versions`: diff --git a/gradle.properties b/gradle.properties index ad67b9865ca..62359e05cba 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,5 +18,5 @@ crypto_js_version=4.1.1 # Project data group=dev.inmo -version=0.26.7 -android_code_version=306 +version=0.26.8 +android_code_version=307 From 80953f5d09373037ef3ee124e3711d252be64935 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 12 Nov 2025 18:17:00 +0600 Subject: [PATCH 2/4] update ktor and android script config --- gradle/libs.versions.toml | 12 ++++++------ gradle/templates/enableMPPAndroid.gradle | 5 ++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index cfe1d0ac472..afbcda87547 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -6,9 +6,9 @@ kt-coroutines = "1.10.2" kotlinx-browser = "0.5.0" -kslog = "1.5.1" +kslog = "1.5.2" -jb-compose = "1.9.2" +jb-compose = "1.9.3" jb-compose-material3 = "1.9.0" jb-compose-icons = "1.7.8" jb-exposed = "0.61.0" @@ -20,7 +20,7 @@ sqlite = "3.50.1.0" korlibs = "5.4.0" uuid = "0.8.4" -ktor = "3.3.1" +ktor = "3.3.2" gh-release = "2.5.2" @@ -28,13 +28,13 @@ koin = "4.1.1" okio = "3.16.2" -ksp = "2.3.1" +ksp = "2.3.2" kotlin-poet = "2.2.0" -versions = "0.52.0" +versions = "0.53.0" nmcp = "1.2.0" -android-gradle = "8.10.+" +android-gradle = "8.12.+" dexcount = "4.0.0" android-coreKtx = "1.17.0" diff --git a/gradle/templates/enableMPPAndroid.gradle b/gradle/templates/enableMPPAndroid.gradle index 6e735f74752..1f97e734e15 100644 --- a/gradle/templates/enableMPPAndroid.gradle +++ b/gradle/templates/enableMPPAndroid.gradle @@ -1,6 +1,9 @@ kotlin { androidTarget { - publishAllLibraryVariants() + publishLibraryVariants( + "release", + "debug", + ) compilations.all { kotlinOptions { jvmTarget = "17" From e0e1da5082a33962e82b9bed0e6cb99b61752e65 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 12 Nov 2025 22:20:17 +0600 Subject: [PATCH 3/4] add suspendPoint --- CHANGELOG.md | 4 ++++ .../inmo/micro_utils/coroutines/SuspendPoint.kt | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 coroutines/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/SuspendPoint.kt diff --git a/CHANGELOG.md b/CHANGELOG.md index 34159b41688..a8867dfee25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## 0.26.8 +* `Coroutines`: + * Add simple suspend function `suspendPoint` which will ensure that current coroutine is active to let it be + destroyable even in case it have non-suspendable nature + ## 0.26.7 * `Versions`: diff --git a/coroutines/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/SuspendPoint.kt b/coroutines/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/SuspendPoint.kt new file mode 100644 index 00000000000..2954f8e8141 --- /dev/null +++ b/coroutines/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/SuspendPoint.kt @@ -0,0 +1,15 @@ +package dev.inmo.micro_utils.coroutines + +import kotlinx.coroutines.currentCoroutineContext +import kotlinx.coroutines.ensureActive + +/** + * Ensures that the current coroutine context is still active and throws a [kotlinx.coroutines.CancellationException] + * if the coroutine has been canceled. + * + * This function provides a convenient way to check the active status of a coroutine, which is useful + * to identify cancellation points in long-running or suspendable operations. + * + * @throws kotlinx.coroutines.CancellationException if the coroutine context is no longer active. + */ +suspend fun suspendPoint() = currentCoroutineContext().ensureActive() \ No newline at end of file From 92b3fd25e7cfb2c91b841f6e9d0ed8d22185afe2 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 12 Nov 2025 22:25:33 +0600 Subject: [PATCH 4/4] fill changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8867dfee25..4ca6cb151da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## 0.26.8 +* `Versions`: + * `KSLog`: `1.5.1` -> `1.5.2` + * `Compose`: `1.9.2` -> `1.9.3` + * `Ktor`: `3.3.1` -> `3.3.2` * `Coroutines`: * Add simple suspend function `suspendPoint` which will ensure that current coroutine is active to let it be destroyable even in case it have non-suspendable nature