Skip to content

Commit e2c7fc9

Browse files
committed
chore: enable 16kb memory page size support
1 parent 8dedfb1 commit e2c7fc9

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

example/android/app/build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,21 @@ android {
7878
compileSdk rootProject.ext.compileSdkVersion
7979

8080
namespace "com.margelo.rnnitrosqlite.example"
81+
8182
defaultConfig {
8283
applicationId "com.margelo.rnnitrosqlite.example"
8384
minSdkVersion rootProject.ext.minSdkVersion
8485
targetSdkVersion rootProject.ext.targetSdkVersion
8586
versionCode 1
8687
versionName "1.0"
88+
89+
externalNativeBuild {
90+
cmake {
91+
arguments "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
92+
}
93+
}
8794
}
95+
8896
signingConfigs {
8997
debug {
9098
storeFile file('debug.keystore')
@@ -93,6 +101,7 @@ android {
93101
keyPassword 'android'
94102
}
95103
}
104+
96105
buildTypes {
97106
debug {
98107
signingConfig signingConfigs.debug
@@ -105,6 +114,12 @@ android {
105114
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
106115
}
107116
}
117+
118+
packagingOptions {
119+
jniLibs {
120+
useLegacyPackaging true
121+
}
122+
}
108123
}
109124

110125
dependencies {

package/android/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ android {
110110
arguments "-DANDROID_STL=c++_shared",
111111
"-DANDROID_TOOLCHAIN=clang",
112112
"-DREACT_NATIVE_MINOR_VERSION=${REACT_NATIVE_MINOR_VERSION}",
113-
"-DSQLITE_FLAGS='${SQLITE_FLAGS ? SQLITE_FLAGS : ''}'"
113+
"-DSQLITE_FLAGS='${SQLITE_FLAGS ? SQLITE_FLAGS : ''}'",
114+
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
114115
abiFilters (*reactNativeArchitectures())
115116
}
116117
}
@@ -158,6 +159,10 @@ android {
158159
}
159160

160161
packagingOptions {
162+
jniLibs {
163+
useLegacyPackaging true
164+
}
165+
161166
doNotStrip resolveBuildType() == 'debug' ? "**/**/*.so" : ''
162167
excludes = [
163168
"META-INF",

0 commit comments

Comments
 (0)