Hi guys! I'm writing a multiplatform project, made...
# kotlin-native
a
Hi guys! I'm writing a multiplatform project, made by a shared core (managed by the
kotlin-platform-common
plugin), and Android part, and an iOS framework I am building with
konan
, that then I load into an iOS app project. There's a problem: It seems that in the konan gradle project I can't import external libraries from gradle (I need the
org.jetbrains.kotlinx:jsonparser-native:0.6.0
library, since I'm using
kotlinx-serialization-runtime-common
in the shared code). How to do it?
s
jsonparser-native requires new experimental DSL, which uses
kotlin-platform-native
plugin instead of
konan
. Refer to its documentation and samples for details: https://github.com/Kotlin/kotlinx.serialization/blob/master/json/README.md