https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Alfred Lopez

05/24/2021, 4:16 PM
I am attempting to use Okio for File/IO and Square claims it's MPP, but I only see JVM implementations. Has anybody gotten this to work for a JVM/JS MPP? Thanks
If there's another framework that I can use, I'm all for that, since I'm not heavily invested in Okio
r

russhwolf

05/24/2021, 4:22 PM
I don't think it's documented but you have to use the
okio-multiplatform
dependency
a

Alfred Lopez

05/24/2021, 4:26 PM
You mean like "com.squareup.okiookio multiplatform3.0.0-alpha.5"?
I'm currently using "com.squareup.okiookio3.0.0-alpha.5"
r

russhwolf

05/24/2021, 4:26 PM
yeah
a

Alfred Lopez

05/24/2021, 4:27 PM
Ok. Let me try that. Thanks!
That brought in something, but I still don't see any implementation of FileSystem (or any other interface) for JS. Are they expecting developers to create the actual implementations?
r

russhwolf

05/24/2021, 4:38 PM
I don't know off-hand what their JS plans or status are. Maybe ask in #squarelibraries
a

Alfred Lopez

05/24/2021, 4:38 PM
Thanks!
l

louiscad

05/24/2021, 5:09 PM
@jmfayard used it recently in a project, that supports NodeJS, Linux and macOS: https://github.com/jmfayard/kotlin-cli-starter
👍 1
a

Alfred Lopez

05/24/2021, 5:25 PM
@louiscad Thank you!
26 Views