@op-engineering/op-sqlite 15.2.7 → 15.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +19 -1
- package/cpp/sqlite3.c +4442 -1364
- package/cpp/sqlite3.h +304 -111
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -27,6 +27,11 @@ def getExtOrIntegerDefault(name) {
|
|
|
27
27
|
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["OPSQLite_" + name]).toInteger()
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
def reactNativeArchitectures() {
|
|
31
|
+
def value = project.getProperties().get("reactNativeArchitectures")
|
|
32
|
+
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
|
|
33
|
+
}
|
|
34
|
+
|
|
30
35
|
def useSQLCipher = false
|
|
31
36
|
def useLibsql = false
|
|
32
37
|
def useCRSQLite = false
|
|
@@ -168,7 +173,7 @@ android {
|
|
|
168
173
|
}
|
|
169
174
|
|
|
170
175
|
cppFlags "-O3 -frtti -fexceptions -Wall -fstack-protector-all"
|
|
171
|
-
|
|
176
|
+
abiFilters(*reactNativeArchitectures())
|
|
172
177
|
arguments "-DANDROID_STL=c++_shared",
|
|
173
178
|
"-DSQLITE_FLAGS='$sqliteFlags'",
|
|
174
179
|
"-DUSE_SQLCIPHER=${useSQLCipher ? 1 : 0}",
|
|
@@ -180,6 +185,19 @@ android {
|
|
|
180
185
|
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
|
|
181
186
|
}
|
|
182
187
|
}
|
|
188
|
+
|
|
189
|
+
packagingOptions {
|
|
190
|
+
excludes = [
|
|
191
|
+
"META-INF",
|
|
192
|
+
"META-INF/**",
|
|
193
|
+
"**/libjsi.so",
|
|
194
|
+
"**/libreact_nativemodule_core.so",
|
|
195
|
+
"**/libturbomodulejsijni.so",
|
|
196
|
+
"**/libc++_shared.so",
|
|
197
|
+
"**/libfbjni.so",
|
|
198
|
+
"**/libreactnative.so",
|
|
199
|
+
]
|
|
200
|
+
}
|
|
183
201
|
}
|
|
184
202
|
|
|
185
203
|
buildFeatures {
|