Anyone already included a shared library (.so file...
# multiplatform
a
Anyone already included a shared library (.so file) on android target on KMP library ? Whatever i do, the library is never included on my .aar
My bad, the relative path was just wrong, I end up by providing the absolute path to be sure :
Copy code
plugins {
    id("com.android.library")
}

val jniLibsPath = project.file("src")
    .resolve("androidMain")
    .resolve("libs")
    .absolutePath

android {
    namespace = "io.ygdrasil.wgpu4k"
    compileSdk = 34

    defaultConfig {
        minSdk = 28
    }


    sourceSets {
        getByName("main") {
            jniLibs.srcDirs(jniLibsPath)
        }
    }

}