From 7d3fa2b846fbc464a1874e2b3654afa61640b673 Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Sun, 22 Dec 2024 10:41:23 +0100 Subject: [PATCH] Fix tests --- cpp/bindings.cpp | 1 + example/ios/Podfile.lock | 6 +----- example/package.json | 14 +++++++------- scripts/turnOffEverything.js | 5 +++++ 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/cpp/bindings.cpp b/cpp/bindings.cpp index 1cb6d324..f75d2858 100644 --- a/cpp/bindings.cpp +++ b/cpp/bindings.cpp @@ -157,6 +157,7 @@ void install(jsi::Runtime &rt, module.setProperty(rt, "open", std::move(open)); module.setProperty(rt, "isSQLCipher", std::move(is_sqlcipher)); module.setProperty(rt, "isLibsql", std::move(is_libsql)); + module.setProperty(rt, "isIOSEmbedded", std::move(is_ios_embedded)); #ifdef OP_SQLITE_USE_LIBSQL module.setProperty(rt, "openRemote", std::move(open_remote)); module.setProperty(rt, "openSync", std::move(open_sync)); diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 8bebf757..65bf2c8e 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -14,7 +14,6 @@ PODS: - DoubleConversion - glog - hermes-engine - - OpenSSL-Universal - RCT-Folly (= 2024.01.01.00) - RCTRequired - RCTTypeSafety @@ -34,7 +33,6 @@ PODS: - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - Yoga - - OpenSSL-Universal (3.3.2000) - RCT-Folly (2024.01.01.00): - boost - DoubleConversion @@ -1640,7 +1638,6 @@ DEPENDENCIES: SPEC REPOS: trunk: - GCDWebServer - - OpenSSL-Universal - SocketRocket EXTERNAL SOURCES: @@ -1788,8 +1785,7 @@ SPEC CHECKSUMS: GCDWebServer: 2c156a56c8226e2d5c0c3f208a3621ccffbe3ce4 glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a hermes-engine: 06a9c6900587420b90accc394199527c64259db4 - op-sqlite: c176293edd92dfe9f337e2a7b52b0b2cce1cc2c6 - OpenSSL-Universal: b60a3702c9fea8b3145549d421fdb018e53ab7b4 + op-sqlite: 44cfb0a8e1f57e95319a1d168271da059b4d7e98 RCT-Folly: bf5c0376ffe4dd2cf438dcf86db385df9fdce648 RCTDeprecation: fb7d408617e25d7f537940000d766d60149c5fea RCTRequired: 9aaf0ffcc1f41f0c671af863970ef25c422a9920 diff --git a/example/package.json b/example/package.json index e7d4cd57..5951d14e 100644 --- a/example/package.json +++ b/example/package.json @@ -66,15 +66,15 @@ "node": ">=18" }, "op-sqlite": { - "sqlcipher": true, - "crsqlite": false, - "performanceMode": true, "sqliteFlags": "-DSQLITE_TEMP_STORE=2", - "iosSqlite": false, - "fts5": true, - "rtree": true, - "sqliteVec": true, + "sqlcipher": false, "libsql": false, + "performanceMode": true, + "iosSqlite": true, + "crsqlite": false, + "fts5": false, + "rtree": false, + "sqliteVec": false, "tokenizers": [ "wordtokenizer", "porter" diff --git a/scripts/turnOffEverything.js b/scripts/turnOffEverything.js index b6897309..ec2ffa78 100644 --- a/scripts/turnOffEverything.js +++ b/scripts/turnOffEverything.js @@ -9,6 +9,11 @@ const packageJson = JSON.parse(fs.readFileSync('./example/package.json')); packageJson['op-sqlite']['libsql'] = false; packageJson['op-sqlite']['sqlcipher'] = false; packageJson['op-sqlite']['crsqlite'] = false; +packageJson['op-sqlite']['iosSqlite'] = false; +packageJson['op-sqlite']['fts5'] = true; +packageJson['op-sqlite']['rtree'] = true; +packageJson['op-sqlite']['crsqlite'] = true; +packageJson['op-sqlite']['sqliteVec'] = true; // Save the updated package.json file fs.writeFileSync(