From 3390c4f76a8c30bf90733e56ea1bcbcf92afa4b5 Mon Sep 17 00:00:00 2001 From: "Christopher J. Brody" Date: Sun, 11 Mar 2018 14:44:25 -0400 Subject: [PATCH] cordova-sqlite-legacy with SQLITE_THREADSAFE=1 for iOS/macOS (cordova-sqlite-legacy 2.0.1) ref: litehelpers/Cordova-sqlite-storage#754 --- CHANGES.md | 4 ++++ README.md | 2 +- package.json | 2 +- plugin.xml | 6 +++--- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 393bcac3..e71c66f0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Changes +# cordova-sqlite-legacy 2.0.1 + +- cordova-sqlite-legacy with SQLITE_THREADSAFE=1 for iOS/macOS ref: litehelpers/Cordova-sqlite-storage#754 () + # cordova-sqlite-legacy 2.0.0 - New cordova-sqlite-legacy plugin version branch based on cordova-sqlite-ext (0.10.7), with support added for Windows 8.1 and Windows Phone 8.1 diff --git a/README.md b/README.md index ea153015..a1beb596 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ See the [Sample section](#sample) for a sample with a more detailed explanation. - REGEXP for Android (default Android-sqlite-connector database implementation), iOS, and macOS using [brodybits / sqlite3-regexp-cached](https://github.com/brodybits/sqlite3-regexp-cached) (based on by Alexey Tourbin, public domain) - DEPRECATED and WILL BE REMOVED in the near future: BLOB data reading (from pre-populated database) for Android/iOS, with the following caveat for the Android version: the database must be opened with the `androidDatabaseImplementation: 2` option to use the built-in android.database implementation. **RECOMMENDED SOLUTION**: use SELECT BASE64(column) to SELECT BLOB data as described below (WITHOUT use of the `androidDatabaseImplementation: 2` setting). - SQLite version `3.15.2` included when building with the following build settings: - - `SQLITE_THREADSAFE=2` on iOS/macOS (`SQLITE_THREADSAFE=1` on Android/Windows) + - `SQLITE_THREADSAFE=1` - `SQLITE_DEFAULT_MEMSTATUS=0` (iOS/macOS only) - `SQLITE_OMIT_DECLTYPE` (iOS/macOS only) - `SQLITE_OMIT_DEPRECATED` (iOS/macOS only) diff --git a/package.json b/package.json index a1f416f3..d64bab57 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-sqlite-legacy", - "version": "2.0.0", + "version": "2.0.1", "description": "Native interface to SQLite for PhoneGap/Cordova - legacy plugin version with limited extra features", "cordova": { "id": "cordova-sqlite-legacy", diff --git a/plugin.xml b/plugin.xml index 1a261d51..f1888093 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="2.0.1"> Cordova sqlite storage plugin - legacy plugin version with limited extra features @@ -70,7 +70,7 @@ + compiler-flags="-w -DSQLITE_THREADSAFE=1 -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_TEMP_STORE=2 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_DEFAULT_PAGE_SIZE=1024 -DSQLITE_DEFAULT_CACHE_SIZE=2000" /> @@ -101,7 +101,7 @@ + compiler-flags="-w -DSQLITE_THREADSAFE=1 -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_TEMP_STORE=2 -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_DEFAULT_PAGE_SIZE=1024 -DSQLITE_DEFAULT_CACHE_SIZE=2000" />