Does anyone know a simple yaml parser library for ...
# multiplatform
f
Does anyone know a simple yaml parser library for kotlin multiplatform?
d
Oops, it's jvm only. Nvm.
c
I don’t know of any pure-Kotlin implementations yet. YAML parsers are very complex and difficult to get right, so if there is one out there, I don’t think I would trust it for production use since MPP is so new. I think your best bet would just to use actual/expect declarations over platform-standard libraries
f
hmm ok yeah I was worried that I have to go down that route
l
@charleskorn Since your library depends on kotlinx.serialization which is multiplatform, maybe it could be multiplatform too? Or are you using JVM-only APIs or dependencies?
f
I though initally its multiplatform but he uses a JVM library for the actual Yaml parsing.
c
I’ve always planned to create a K/N version using
libyaml
(or similar) to do the parsing, but I haven’t gotten around to it yet - biggest blocker is the lack of support for K/N in Spek.
But yes, right now, it’s JVM-only.
m
this is a good oportunity to make kaml be multiplatform....
and with it contribute to kmp ecosystem.
r
@charleskorn I can start publishing the artifacts you need for using Spek in K/N. Biggest downside is that there is no IDE support yet and gradle reporting is via console only (and also blocked by the upgrade to
1.3.70
- significant changes to the compiler plugin api)
423 Views