Does something akin to a Kotlin/Native common libr...
# kotlin-native
l
Does something akin to a Kotlin/Native common library exist? (I'm looking for a way to write platform-indenpendent code common to all native targets that would be extended in target specific modules using platform specific code.)
d
Not yet but it's being actively worked on. https://youtrack.jetbrains.com/issue/KT-26968
👍 1
s
You could use MPP for this with multiple native targets and expect/actual classes for the items common across the different native targets. It’s not ideal but should work.
d
It would work if
kotlinx.cinterop
was also multiplatform but it's not (At least not according to the IDE).
o
cinterop is multiplatform between Native flavours, as the rest of standard library