Skip to content

Commit 719a929

Browse files
committed
Support 16KB-aligned pages with NDK 27+
1 parent 1a30b92 commit 719a929

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/early-tips-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@journeyapps/react-native-quick-sqlite": patch
3+
---
4+
5+
Support 16KB page sizes when building with NDK version 27+

android/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ android {
7676
externalNativeBuild {
7777
cmake {
7878
cppFlags "-O2", "-fexceptions", "-frtti", "-std=c++1y", "-DONANDROID"
79+
// For 16KB-aligned pages with NDK r27: https://developer.android.com/guide/practices/page-sizes#groovy_1
80+
arguments "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
7981
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
8082
arguments '-DANDROID_STL=c++_shared',
8183
"-DSQLITE_FLAGS='${SQLITE_FLAGS ? SQLITE_FLAGS : ''}'",

tests/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '34')
99
kotlinVersion = findProperty('android.kotlinVersion') ?: '1.9.24'
1010

11-
ndkVersion = "26.1.10909125"
11+
ndkVersion = "27.3.13750724"
1212
}
1313
repositories {
1414
google()

0 commit comments

Comments
 (0)