From f80c0d71f1c1e4c4788f2aac7f5762ae1fa0eb0b Mon Sep 17 00:00:00 2001 From: "Christopher J. Brody" Date: Mon, 5 Mar 2018 11:32:52 -0500 Subject: [PATCH] cordova-sqlcipher-adapter with SQLITE_THREADSAFE=1 for iOS/macOS (cordova-sqlcipher-adapter 0.1.12-rc2) ref: litehelpers/Cordova-sqlite-storage#754 --- CHANGES.md | 4 ++++ README.md | 2 +- package.json | 2 +- plugin.xml | 8 +++++--- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 6e662a1a..e9040026 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## cordova-sqlcipher-adapter 0.1.12-rc2 + +- cordova-sqlcipher-adapter with SQLITE_THREADSAFE=1 for iOS/macOS ref: litehelpers/Cordova-sqlite-storage#754 () + ## cordova-sqlcipher-adapter 0.1.12-rc1 - SQLCipher for Android 3.5.9 Gradle reference diff --git a/README.md b/README.md index 98fac937..ce742a9b 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ See the [Sample section](#sample) for a sample with a more detailed explanation - `SQLITE_LOCKING_STYLE=1` (iOS/macOS only) - `DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576` (Android only) - `NDEBUG` (`NDEBUG=1` on Android) - - `SQLITE_THREADSAFE=1` (`SQLITE_THREADSAFE=2` on iOS/macOS) + - `SQLITE_THREADSAFE=1` - `DSQLITE_ENABLE_MEMORY_MANAGEMENT=1` (Android only) - `SQLITE_DEFAULT_MEMSTATUS=0` (iOS/macOS/...) - `SQLITE_OMIT_DECLTYPE` (iOS/macOS/...) diff --git a/package.json b/package.json index 175886ea..bc990ce4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-sqlcipher-adapter", - "version": "0.1.12-rc1", + "version": "0.1.12-rc2", "description": "SQLCipher database adapter for PhoneGap/Cordova, based on cordova-sqlite-storage", "cordova": { "id": "cordova-sqlcipher-adapter", diff --git a/plugin.xml b/plugin.xml index 0dd8d67c..59a4a979 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="0.1.12-rc2"> Cordova sqlcipher adapter @@ -74,7 +74,8 @@ -DSQLITE_HAS_CODEC -DHAVE_USLEEP=1 -DSQLITE_TEMP_STORE=3 -DSQLCIPHER_CRYPTO_CC -DSQLITE_LOCKING_STYLE=1 -DNDEBUG - -DSQLITE_THREADSAFE=2 -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DECLTYPE + -DSQLITE_THREADSAFE=1 + -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_JSON1 @@ -107,7 +108,8 @@ -DSQLITE_HAS_CODEC -DHAVE_USLEEP=1 -DSQLITE_TEMP_STORE=3 -DSQLCIPHER_CRYPTO_CC -DSQLITE_LOCKING_STYLE=1 -DNDEBUG - -DSQLITE_THREADSAFE=2 -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DECLTYPE + -DSQLITE_THREADSAFE=1 + -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_JSON1