Skip to content

Commit f6eb7fc

Browse files
author
Christopher J. Brody
committed
SQLite 3.40.0 update
from cordova-sqlite-storage-dependencies@4.1.0 minor test & doc updates
1 parent cdfeb05 commit f6eb7fc

5 files changed

Lines changed: 12 additions & 10 deletions

File tree

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#### cordova-sqlite-storage 6.0.1-dev
44

5+
- SQLite 3.40.0 update from cordova-sqlite-storage-dependencies@4.1.0
6+
57
#### cordova-sqlite-storage 6.0.0
68

79
- use cordova-sqlite-storage-dependencies@4.0.0 with Android JARs built from android-sqlite-native-ndk-connector and android-sqlite-ndk-native-driver, with enhancements by Luis Silva of OutSystems needed for some Android 11 devices, drops support for Android pre-5.1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ See the [**Sample**](#sample) section below for a sample with a more detailed ex
203203
- A recent version of the Cordova CLI is recommended.
204204
- This plugin version uses a `before_plugin_install` hook to install sqlite3 library dependencies from [`cordova-sqlite-storage-dependencies`](https://www.npmjs.com/package/cordova-sqlite-storage-dependencies) via npm.
205205
- Use of other systems such as Cordova Plugman, PhoneGap CLI, PhoneGap Build, and Intel XDK is no longer supported by this plugin version since they do not honor the `before_plugin_install` hook. The supported solution is to use [`storesafe/cordova-sqlite-evcore-extbuild-free`](https://github.com/storesafe/cordova-sqlite-evcore-extbuild-free) (GPL v3 or commercial license terms); deprecated alternative with permissive license terms is available at: [`brodybits/cordova-sqlite-legacy-build-support`](https://github.com/brodybits/cordova-sqlite-legacy-build-support) (very limited testing, very limited updates).
206-
- SQLite `3.32.3` included when building (all platforms), with the following compile-time definitions:
206+
- SQLite `3.40.0` included when building (all platforms), with the following compile-time definitions:
207207
- `SQLITE_THREADSAFE=1` (`SQLITE_THREADSAFE=0` for sql.js on browser platform)
208208
- `SQLITE_DEFAULT_SYNCHRONOUS=3` (EXTRA DURABLE build setting) ref: [`storesafe/cordova-sqlite-storage#736`](https://github.com/storesafe/cordova-sqlite-storage/issues/736) (except for sql.js on browser platform)
209209
- `SQLITE_DEFAULT_MEMSTATUS=0` (except for sql.js on browser platform)
@@ -227,7 +227,7 @@ See the [**Sample**](#sample) section below for a sample with a more detailed ex
227227
- <https://www.sqlite.org/releaselog/3_26_0.html>
228228
- The iOS database location is now mandatory, as documented below.
229229
- This version branch supports the use of two (2) possible Android sqlite database implementations:
230-
- default: lightweight [`android-sqlite-native-ndk-connector`](https://github.com/brodybits/android-sqlite-native-ndk-connector), using SQLite3 NDK component built from [`android-sqlite-ndk-native-driver`](https://github.com/brodybits/android-sqlite-ndk-native-driver)
230+
- default: lightweight [`android-sqlite-native-ndk-connector`](https://github.com/brodybits/android-sqlite-native-ndk-connector), using SQLite3 NDK component built from [`github:brodybits/android-sqlite-ndk-native-driver` - `sqlite-storage-ndk-native-driver` branch](https://github.com/brodybits/android-sqlite-ndk-native-driver/tree/sqlite-storage-ndk-native-driver) and [`brodybits/android-sqlite-native-ndk-connector`](https://github.com/brodybits/android-sqlite-native-ndk-connector)
231231
- optional: Android system database implementation, using the `androidDatabaseProvider: 'system'` setting in `sqlitePlugin.openDatabase()` call as described in the [**Android database provider**](#android-database-provider) section below.
232232
- Support for WP8 along with Windows 8.1/Windows Phone 8.1/Windows 10 using Visual Studio 2015 is available in: [`brodybits/cordova-sqlite-legacy-build-support`](https://github.com/brodybits/cordova-sqlite-legacy-build-support)
233233
- The following features are available in [`brodybits/cordova-sqlite-ext`](https://github.com/brodybits/cordova-sqlite-ext):

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"homepage": "https://github.com/xpbrew/cordova-sqlite-storage",
3434
"dependencies": {
35-
"cordova-sqlite-storage-dependencies": "4.0.0"
35+
"cordova-sqlite-storage-dependencies": "4.1.0"
3636
},
3737
"scripts": {
3838
"clean-spec": "rimraf spec/[mnp]* && git checkout -- spec/config.xml spec/package.json && git status --ignored",

spec/www/spec/db-tx-sql-features-test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ var mytests = function() {
179179
});
180180
}, MYTIMEOUT);
181181

182-
// Test for Cordova-sqlcipher-adapter version (SQLCipher 3.4.0 based on SQLite 3.11.0)
182+
// now enabled by default in recent SQLite versions
183+
// as spotted in sql.js update history
183184
it(suiteName + 'Basic JSON1 json test', function(done) {
184-
//if (isWebSql) pending('SKIP for Web SQL (not implemented)');
185-
pending('SKIP: NOT IMPLEMENTED for this version');
185+
if (isWebSql || isImpl2) pending('SKIP ...'); // XXX TBD ...
186186

187187
var db = openDatabase('basic-json1-json-test.db', '1.0', 'Test', DEFAULT_SIZE);
188188

@@ -209,10 +209,10 @@ var mytests = function() {
209209
});
210210
}, MYTIMEOUT);
211211

212-
// Test for Cordova-sqlcipher-adapter version (SQLCipher 3.4.0 based on SQLite 3.11.0)
212+
// now enabled by default in recent SQLite versions
213+
// as spotted in sql.js update history
213214
it(suiteName + 'JSON1 json_object test', function(done) {
214-
//if (isWebSql) pending('SKIP for Web SQL (not implemented)');
215-
pending('SKIP: NOT IMPLEMENTED for this version');
215+
if (isWebSql || isImpl2) pending('SKIP ...'); // XXX TBD ...
216216

217217
var db = openDatabase('json1-json-object-test.db', '1.0', 'Test', DEFAULT_SIZE);
218218

spec/www/spec/sqlite-version-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ var mytests = function() {
102102
expect(rs).toBeDefined();
103103
expect(rs.rows).toBeDefined();
104104
expect(rs.rows.length).toBe(1);
105-
expect(rs.rows.item(0).myResult).toBe('3.32.3');
105+
expect(rs.rows.item(0).myResult).toBe('3.40.0');
106106

107107
// Close (plugin only) & finish:
108108
(isWebSql) ? done() : db.close(done, done);

0 commit comments

Comments
 (0)