kotlin-csv
kotlin-csv copied to clipboard
Kotlin/Native Support
https://kotlinlang.org/docs/reference/multiplatform.html
Are there any bottlenecks preventing you from also targeting native?
No, there's no bottleneck. But I wait to implement it because the multiplatform feature is now experimental and I don't see how big the need for the multiplatform feature is in kotlin-csv. If this feature is needed, I'll consider it. Feel free to request it, and tell me the detail of the use case.
Got it, I was able to parse a csv with okio's new multiplatform file system feature so I'm all good now. You might find it interesting.
@doyaaaaaken my team is interested in multiplatform version of kotlin-csv. We are developing a client-facing SDK that cross-compiles to JVM/Android/iOS/JS (both browser and NodeJS). I understand that some features would be unimplementable, specifically those working with files from browser, so some analysis would have to done in that respect.
We can probably even spare some manpower to work on enabling such support in kotlin-csv if you agree on the general direction.
@itegulov Thank you very much. I would be very grateful for your help.
As you can see from the following code, the common code is in the form of receiving String type as an argument, and the rest is defining methods to receive each platform's own type (java.io.File type for Java) as an argument.
The first thing we would like to do is to make the minimal code defined in [the multiplatform code](https://github.com/doyaaaaaken/kotlin-csv/blob/master/src/commonMain/kotlin/com/github/doyaaaaaken/kotlincsv/client/ CsvReader.kt) work on a specific platform (e.g. JS). What form of help would you be able to provide?
@doyaaaaaken I see. Let me take this discussion internally and I will get back to you on our plans.
The Kotlin/JS feature is implemented by #30. (released at version 1.0.0.) This issue is renamed into "Kotlin/Native Support".
I don't know why this library is listed as "A pure kotlin simple csv reader/writer." when it only supports Kotlin JS or Kotlin JVM (and not actual Kotlin native).
What would be needed to take it completely Kotlin native actually?