@op-engineering/op-sqlite 15.2.7 → 15.2.8
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 +6 -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}",
|