I've got an OpenGL based Kotlin-mpp library that I've created, with targets for both
androidNativeArm32
and
androidNativeArm64
, both deployed to by local maven repo. How can I set up my Android app to depend on that? Is there a way to use the maven dependency and either generate or write a jni wrapper?
d
Dominaezzz
07/03/2019, 8:31 PM
I think it'll be easier if you published your library with a jni wrappers.
Dominaezzz
07/03/2019, 8:31 PM
There's no (nice) way to generate jni bindings/wrapper.
s
Sergioedcigreja
07/03/2019, 9:04 PM
If it's already deployed to maven local you need to add mavenLocal to the list of repositories in your app, usually before any other. Then you reference it like any other dependency