I have a cross platform library for ios/android wr...
# android
r
I have a cross platform library for ios/android written in C/C++ and it would be nice to be able to call it from kotlin without all the JNI fuss
m
Cinterop is available in Kotlin Native, AFAIK it's not available in Android/JVM
r
Thanks for the reply. That is what I have understood by reading the documentation too
but, if you create a kotlin (native) library that calls c code via cinterop
can that kotlin library be called from Android code?
or once you have a kotlin native component, you cannot be called from Art/JVM world?
Initially I saw Cinterop like c# Platform Invoke, where you can call from .NET VM to native libraries. But I think that's not the case
m
I think you'd still need JNI to access kotlin native functions
you can ask at #kotlin-native
👍 1
r
thanks 🙂
d
Yes, except the PInvoke stuff is generate for you.
d
Can the NDK help here?