How example, I have a bunch of native libraries for several architectures:
mylib.dylib, mylib.so, mylib.dll
There are JNI bindings in the libs, which I want to call from the plugin itself, like this:
external fun hello(): Void
companion object {
init {
System.loadLibrary("hello")
}
}
I want to distribute these libs among with .jar. I've tried to add binaries inside src folder and link them via Project Structure - Modules and Project Structure - Libraries with no result. Due to this issue, I can conclude that such a case should be possible. Should I add something inside build.gradle.kts? Or can I use c-interop somehow?