@@ -46,7 +46,7 @@ if (isUserApp) {
4646 // Start from the root + 1 level up (to avoid detecting the op-sqlite/package.json) and traverse upwards to find the first package.json
4747 File currentDir = new File (" $rootDir /../" )
4848 packageJsonFile = null
49-
49+
5050 // Try to find package.json by traversing upwards
5151 while (currentDir != null ) {
5252 File potential = new File (currentDir, " package.json" )
@@ -70,6 +70,7 @@ if(opsqliteConfig) {
7070 useSQLCipher = opsqliteConfig[" sqlcipher" ]
7171 useCRSQLite = opsqliteConfig[" crsqlite" ]
7272 useSqliteVec = opsqliteConfig[" sqliteVec" ]
73+
7374 performanceMode = opsqliteConfig[" performanceMode" ]
7475 sqliteFlags = opsqliteConfig[" sqliteFlags" ] ? opsqliteConfig[" sqliteFlags" ] : " "
7576 enableFTS5 = opsqliteConfig[" fts5" ]
@@ -82,7 +83,7 @@ if(useSQLCipher) {
8283 println " [OP-SQLITE] using sqlcipher."
8384} else if (useLibsql) {
8485 println " [OP-SQLITE] using libsql. Report any issues to Turso"
85- }
86+ }
8687
8788if (useCRSQLite) {
8889 println " [OP-SQLITE] using CR-SQLite"
@@ -108,7 +109,7 @@ if(!tokenizers.isEmpty()) {
108109 if (useLibsql) {
109110 throw new GradleException (" [OP-SQLITE] Error: libsql does not support tokenizers. Please disable tokenizers or do not enable libsql." )
110111 }
111-
112+
112113 println " [OP-SQLITE] Tokenizers enabled. Detected tokenizers: " + tokenizers
113114}
114115
@@ -168,6 +169,7 @@ android {
168169 }
169170
170171 cppFlags " -O3 -frtti -fexceptions -Wall -fstack-protector-all"
172+
171173 arguments " -DANDROID_STL=c++_shared" ,
172174 " -DSQLITE_FLAGS='$sqliteFlags '" ,
173175 " -DUSE_SQLCIPHER=${ useSQLCipher ? 1 : 0} " ,
0 commit comments