File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff 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
110125dependencies {
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments