Should I be able to use Okio for file access in Ko...
# kotlin-native
h
Should I be able to use Okio for file access in Kotlin native? Gradle seems to be unhappy trying to import it in a
commonMain
or
nativeMain
block.
g
I think it’s ought to be supported but have to check. There’s also a library being developed by Jetbrains you might want to take a look at https://github.com/Kotlin/kotlinx-io
👍 1
m
okio doesn't support file access in common code yet but it's coming: https://publicobject.com/2020/10/06/files/
❤️ 4
I've had some success reading a file descriptor to a
Buffer
and using that in common code too
h
Yeah it wasn't finding dependencies on Linux so I was thinking not quite ready yet. Nice to see working on it
Nice to see kotlinx-io is making a way to do simple standard IO stuff
I'll look into that thanks!