I have a c library that would like to use in `comm...
# multiplatform
n
I have a c library that would like to use in
commonMain
to be consumed by iOS and Android. Do I still have to use both
externalNativeBuild
for android along with using
cinterops
for iOS? I was hoping there is a better way 🤞 This is how zipline does it, and also explained in this tutorial
l
You can use K/N to write the jni bindings on Android. I did this on a previous project. I had a gradle task that builds the binary and moves it to the proper folder where Android can find it during the build. This avoids having any C code in your project.
👍 1