Skip to content

Commit 65a0e23

Browse files
author
Chris Brody
authored
Merge pull request #1 from brodybits/json1-build
JSON1 build
2 parents b6959d3 + 20e3263 commit 65a0e23

29 files changed

+35708
-21511
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node_modules
66
spec/myplugin
77
spec/plugins
88
spec/platforms
9+
spec/www/index.js

CHANGES.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changes
22

3+
# sqlite-evcustom-browser-memory-storage-ext-free 0.0.3-dev
4+
5+
- sql-memory-growth.js with FTS5, R-Tree, and JSON1 enabled from the following custom sql.js branch: <https://github.com/brodybits/sql.js/tree/sqlite-3.26.0-json1>
6+
7+
# sqlite-evcustom-browser-memory-storage-ext-free 0.0.2-dev
8+
9+
# cordova-sqlite-evplus-ext-free 0.3.7
10+
11+
## cordova-sqlite-evcore-extbuild-free 0.9.10
12+
13+
_Not enabled in this project:_
14+
15+
- Include SQLite 3.26.0 update from cordova-sqlite-evcore-free-dependencies 0.8.7
16+
17+
#### cordova-sqlite-storage 2.5.1
18+
19+
_Not enabled in this project:_
20+
21+
- fix internal plugin cleanup error log on Android
22+
23+
#### cordova-sqlite-storage 2.5.0
24+
25+
- androidDatabaseProvider: 'system' setting, to replace androidDatabaseImplementation setting which is now deprecated
26+
27+
### cordova-sqlite-evcore-common-free 0.0.3
28+
29+
- Internal error message fix for evcore on Android
30+
331
# sqlite-evcustom-browser-memory-storage-ext-free 0.0.1-dev
432

533
- New version for browser platform, with use of Cordova __removed__, with SQLite 3.26.0 update from the following branch: <https://github.com/brodybits/sql.js/tree/sqlite-3.26.0-build>
@@ -109,7 +137,7 @@
109137

110138
## cordova-sqlite-evcore-extbuild-free 0.9.2
111139

112-
### cordova-sqlite-storage 2.2.0
140+
#### cordova-sqlite-storage 2.2.0
113141

114142
- Fix SQLiteAndroidDatabase implementation for Turkish and other foreign locales
115143

README.md

Lines changed: 75 additions & 79 deletions
Large diffs are not rendered by default.

SQLitePlugin.coffee.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,18 @@
810810
if !!openargs.createFromLocation and openargs.createFromLocation == 1
811811
openargs.createFromResource = "1"
812812

813+
if !!openargs.androidDatabaseProvider and !!openargs.androidDatabaseImplementation
814+
throw newSQLError 'AMBIGUOUS: both androidDatabaseProvider and deprecated androidDatabaseImplementation settings are present in openDatabase call. Please drop androidDatabaseImplementation in favor of androidDatabaseProvider.'
815+
816+
if openargs.androidDatabaseProvider isnt undefined and
817+
openargs.androidDatabaseProvider isnt 'default' and
818+
openargs.androidDatabaseProvider isnt 'system'
819+
throw newSQLError "Incorrect androidDatabaseProvider value. Valid values are: 'default', 'system'"
820+
821+
if !!openargs.androidDatabaseProvider and openargs.androidDatabaseProvider is 'system'
822+
openargs.androidOldDatabaseImplementation = 1
823+
824+
# DEPRECATED:
813825
if !!openargs.androidDatabaseImplementation and openargs.androidDatabaseImplementation == 2
814826
openargs.androidOldDatabaseImplementation = 1
815827

index.js

Lines changed: 39 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sqlite-evcustom-browser-memory-storage-ext-free",
3-
"version": "0.0.1-dev",
3+
"version": "0.0.3-dev",
44
"description": "SQLite evcustom browser memory storage - emulation of Cordova/PhoneGap sqlite storage plugin on browser - custom enterprise version with premium performance improvements and extra features",
55
"main": "index.js",
66
"cordova-disabled": {

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
id="sqlite-evcustom-browser-memory-storage-ext-free"
5-
version="0.0.1-dev">
5+
version="0.0.3-dev">
66

77
<name>SQLite evcustom browser memory storage - emulation of Cordova/PhoneGap sqlite storage plugin on browser - custom enterprise version with premium performance improvements and extra features</name>
88

spec/www/spec/base64-encode-test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ var isAndroid = !isWindows && /Android/.test(navigator.userAgent);
1010
// XXX
1111
var isFirefox = /Firefox/.test(navigator.userAgent);
1212
var isWebKitBrowser = !isWindows && !isAndroid && /Safari/.test(navigator.userAgent);
13+
// XXX TBD QUICK FIX ???:
14+
// var isBrowser = (/Firefox/.test(navigator.userAgent)) || (!isWindows && !isAndroid && /Safari/.test(navigator.userAgent));
1315
var isBrowser = isWebKitBrowser || isFirefox;
1416

1517
// NOTE: In the common storage-master branch there is no difference between the
@@ -26,6 +28,8 @@ var scenarioCount = (!!window.hasWebKitBrowser) ? (isAndroid ? 3 : 2) : 1;
2628
var mytests = function() {
2729

2830
for (var i=0; i<scenarioCount; ++i) {
31+
// XXX QUICK FIX:
32+
if (isBrowser) continue;
2933

3034
describe(scenarioList[i] + ': BASE64 encoding test(s)', function() {
3135
var scenarioName = scenarioList[i];

spec/www/spec/basic-db-tx-sql-storage-results.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -985,8 +985,6 @@ var mytests = function() {
985985
addColumnTest();
986986
} else {
987987
createdb.close(addColumnTest, function(e) {
988-
// XXX TBD IGNORE close error on Windows:
989-
if (isWindows) return addColumnTest();
990988
// ERROR RESULT (NOT EXPECTED):
991989
expect(false).toBe(true);
992990
expect(e).toBeDefined();
@@ -1045,8 +1043,6 @@ var mytests = function() {
10451043
tableRenameTest();
10461044
} else {
10471045
createdb.close(tableRenameTest, function(e) {
1048-
// XXX TBD IGNORE close error on Windows:
1049-
if (isWindows) return tableRenameTest();
10501046
// ERROR RESULT (NOT EXPECTED):
10511047
expect(false).toBe(true);
10521048
expect(e).toBeDefined();

spec/www/spec/browser-check-startup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ var hasMobileWKWebView = isAppleMobileOS && !!window.webkit && !!window.webkit.m
1616
window.hasBrowser = true;
1717

1818
// XXX TBD ???:
19+
// window.hasWebKitWebSQL = isAndroid || (isAppleMobileOS && !hasMobileWKWebView) || (isWebKitBrowser && !isEdgeBrowser);
1920
window.hasWebKitWebSQL = (window.cordova) ?
2021
isAndroid || (isAppleMobileOS && !isWKWebView) || (isWebKitBrowser && !isEdgeBrowser) : false
2122

0 commit comments

Comments
 (0)