https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

kpgalligan

12/13/2019, 7:40 PM
Any good examples of a multiplatform project that inteops with jni on the android side? Essentially looking for multiplatform talking to shared c/c++
s

saket

12/13/2019, 9:25 PM
Subscribing to this thread. I wanna do this for Press.
j

jw

12/13/2019, 9:28 PM
I found an example before my Droidcon NYC talk, cannot find it now
Although maybe not exactly what you want now that I read it twice
I'm pretty sure you would need to generate the JNI bullshit. You could have a common interface for talking to shared c/c++ but the mechanism by which you will do the talking is very platform specific
k

kpgalligan

12/13/2019, 9:31 PM
Just how to have jni config and KMP config in the same project. No C++, though
If you want to consume the jni and ios side in common code you’ll still need a common dsl to wrap them as the types won’t be exact, but still.