diff --git a/README.md b/README.md index a40ad888..202a95b5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Kim - Kotlin Image Metadata -[![Kotlin](https://img.shields.io/badge/kotlin-1.9.23-blue.svg?logo=kotlin)](httpw://kotlinlang.org) +[![Kotlin](https://img.shields.io/badge/kotlin-1.9.24-blue.svg?logo=kotlin)](httpw://kotlinlang.org) ![JVM](https://img.shields.io/badge/-JVM-gray.svg?style=flat) ![Android](https://img.shields.io/badge/-Android-gray.svg?style=flat) ![iOS](https://img.shields.io/badge/-iOS-gray.svg?style=flat) @@ -39,7 +39,7 @@ of Ashampoo Photo Organizer, which, in turn, is driven by user community feedbac ## Installation ``` -implementation("com.ashampoo:kim:0.18") +implementation("com.ashampoo:kim:0.18.1") ``` For the targets `wasmJs` & `js` you also need to specify this: diff --git a/build.gradle.kts b/build.gradle.kts index f4793f47..c6951b04 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl plugins { - kotlin("multiplatform") version "1.9.23" + kotlin("multiplatform") version "1.9.24" id("com.android.library") version "8.2.2" id("maven-publish") id("signing") @@ -28,7 +28,7 @@ val ktorVersion: String = "2.3.10" val xmpCoreVersion: String = "1.3.0" val dateTimeVersion: String = "0.5.0" val testRessourcesVersion: String = "0.4.0" -val kotlinxIoVersion: String = "0.3.3" +val kotlinxIoVersion: String = "0.3.4" description = productName group = "com.ashampoo" diff --git a/src/ktorMain/kotlin/com/ashampoo/kim/common/KotlinIoExtensions.kt b/src/ktorMain/kotlin/com/ashampoo/kim/common/KotlinIoExtensions.kt index f5e74207..506d8ed1 100644 --- a/src/ktorMain/kotlin/com/ashampoo/kim/common/KotlinIoExtensions.kt +++ b/src/ktorMain/kotlin/com/ashampoo/kim/common/KotlinIoExtensions.kt @@ -51,6 +51,9 @@ public fun Path.readBytes(): ByteArray = .buffered() .use { it.readByteArray() } -@OptIn(ExperimentalStdlibApi::class) public fun Path.exists(): Boolean = SystemFileSystem.exists(this) + +public fun Path.list(): Collection = + SystemFileSystem.list(this) +