https://kotlinlang.org logo
b

Brian Dilley

10/23/2020, 6:21 PM
I’m writing a Kotlin Native app. programs will be run on many different architectures including mac/darwin x86_64, to linux x86_64, and even raspberry pi armv6/7. Are there any good libraries out there for file access yet? Basically I’m looking for something that takes the place of the java based stuff that we have in regular kotlin.
m

Marshall

10/23/2020, 6:49 PM
I had the same question recently
kotlinx-io is the standard library that is in the works but won't be ready any time soon
@Marcin Wisniowski pointed me to https://korlibs.soywiz.com/korio/
I wrote some very basic code to try it out and it seems to be pretty simple to use, although a bit different than any other library I've used before
If you are targeting Kotlin 1.4.10 you will need to use version "2.0.0-alpha"
b

Brian Dilley

10/24/2020, 11:26 PM
thanks
m

Marshall

10/27/2020, 1:26 PM
the kotlin team also mentioned https://github.com/square/okio
I have not tried it however
b

Brian Dilley

10/27/2020, 6:29 PM
i’ve used okio
it’s solid
but it’s java based
oh, i guess it’s multiplatform
m

Marshall

10/27/2020, 6:57 PM
yeah kotlin devs said it supports other platforms but not sure if that includes native