From 7765720da663f7b97337fb6d48a6ac6622d4f5fb Mon Sep 17 00:00:00 2001 From: Vincent Guillebaud Date: Mon, 2 Sep 2024 19:21:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20Fix=20build=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../github/vinceglb/filekit/core/PlatformInputStream.android.kt | 2 +- .../github/vinceglb/filekit/core/PlatformInputStream.apple.kt | 2 +- .../io/github/vinceglb/filekit/core/PlatformInputStream.js.kt | 2 +- .../io/github/vinceglb/filekit/core/PlatformInputStream.jvm.kt | 2 +- .../github/vinceglb/filekit/core/PlatformInputStream.wasmJs.kt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/filekit-core/src/androidMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.android.kt b/filekit-core/src/androidMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.android.kt index 281674e..45c4747 100644 --- a/filekit-core/src/androidMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.android.kt +++ b/filekit-core/src/androidMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.android.kt @@ -15,7 +15,7 @@ public actual class PlatformInputStream (private val inputStream: InputStream) : inputStream.read(buffer, 0, maxBytes) } - override fun close() { + actual override fun close() { inputStream.close() } } \ No newline at end of file diff --git a/filekit-core/src/appleMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.apple.kt b/filekit-core/src/appleMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.apple.kt index 47e2807..3a9f9a8 100644 --- a/filekit-core/src/appleMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.apple.kt +++ b/filekit-core/src/appleMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.apple.kt @@ -30,7 +30,7 @@ public actual class PlatformInputStream(private val nsInputStream: NSInputStream } } - override fun close() { + actual override fun close() { nsInputStream.close() } } \ No newline at end of file diff --git a/filekit-core/src/jsMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.js.kt b/filekit-core/src/jsMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.js.kt index 3b9cf77..6fea21b 100644 --- a/filekit-core/src/jsMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.js.kt +++ b/filekit-core/src/jsMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.js.kt @@ -9,7 +9,7 @@ public actual class PlatformInputStream : AutoCloseable { throw IllegalStateException("JS does not support InputStreams") } - override fun close() { + actual override fun close() { throw IllegalStateException("JS does not support InputStreams") } } \ No newline at end of file diff --git a/filekit-core/src/jvmMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.jvm.kt b/filekit-core/src/jvmMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.jvm.kt index 5def923..7af6d67 100644 --- a/filekit-core/src/jvmMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.jvm.kt +++ b/filekit-core/src/jvmMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.jvm.kt @@ -15,7 +15,7 @@ public actual class PlatformInputStream(private val inputStream: InputStream) : inputStream.read(buffer, 0, maxBytes) } - override fun close() { + actual override fun close() { inputStream.close() } } \ No newline at end of file diff --git a/filekit-core/src/wasmJsMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.wasmJs.kt b/filekit-core/src/wasmJsMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.wasmJs.kt index d2a1bec..c5eb6c2 100644 --- a/filekit-core/src/wasmJsMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.wasmJs.kt +++ b/filekit-core/src/wasmJsMain/kotlin/io/github/vinceglb/filekit/core/PlatformInputStream.wasmJs.kt @@ -9,7 +9,7 @@ public actual class PlatformInputStream : AutoCloseable { throw IllegalStateException("Wasm does not support InputStreams") } - override fun close() { + actual override fun close() { throw IllegalStateException("Wasm does not support InputStreams") } } \ No newline at end of file