Hi Guys, someone know is okio is compatible with i...
# ios
m
Hi Guys, someone know is okio is compatible with ios ? I need to manipulate files on my Multiplatform project
k
It should be, although I haven't used it myself. #squarelibraries Might also be a good place to ask.
m
Great, many thanks ! I will check this channel
j
Okio does support iOS. But the
FileSystem.SYSTEM
API is not in common, so depending on your targets, you may need to expect/actual to access the platform implementations in common.
m
it supports iOS.
FileSystem.SYSTEM.read(path.toPath()) { readUtf8() // for example }
but as Jeff mentioned you can’t have this code as common code, you have to put it in iOS module
m
Great ! Many thanks for your help
151 Views