Hi. Is there up to date post about calling Kotli N...
# kotlin-native
g
Hi. Is there up to date post about calling Kotli Native from Kotlin JVM? I found this https://jonnyzzz.com/blog/2019/12/15/jni-kotlin/ but it was 3 years ago. will be happy for a sample with a newer Kotlin version where JVM calls Kotlin Native code and both jvm module and native module are in same project
n
I have a compiler plugin that allows two way communication. I should open source it in a couple of weeks. (works on androidNative* targets, other native targets should require little work on the codebase)
o
BTW, why do you need this K/N - K/JVM interop?
g
I decided to contribute to this library https://github.com/Wavesonics/compose-multiplatform-file-picker But native file pickers on JVM had issues on MacOS. So i was like why not have it all in Kotlin and the maintainer also seems to agree.