mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 02:29:55 +02:00
Package Rust library in Android app
This commit is contained in:
@@ -36,6 +36,9 @@ android {
|
||||
resources {
|
||||
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
||||
}
|
||||
jniLibs {
|
||||
pickFirsts += "lib/arm64-v8a/libvnidrop.so"
|
||||
}
|
||||
}
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
@@ -46,4 +49,15 @@ android {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
sourceSets {
|
||||
getByName("debug") {
|
||||
jniLibs.srcDir(project(":shared").layout.buildDirectory.dir("intermediates/rust/aarch64-linux-android/debug"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.configureEach {
|
||||
if (name == "mergeDebugJniLibFolders" || name == "mergeDebugNativeLibs") {
|
||||
dependsOn(":shared:cargoBuildAndroidArm64Debug")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user