Skip to content

Commit 9d2939f

Browse files
committed
test: demo update
1 parent d491e11 commit 9d2939f

File tree

5 files changed

+29
-34
lines changed

5 files changed

+29
-34
lines changed

demo/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
"id": "com.akylas.nativescript.cartodemo"
44
},
55
"dependencies": {
6+
"@nativescript/core": "6.5.25",
67
"nativescript-carto": "file:../plugin",
7-
"nativescript-theme-core": "^2.0.21",
8-
"nativescript-unit-test-runner": "^0.7.0",
9-
"nativescript-zip2": "^1.3.5",
10-
"source-map-support": "^0.5.13",
11-
"@nativescript/core": "~6.1.1"
8+
"nativescript-theme-core": "^2.0.21"
129
},
1310
"devDependencies": {
1411
"@babel/core": "~7.6.0",
12+
"@nativescript/android": "7.0.1",
1513
"akylas-nativescript-vue-template-compiler": "~2.1.14",
1614
"babel-loader": "~8.0.6",
1715
"fork-ts-checker-webpack-plugin": "^1.5.0",

demo/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ module.exports = env => {
6464
if (!!development) {
6565
const srcFullPath = resolve(projectRoot, '..', 'src');
6666
aliases = Object.assign(aliases, {
67+
'tns-core-modules': '@nativescript/core',
68+
'tns-core-modules/*': '@nativescript/core/*',
6769
'#': srcFullPath,
6870
'nativescript-carto/vue$': '#/vue/index',
6971
'nativescript-carto$': '#/carto.' + platform,

demo_vue/app/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<Page @navigatedTo="onNavigatedTo">
2+
<Page @navigatedTo="onNavigatedTo" backgroundColor="red">
33
<ActionBar title="Carto Samples" />
44
<StackLayout>
5-
<CollectionView width="100%" height="100%" colWidth="50%" rowHeight="200" ref="listView" for="item in itemList" backgroundColor="#ECECEC">
5+
<CollectionView width="100%" height="100%" colWidth="50%" rowHeight="200" ref="listView" for="item in itemList" backgroundColor="red">
66
<v-template>
77
<GridLayout width="100%" height="100%" rows="*" columns="*" padding="10">
88
<StackLayout padding="5" width="100%" height="100%" backgroundColor="white" orientation="vertical" @tap="onItemTap(item)">

demo_vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
},
1414
"devDependencies": {
1515
"@babel/core": "~7.12.10",
16-
"@nativescript/android": "7.0.1",
1716
"@nativescript/core": "7.0.13",
1817
"@nativescript/types": "7.0.4",
1918
"@nativescript/webpack": "3.0.8",
2019
"babel-loader": "~8.2.2",
2120
"nativescript-vue-template-compiler": "~2.8.3",
2221
"node-sass": "^5.0.0",
22+
"tns-android":"6.5.3",
2323
"tslib": "^2.0.3",
2424
"typescript": "3.9.7",
2525
"vue": "^2.6.12",

demo_vue/pnpm-lock.yaml

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

0 commit comments

Comments
 (0)