From 0872a761c87882101d9b38ba47984c03da238b02 Mon Sep 17 00:00:00 2001 From: gd <gd@iotide.com> Date: Sat, 1 Feb 2025 11:11:34 +0200 Subject: [PATCH] android: gradle build - add ndk.abiFilters to package the prebuilt arm64-v8a/libmpd.so with the apk --- android/app/build.gradle.kts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 99aec3723..d1e99c06e 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -18,6 +18,11 @@ android { vectorDrawables { useSupportLibrary = true } + ndk { + // Specifies the ABI configurations of your native + // libraries Gradle should build and package with your app. + abiFilters += "arm64-v8a" + } } buildFeatures { @@ -30,8 +35,11 @@ android { } buildTypes { - release { + debug { isMinifyEnabled = false + } + release { + isMinifyEnabled = true proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"