Replies: 3 comments 3 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. |
Beta Was this translation helpful? Give feedback.
-
+1, Same error when trying to use the According to the okio changelog, the v3.1.0 support Hierarchical project structure. Any help? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions