From 0d2f69aac0753736edac794430aec36d0cc2f95a Mon Sep 17 00:00:00 2001 From: sanogueralorenzo Date: Sun, 8 Mar 2026 17:33:04 -0700 Subject: [PATCH] Use NDK 28 and flexible page sizes for Android --- build.gradle.kts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 1b09e15..8f09e75 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { android { namespace = "ai.moonshine.voice" compileSdk = 35 - ndkVersion = "25.2.9519653" + ndkVersion = "28.2.13676358" defaultConfig { minSdk = 35 @@ -19,6 +19,11 @@ android { // Only build for ARM64 to match the app module abiFilters += listOf("arm64-v8a") } + externalNativeBuild { + cmake { + arguments("-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON") + } + } } sourceSets { @@ -88,4 +93,4 @@ dependencies { testImplementation(libs.junit) androidTestImplementation(libs.ext.junit) androidTestImplementation(libs.espresso.core) -} \ No newline at end of file +}