Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ if (USE_SQLCIPHER)
add_definitions(
-DOP_SQLITE_USE_SQLCIPHER=1
-DSQLITE_HAS_CODEC
-DSQLITE_TEMP_STORE=2
-DSQLITE_TEMP_STORE=3
-DSQLITE_EXTRA_INIT=sqlcipher_extra_init
-DSQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown
)

find_package(openssl REQUIRED CONFIG)
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ dependencies {
implementation 'com.facebook.react:react-native'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
if (useSQLCipher) {
implementation('com.android.ndk.thirdparty:openssl:1.1.1q-beta-1')
implementation('io.github.ronickg:openssl:3.3.2')
}
}

Expand Down
15,237 changes: 9,802 additions & 5,435 deletions cpp/sqlcipher/sqlite3.c

Large diffs are not rendered by default.

396 changes: 343 additions & 53 deletions cpp/sqlcipher/sqlite3.h

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,12 @@
},
"op-sqlite": {
"libsql": false,
"sqlcipher": false,
"sqlcipher": true,
"iosSqlite": false,
"fts5": true,
"rtree": true,
"crsqlite": false,
"sqliteVec": false,
"sqliteFlags": "-DSQLITE_TEMP_STORE=2",
"performanceMode": true,
"tokenizers": [
"wordtokenizer",
Expand Down
2 changes: 1 addition & 1 deletion example/src/tests/dbsetup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let expect = chai.expect;
const expectedVersion = isLibsql()
? '3.45.1'
: isSQLCipher()
? '3.46.1'
? '3.49.1'
: '3.49.1';
const flavor = isLibsql() ? 'libsql' : isSQLCipher() ? 'sqlcipher' : 'sqlite';

Expand Down
2 changes: 1 addition & 1 deletion op-sqlite.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Pod::Spec.new do |s|
if use_sqlcipher then
log_message.call("[OP-SQLITE] using SQLCipher 🔒")
exclude_files += ["cpp/sqlite3.c", "cpp/sqlite3.h", "cpp/libsql/bridge.c", "cpp/libsql/bridge.h", "cpp/libsql/bridge.cpp", "cpp/libsql/libsql.h"]
xcconfig[:GCC_PREPROCESSOR_DEFINITIONS] += " OP_SQLITE_USE_SQLCIPHER=1 HAVE_FULLFSYNC=1 SQLITE_HAS_CODEC SQLITE_TEMP_STORE=2"
xcconfig[:GCC_PREPROCESSOR_DEFINITIONS] += " OP_SQLITE_USE_SQLCIPHER=1 HAVE_FULLFSYNC=1 SQLITE_HAS_CODEC SQLITE_TEMP_STORE=3 SQLITE_EXTRA_INIT=sqlcipher_extra_init SQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown"
s.dependency "OpenSSL-Universal"
elsif use_libsql then
log_message.call("[OP-SQLITE] using libsql 📘")
Expand Down
Loading