Skip to content

Commit 80ca817

Browse files
author
Elena Hristova
committed
update dependencies and fix some demo issues
1 parent c26a07c commit 80ca817

File tree

11 files changed

+40
-15155
lines changed

11 files changed

+40
-15155
lines changed

demo-angular/package-lock.json

Lines changed: 0 additions & 8842 deletions
This file was deleted.

demo-angular/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"nativescript": {
99
"id": "org.nativescript.imagedemoangular",
1010
"tns-android": {
11-
"version": "5.1.0"
11+
"version": "5.2.1"
1212
},
1313
"tns-ios": {
14-
"version": "5.1.0"
14+
"version": "5.2.0"
1515
}
1616
},
1717
"dependencies": {
@@ -29,17 +29,17 @@
2929
"nativescript-ui-listview": "~3.8.0",
3030
"reflect-metadata": "~0.1.8",
3131
"rxjs": "^6.3.3",
32-
"tns-core-modules": "^5.0.0"
32+
"tns-core-modules": "^5.2.2"
3333
},
3434
"devDependencies": {
3535
"htmlparser2": "^3.9.2",
3636
"jasmine-core": "^2.5.2",
3737
"karma": "^1.3.0",
3838
"karma-jasmine": "^1.0.2",
3939
"karma-nativescript-launcher": "^0.4.0",
40-
"nativescript-dev-typescript": "~0.7.0",
41-
"nativescript-dev-webpack": "~0.18.0",
42-
"tns-platform-declarations": "^5.0.0",
40+
"nativescript-dev-typescript": "~0.9.0",
41+
"nativescript-dev-webpack": "~0.20.3",
42+
"tns-platform-declarations": "^5.2.2",
4343
"tslint": "~5.11.0",
4444
"typescript": "^3.1.6",
4545
"zone.js": "^0.8.4",

demo-vue/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,27 @@
22
"nativescript": {
33
"id": "org.nativescript.demovue",
44
"tns-android": {
5-
"version": "5.1.0"
5+
"version": "5.2.1"
66
},
77
"tns-ios": {
8-
"version": "5.1.0"
8+
"version": "5.2.0"
99
}
1010
},
1111
"description": "NativeScript Application",
12+
"repository": "https://github.com/Akylas/nativescript-image",
1213
"dependencies": {
1314
"nativescript-image": "../plugin",
1415
"nativescript-theme-core": "~1.0.4",
15-
"nativescript-vue": "~2.0.0",
16-
"tns-core-modules": "~5.1.0"
16+
"nativescript-vue": "^2.2.0",
17+
"tns-core-modules": "^5.2.2"
1718
},
1819
"devDependencies": {
1920
"@babel/core": "~7.1.0",
2021
"@babel/preset-env": "~7.1.0",
2122
"babel-loader": "~8.0.0",
22-
"nativescript-dev-webpack": "~0.19.0",
23-
"nativescript-vue-template-compiler": "~2.0.0",
23+
"nativescript-dev-webpack": "~0.20.3",
24+
"nativescript-vue-template-compiler": "^2.2.0",
2425
"node-sass": "~4.9.0",
2526
"vue-loader": "~15.4.0"
2627
}
27-
}
28+
}

demo/app/examples/nativecolerfilter-fragment.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Img } from 'nativescript-image';
2+
3+
export function onLoaded(args) {
4+
const imageView = args.object as Img;
5+
if (imageView.android) {
6+
const matrix: android.graphics.ColorMatrix = new android.graphics.ColorMatrix();
7+
matrix.setSaturation(0);
8+
const filter: android.graphics.ColorMatrixColorFilter = new android.graphics.ColorMatrixColorFilter(
9+
matrix
10+
);
11+
imageView.android.setColorFilter(filter);
12+
}
13+
}
File renamed without changes.

0 commit comments

Comments
 (0)