I've got an OpenGL based Kotlin-mpp library that I...
# multiplatform
r
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
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
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
That's not the problem. The question is how to reference
androidNative
libraries from an Android app. There is no
-jvm
variant.