android: gradle build - add ndk.abiFilters to package the prebuilt arm64-v8a/libmpd.so with the apk

This commit is contained in:
gd
2025-02-01 11:11:34 +02:00
committed by Max Kellermann
parent 996e158f56
commit 0872a761c8

View File

@@ -18,6 +18,11 @@ android {
vectorDrawables { vectorDrawables {
useSupportLibrary = true useSupportLibrary = true
} }
ndk {
// Specifies the ABI configurations of your native
// libraries Gradle should build and package with your app.
abiFilters += "arm64-v8a"
}
} }
buildFeatures { buildFeatures {
@@ -30,8 +35,11 @@ android {
} }
buildTypes { buildTypes {
release { debug {
isMinifyEnabled = false isMinifyEnabled = false
}
release {
isMinifyEnabled = true
proguardFiles( proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"), getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro" "proguard-rules.pro"