Skip to content

Commit

Permalink
feat: upgrade to NS7
Browse files Browse the repository at this point in the history
  • Loading branch information
sc85 committed Oct 30, 2020
1 parent 587ead1 commit c8a8fcc
Show file tree
Hide file tree
Showing 23 changed files with 4,828 additions and 4,582 deletions.
1 change: 0 additions & 1 deletion demo/app/app.css

This file was deleted.

4 changes: 2 additions & 2 deletions demo/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ 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.
*/

import * as application from "tns-core-modules/application";
import { Application } from '@nativescript/core';

application.run({ moduleName: "main-page" });
Application.run({ moduleName: 'main-page' });

/*
Do not place any code after the application has been started as it will not
Expand Down
4 changes: 1 addition & 3 deletions demo/app/main-page.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { EventData } from "tns-core-modules/data/observable";
import { Page } from "tns-core-modules/ui/page";

import { EventData, Page } from '@nativescript/core';
import { MainViewModel } from './main-view-model';

// Event handler for Page 'loaded' event attached in main-page.xml
Expand Down
4 changes: 1 addition & 3 deletions demo/app/main-view-model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Observable } from 'data/observable';
import { PDFView } from '@finanzritter/nativescript-pdf-view';
import { Observable } from '@nativescript/core';

export class MainViewModel extends Observable {
public pdfUrls = [
Expand All @@ -23,5 +22,4 @@ export class MainViewModel extends Observable {
}

private current = 0;
private enableAnnotationRendering = true;
}
11 changes: 0 additions & 11 deletions demo/app/package.json

This file was deleted.

12 changes: 12 additions & 0 deletions demo/nativescript.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { NativeScriptConfig } from '@nativescript/core'

export default {
id: 'com.merott.nativescriptpdfviewdemo',
appResourcesPath: 'app/App_Resources',
android: {
v8Flags: '--expose_gc',
markingMode: 'none',
},
useLegacyWorkflow: false,
appPath: 'app',
} as NativeScriptConfig
3 changes: 0 additions & 3 deletions demo/nsconfig.json

This file was deleted.

8,415 changes: 4,158 additions & 4,257 deletions demo/package-lock.json

Large diffs are not rendered by default.

26 changes: 10 additions & 16 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,16 @@
"type": "git",
"url": "https://github.com/Merott/nativescript-pdf-view.git"
},
"nativescript": {
"id": "com.merott.nativescriptpdfviewdemo",
"tns-ios": {
"version": "6.0.1"
},
"tns-android": {
"version": "6.0.0"
}
},
"dependencies": {
"@finanzritter/nativescript-pdf-view": "file:../src",
"nativescript-theme-core": "~1.0.2",
"nativescript-unit-test-runner": "0.7.0",
"tns-core-modules": "6.0.1"
"@nativescript/core": "7.0.0",
"@nativescript/theme": "^3.0.0",
"@nativescript/webpack": "3.0.0",
"nativescript-unit-test-runner": "0.7.0"
},
"devDependencies": {
"@nativescript/android": "7.0.1",
"@nativescript/ios": "7.0.4",
"babel-traverse": "6.24.1",
"babel-types": "6.24.1",
"babylon": "6.17.1",
Expand All @@ -31,10 +25,10 @@
"karma": "4.1.0",
"karma-jasmine": "2.0.1",
"karma-nativescript-launcher": "^0.4.0",
"karma-webpack": "3.0.5",
"lazy": "1.0.11",
"nativescript-dev-android-snapshot": "^0.*.*",
"typescript": "~3.5.3",
"nativescript-dev-webpack": "~1.1.0",
"karma-webpack": "3.0.5"
}
"typescript": "3.9.7"
},
"main": "app.js"
}
11 changes: 7 additions & 4 deletions demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"module": "esnext",
"target": "es2017",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"lib": [
"es6",
"dom"
"dom",
"es2017"
],
"baseUrl": ".",
"paths": {
"*": [
"./node_modules/tns-core-modules/*",
"./node_modules/*"
]
}
},
"moduleResolution": "node",
"removeComments": false
},
"exclude": [
"node_modules",
Expand Down
7 changes: 0 additions & 7 deletions demo/tsconfig.tns.json

This file was deleted.

Loading

0 comments on commit c8a8fcc

Please sign in to comment.