Thread
#multiplatform
    r

    rharter

    3 years ago
    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?
    Dominaezzz

    Dominaezzz

    3 years ago
    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

    3 years ago
    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.example:SharedApiWrapper-jvm:0.0.1'
    r

    rharter

    3 years ago
    That's not the problem. The question is how to reference
    androidNative
    libraries from an Android app. There is no
    -jvm
    variant.