https://kotlinlang.org logo
r

rharter

07/03/2019, 8:13 PM
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.
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
implementation 'com.exampleSharedApiWrapper jvm0.0.1'
r

rharter

07/03/2019, 9:10 PM
That's not the problem. The question is how to reference
androidNative
libraries from an Android app. There is no
-jvm
variant.
2 Views