Kotlin/JVM Interoperability with native code w/o JNI

Hello everyone, I’ve been trying to use integrate our C++ business code to interoperate with iOS and Android in a KMM project. I know that one normally uses JNI to interact with C++ code from the Android side, but since cinterop tool is capable of generating the necessary klib libraries, I was wondering if there is a way to achieve this without writing a JNI bridge for Android?

1 Like

Kotlin/Native does not have C++ compatibility. Only C and Objective-C.
And also is there no way of interacting with Kotlin/Native from Kotlin/JVM. You would have to use the JNI for that.