Skip to content
This repository was archived by the owner on Jul 7, 2022. It is now read-only.

Commit 2bd889d

Browse files
committed
Update to support NS 6
1 parent ef5a5f5 commit 2bd889d

File tree

87 files changed

+353
-185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+353
-185
lines changed

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,18 @@
33
*.tar
44
node_modules/
55
demoos/
6+
*.zip
7+
package-lock.json
8+
9+
demo/hooks/
10+
demo/platforms/
11+
12+
demo-sync/
13+
old/
14+
graphics/
15+
encrypted/
16+
commercial/
17+
sync/
18+
19+
# Commercial Only
20+
sqlite.d.ts

README.md

Lines changed: 10 additions & 7 deletions

demo/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test.sqlite
2+
test2.sqlite

demo/app/App_Resources/Android/app.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
// implementation 'com.android.support:recyclerview-v7:+'
66
//}
77

8-
// If you want to add something to be applied before applying plugins' include.gradle files
8+
// If you want to add something to be applied before applying plugins' include.gradle files
99
// e.g. project.ext.googlePlayServicesVersion = "15.0.1"
1010
// create a file named before-plugins.gradle in the current directory and place it there
1111

12-
android {
13-
defaultConfig {
12+
android {
13+
defaultConfig {
14+
minSdkVersion 17
1415
generatedDensities = []
15-
}
16-
aaptOptions {
17-
additionalParameters "--no-version-vectors"
18-
}
19-
}
16+
}
17+
aaptOptions {
18+
additionalParameters "--no-version-vectors"
19+
}
20+
}

demo/app/App_Resources/Android/src/main/AndroidManifest.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
android:largeScreens="true"
1111
android:xlargeScreens="true"/>
1212

13-
<uses-sdk
14-
android:minSdkVersion="17"
15-
android:targetSdkVersion="__APILEVEL__"/>
16-
1713
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
1814
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
1915
<uses-permission android:name="android.permission.INTERNET"/>
@@ -28,7 +24,7 @@
2824
<activity
2925
android:name="com.tns.NativeScriptActivity"
3026
android:label="@string/title_activity_kimera"
31-
android:configChanges="keyboardHidden|orientation|screenSize"
27+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
3228
android:theme="@style/LaunchScreenTheme">
3329

3430
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"extent" : "full-screen",
55
"idiom" : "iphone",
66
"subtype" : "2688h",
7-
"filename" : "Phone XS Max - Portarit iOS 12.png",
7+
"filename" : "Default-Portrait-XS-Max.png",
88
"minimum-system-version" : "12.0",
99
"orientation" : "portrait",
1010
"scale" : "3x"
@@ -13,7 +13,7 @@
1313
"extent" : "full-screen",
1414
"idiom" : "iphone",
1515
"subtype" : "2688h",
16-
"filename" : "iPhone XS Max – Landscape iOS 12.png",
16+
"filename" : "Default-Landscape-XS-Max.png",
1717
"minimum-system-version" : "12.0",
1818
"orientation" : "landscape",
1919
"scale" : "3x"
@@ -22,7 +22,7 @@
2222
"extent" : "full-screen",
2323
"idiom" : "iphone",
2424
"subtype" : "1792h",
25-
"filename" : "iPhone XR - Portarit iOS 12.png",
25+
"filename" : "Default-Portrait-XR.png",
2626
"minimum-system-version" : "12.0",
2727
"orientation" : "portrait",
2828
"scale" : "2x"
@@ -31,7 +31,7 @@
3131
"extent" : "full-screen",
3232
"idiom" : "iphone",
3333
"subtype" : "1792h",
34-
"filename" : "iPhone XR - Landscape iOS 12.png",
34+
"filename" : "Default-Landscape-XR.png",
3535
"minimum-system-version" : "12.0",
3636
"orientation" : "landscape",
3737
"scale" : "2x"

demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
"version" : 1,
2121
"author" : "xcode"
2222
}
23-
}
23+
}

demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
{
1414
"idiom" : "universal",
15-
"filename" : "LaunchScreen.Center@3x.png",
15+
"filename" : "LaunchScreen-Center@3x.png",
1616
"scale" : "3x"
1717
}
1818
],

demo/app/main-page.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
const sqlite = require('nativescript-sqlite');
1+
const sqlite = require('@proplugins/nativescript-sqlite');
22
const ObservableArray = require("tns-core-modules/data/observable-array").ObservableArray;
33

44

55
//var Tracing = require('./tracing.js');
66
//Tracing(sqlite, {ignore: ["close", "resultType", "valueType", "_toStringArray", "_getResultEngine"], disableAddedFunction: true});
77

8-
98
var dbname = 'name_db.sqlite';
109
var db = null;
11-
var enc_db = null;
1210
var page = null;
1311

1412
var data = new ObservableArray();
@@ -22,7 +20,7 @@ if (sqlite.HAS_COMMERCIAL) {
2220

2321
if (sqlite.HAS_ENCRYPTION) {
2422
console.log("Using Encryption");
25-
//dbname = 'encrypted.sqlite';
23+
dbname = 'encrypted.sqlite';
2624
data.push({name:'Encryption Support', css:'one'});
2725
} else {
2826
console.log("No Encryption");
@@ -456,6 +454,7 @@ function setupPreparedTests(callback) {
456454
}
457455

458456
console.log("!--------- Creating Prepared Tests Data");
457+
/*
459458
db.execSQL(['drop table if exists preparetests;','create table preparetests (`int_field` integer, `num_field` numeric, `real_field` real, `text_field` text)'], function (err) {
460459
if (err) {
461460
data.push({name: 'Failed to create tables and data...', css: 'one'});
@@ -464,9 +463,9 @@ function setupPreparedTests(callback) {
464463
}
465464
callback();
466465
});
466+
*/
467467

468468

469-
/*
470469
db.execSQL('drop table if exists preparetests;', function (err) {
471470
if (err) {
472471
console.log("!---- Drop Err", err);
@@ -479,7 +478,7 @@ function setupPreparedTests(callback) {
479478
}
480479
callback();
481480
});
482-
}); */
481+
});
483482
}
484483

485484
function runPreparedTests(callback) {

demo/app/name_db.sqlite

0 Bytes
Binary file not shown.

demo/app/tests/dbAccess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Created by nathanaeland on 2/16/2016.
33
*/
44

5-
var sqlite = require('nativescript-sqlite');
5+
var sqlite = require('@proplugins/nativescript-sqlite');
66
var dbName = 'name_db.sqlite';
77

88
describe('Database', function () {

demo/app/tests/dbAccessPromise.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Created by nathanaeland on 2/16/2016.
33
*/
44

5-
var sqlite = require('nativescript-sqlite');
5+
var sqlite = require('@proplugins/nativescript-sqlite');
66
var dbName = 'name_db.sqlite';
77

88
describe('Database', function () {

demo/nsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

demo/package.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
{
22
"nativescript": {
3-
"id": "org.nativescript.demo",
4-
"tns-android": {
5-
"version": "5.2.1"
6-
},
3+
"id": "org.proplugins.demo.sqlite",
74
"tns-ios": {
8-
"version": "5.2.0"
5+
"version": "6.0.1"
6+
},
7+
"tns-android": {
8+
"version": "6.0.0"
99
}
1010
},
1111
"description": "SQLite Demo Application",
1212
"license": "MIT",
1313
"repository": "<fill-your-repository-here>",
1414
"dependencies": {
15+
"@proplugins/nativescript-sqlite": "file:../src",
1516
"nativescript-sqlite": "file:../src",
17+
"nativescript-sqlite-commercial": "../commercial",
18+
"nativescript-sqlite-encrypted": "file:../encrypted",
19+
"nativescript-sqlite-sync": "file:../sync",
1620
"nativescript-theme-core": "~1.0.4",
17-
"tns-core-modules": "^5.2.2"
21+
"tns-core-modules": "6.0.1"
1822
},
1923
"devDependencies": {
20-
"nativescript-dev-webpack": "^0.20.2"
24+
"nativescript-dev-webpack": "1.0.1",
25+
"nativescript-worker-loader": "^0.9.5"
2126
},
2227
"readme": "SQLite Demo Application"
2328
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy