https://kotlinlang.org logo
#ios
Title
# ios
m

Mathieu D.

10/25/2023, 11:58 AM
Hi Guys, someone know is okio is compatible with ios ? I need to manipulate files on my Multiplatform project
k

kpgalligan

10/25/2023, 2:43 PM
It should be, although I haven't used it myself. #squarelibraries Might also be a good place to ask.
m

Mathieu D.

10/25/2023, 2:59 PM
Great, many thanks ! I will check this channel
j

Jeff Lockhart

10/25/2023, 5:48 PM
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

Marko Novaković

10/26/2023, 1:11 PM
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

Mathieu D.

10/26/2023, 2:02 PM
Great ! Many thanks for your help
2 Views