Replies: 3 comments 8 replies
|
Zip support is currently only available for the JVM/Android. The SYSTEM filesystem is only available for JVM/Android and native as there is no appropriate filesystem for JS (browser). Until #980 lands and is released you will have to actual/expect the SYSTEM filesystem yourself to access it from a common source set. |
|
+1, Same error when trying to use the According to the okio changelog, the v3.1.0 support Hierarchical project structure. Any help? |
|
Like this issue describes, I too am unable to use // in commonMain platformFileSystem.kt
import okio.FileSystem
expect fun platformFileSystem(): FileSystem// in androidMain platformFileSystem.kt
import okio.FileSystem
actual fun platformFileSystem(): FileSystem { return FileSystem.SYSTEM }// in iosMain platformFileSystem.kt
import okio.FileSystem
actual fun platformFileSystem(): FileSystem { return FileSystem.SYSTEM }Then, in |


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
how to use Okio in kotlin multiplatform? I want to use openZip function, but I couldn't find in documentation how to properly get FileSystem. Most of examples use FileSystem.System but it won't work. I get "Unresolved reference: SYSTEM" I am able to get only FileSystem.SYSTEM_TEMPORARY_DIRECTORY.
All reactions