From 760dac1671f1ac6d89e96d224f1dc1f6ed3fdb27 Mon Sep 17 00:00:00 2001 From: "Kenneth J. Shackleton" Date: Mon, 26 Aug 2024 08:46:54 +0100 Subject: [PATCH] Support compiling 16 KB-aligned shared libraries with Android NDK version r27 and higher. Signed-off-by: Kenneth J. Shackleton --- selekt-android-sqlcipher/build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/selekt-android-sqlcipher/build.gradle.kts b/selekt-android-sqlcipher/build.gradle.kts index 2a363742ef..5f9c4340e0 100644 --- a/selekt-android-sqlcipher/build.gradle.kts +++ b/selekt-android-sqlcipher/build.gradle.kts @@ -43,6 +43,12 @@ android { ndkVersion = "27.0.12077973" defaultConfig { minSdk = 21 + @Suppress("UnstableApiUsage") + externalNativeBuild { + cmake { + arguments("-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON") + } + } } buildTypes { debug {