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

Commit

Permalink
Fixed a couple small issued; add multitrheading support
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanaelA committed Jan 19, 2019
1 parent f749449 commit 7849276
Show file tree
Hide file tree
Showing 33 changed files with 439 additions and 119 deletions.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2017 Nathanael Anderson
Copyright (c) 2015-2019 Nathanael Anderson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -14,13 +14,13 @@ The [commercial version](http://nativescript.tools/product/10) comes with the fo
- Prepared statements
- Multilevel transaction support
- Encryption
- (Coming soon) Multi-threading
- **Multi-threading**

## Installation
- tns plugin add nativescript-sqlite@latest

### Installation of Encrypted Plugin (Provides encryption support)
- tns plugin add nativescript-sqlite-encrypted-1.2.0.tgz
- tns plugin add nativescript-sqlite-encrypted-1.3.0.tgz

### Installation of Commercial Plugin (Provides Transactions and Prepared statments)
- tns plugin add nativescript-sqlite-commercial-1.2.0.tgz
- tns plugin add nativescript-sqlite-commercial-1.3.0.tgz
12 changes: 0 additions & 12 deletions demo/.gitignore

This file was deleted.

26 changes: 26 additions & 0 deletions demo/README.md
@@ -0,0 +1,26 @@
# NativeScript JavaScript Template

This template creates a "Hello, world" NativeScript app using JavaScript.

This is the default template, so you can create a new app that uses it with the `--template` option:

```
tns create my-app-name --template tns-template-hello-world
```

Or without it:

```
tns create my-app-name
```

> Note: Both commands will create a new NativeScript app that uses the latest version of this template published to [npm] (https://www.npmjs.com/package/tns-template-hello-world).
If you want to create a new app that uses the source of the template from the `master` branch, you can execute the following:

```
tns create my-app-name --template https://github.com/NativeScript/template-hello-world.git#master
```
# Issues

Issues related to `template-hello-world` template should be logged in the https://github.com/NativeScript/NativeScript repository.
14 changes: 5 additions & 9 deletions demo/app/App_Resources/Android/app.gradle
Expand Up @@ -2,20 +2,16 @@

// Uncomment to add recyclerview-v7 dependency
//dependencies {
// compile 'com.android.support:recyclerview-v7:+'
// implementation 'com.android.support:recyclerview-v7:+'
//}

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

android {
defaultConfig {
generatedDensities = []
applicationId = "org.nativescript.demo"

//override supported platforms
// ndk {
// abiFilters.clear()
// abiFilters "armeabi-v7a"
// }

}
aaptOptions {
additionalParameters "--no-version-vectors"
Expand Down
@@ -1,5 +1,17 @@
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "icon-20@2x.png",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "icon-20@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
Expand Down Expand Up @@ -30,18 +42,6 @@
"filename" : "icon-40@3x.png",
"scale" : "3x"
},
{
"size" : "57x57",
"idiom" : "iphone",
"filename" : "icon-57.png",
"scale" : "1x"
},
{
"size" : "57x57",
"idiom" : "iphone",
"filename" : "icon-57@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
Expand All @@ -55,51 +55,39 @@
"scale" : "3x"
},
{
"size" : "29x29",
"size" : "20x20",
"idiom" : "ipad",
"filename" : "icon-29.png",
"filename" : "icon-20.png",
"scale" : "1x"
},
{
"size" : "29x29",
"size" : "20x20",
"idiom" : "ipad",
"filename" : "icon-29@2x.png",
"filename" : "icon-20@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "icon-40.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "icon-40@2x.png",
"scale" : "2x"
},
{
"size" : "50x50",
"size" : "29x29",
"idiom" : "ipad",
"filename" : "icon-50.png",
"filename" : "icon-29.png",
"scale" : "1x"
},
{
"size" : "50x50",
"size" : "29x29",
"idiom" : "ipad",
"filename" : "icon-50@2x.png",
"filename" : "icon-29@2x.png",
"scale" : "2x"
},
{
"size" : "72x72",
"size" : "40x40",
"idiom" : "ipad",
"filename" : "icon-72.png",
"filename" : "icon-40.png",
"scale" : "1x"
},
{
"size" : "72x72",
"size" : "40x40",
"idiom" : "ipad",
"filename" : "icon-72@2x.png",
"filename" : "icon-40@2x.png",
"scale" : "2x"
},
{
Expand All @@ -119,6 +107,12 @@
"idiom" : "ipad",
"filename" : "icon-83.5@2x.png",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "icon-1024.png",
"scale" : "1x"
}
],
"info" : {
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -1,5 +1,41 @@
{
"images" : [
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "2688h",
"filename" : "Phone XS Max - Portarit iOS 12.png",
"minimum-system-version" : "12.0",
"orientation" : "portrait",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "2688h",
"filename" : "iPhone XS Max – Landscape iOS 12.png",
"minimum-system-version" : "12.0",
"orientation" : "landscape",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "1792h",
"filename" : "iPhone XR - Portarit iOS 12.png",
"minimum-system-version" : "12.0",
"orientation" : "portrait",
"scale" : "2x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "1792h",
"filename" : "iPhone XR - Landscape iOS 12.png",
"minimum-system-version" : "12.0",
"orientation" : "landscape",
"scale" : "2x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
Expand All @@ -10,12 +46,12 @@
"scale" : "3x"
},
{
"orientation" : "landscape",
"idiom" : "iphone",
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "2436h",
"filename" : "Default-Landscape-X.png",
"minimum-system-version" : "11.0",
"subtype" : "2436h",
"orientation" : "landscape",
"scale" : "3x"
},
{
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -12,11 +12,12 @@
},
{
"idiom" : "universal",
"filename" : "LaunchScreen-AspectFill@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -12,6 +12,7 @@
},
{
"idiom" : "universal",
"filename" : "LaunchScreen.Center@3x.png",
"scale" : "3x"
}
],
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions demo/app/app.js
Expand Up @@ -4,8 +4,7 @@ You can use this file to perform app-level initialization, but the primary
purpose of the file is to pass control to the app’s first module.
*/

require("./bundle-config");
var application = require("application");
var application = require("tns-core-modules/application");

application.run({ moduleName: "app-root" });

Expand Down
9 changes: 0 additions & 9 deletions demo/app/bundle-config.js

This file was deleted.

2 changes: 1 addition & 1 deletion demo/app/main-page.js
Expand Up @@ -38,7 +38,7 @@ exports.pageLoaded = function(args) {
if (!sqlite.exists(dbname)) {
sqlite.copyDatabase(dbname);
}
new sqlite(dbname, {key: 'testing'}, function(err, dbConnection) {
new sqlite(dbname, {key: 'testing', multithreading: !!sqlite.HAS_COMMERCIAL}, function(err, dbConnection) {
if (err) {
console.log(err, err.stack);
}
Expand Down
2 changes: 1 addition & 1 deletion demo/app/main-page.xml
Expand Up @@ -13,7 +13,7 @@
<GridLayout row="1" rows="*,auto" columns="*,auto" class="border">
<TextField id="entry" hint="Type a new name" text=""/>
<Button id="go" col="1" text="Add" tap="addNewName"/>
<HtmlView row="1" colSpan="2" html="&lt;a href='http://www.master-technology.com'&gt;(c)2015-2018, Master Technology&lt;/a&gt;" class="copyright"/>
<HtmlView row="1" colSpan="2" html="&lt;a href='http://www.master-technology.com'&gt;(c)2015-2019, Master Technology&lt;/a&gt;" class="copyright"/>
</GridLayout>
</GridLayout>
</Page>
10 changes: 4 additions & 6 deletions demo/app/package.json
@@ -1,8 +1,6 @@
{
"android": {
"v8Flags": "--expose_gc"
},
"main": "app.js",
"name": "tns-template-hello-world",
"version": "4.1.0"
"main": "app.js",
"android": {
"v8Flags": "--expose_gc"
}
}
10 changes: 10 additions & 0 deletions demo/jsconfig.json
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"*": ["./node_modules/tns-core-modules/*", "./node_modules/*"],
"~/*": ["app/*"]
}
},
"include": ["app/**/*"]
}

0 comments on commit 7849276

Please sign in to comment.