Skip to content

Commit 9648783

Browse files
committed
Merge pull request #63 from NativeScript/hdeshev/beta-3
Upgrade to beta 3
2 parents 2083407 + 28f12de commit 9648783

File tree

10 files changed

+74
-164
lines changed

10 files changed

+74
-164
lines changed

ng-sample/gruntfile.js

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

ng-sample/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
},
2424
"homepage": "https://github.com/NativeScript/template-hello-world",
2525
"dependencies": {
26-
"tns-core-modules": "^1.6.0-angular-4",
27-
"angular2": "2.0.0-beta.2",
26+
"tns-core-modules": "^1.6.0-angular-5",
27+
"angular2": "2.0.0-beta.3",
2828
"parse5": "1.4.2",
2929
"punycode": "1.3.2",
3030
"querystring": "0.2.0",
3131
"url": "0.10.3",
3232
"reflect-metadata": "0.1.2",
3333
"rxjs": "5.0.0-beta.0",
34-
"zone.js": "0.5.10"
34+
"zone.js": "0.5.11"
3535
},
3636
"devDependencies": {
3737
"grunt": "0.4.5",

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-angular",
3-
"version": "0.0.27",
3+
"version": "0.0.29",
44
"description": "",
55
"homepage": "http://www.telerik.com",
66
"bugs": "http://www.telerik.com",
@@ -14,16 +14,16 @@
1414
},
1515
"scripts": {},
1616
"dependencies": {
17-
"tns-core-modules": "^1.6.0-angular-4",
18-
"angular2": "2.0.0-beta.2",
17+
"tns-core-modules": "^1.6.0-angular-5",
18+
"angular2": "2.0.0-beta.3",
1919
"es6-shim": "^0.33.3",
2020
"parse5": "1.4.2",
2121
"punycode": "1.3.2",
2222
"querystring": "0.2.0",
2323
"url": "0.10.3",
2424
"reflect-metadata": "0.1.2",
2525
"rxjs": "5.0.0-beta.0",
26-
"zone.js": "0.5.10"
26+
"zone.js": "0.5.11"
2727
},
2828
"devDependencies": {
2929
"grunt": "0.4.5",

src/global.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/// <reference path="../node_modules/angular2/typings/es6-shim/es6-shim.d.ts" />
2+
/// <reference path="../node_modules/angular2/typings/node/node.d.ts" />
3+
/// <reference path="../node_modules/tns-core-modules/tns-core-modules.base.d.ts" />
14
declare var assert: any;
25

36
interface Map<K, V> {

src/nativescript-angular/application.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1+
//Import globals before the zone, so the latter can patch the global functions
2+
import 'globals';
3+
import "zone.js/dist/zone.js"
14
import 'reflect-metadata';
25
import './polyfills/array';
3-
import 'globals';
4-
//HACK: Unhack our global lazy loaded functions hack to make zone monkey patching work.
5-
var __dummy_setTimeout = global.setTimeout;
6-
var __dummy_clearTimeout = global.clearTimeout;
7-
var __dummy_setInterval = global.setInterval;
8-
var __dummy_clearInterval = global.clearInterval;
9-
import './zone';
106
import {isPresent, Type} from 'angular2/src/facade/lang';
117
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
128
import {platform, ComponentRef, PLATFORM_DIRECTIVES, PLATFORM_PIPES} from 'angular2/core';

src/nativescript-angular/renderer.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Inject, Injectable} from 'angular2/src/core/di';
22
import {
33
Renderer,
44
RootRenderer,
5-
RenderComponentType
5+
RenderComponentType,
6+
RenderDebugInfo
67
} from 'angular2/src/core/render/api';
78
import {isBlank} from 'angular2/src/facade/lang';
89
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
@@ -121,6 +122,11 @@ export class NativeScriptRenderer extends Renderer {
121122
console.log('NativeScriptRenderer.setBindingDebugInfo: ' + renderElement + ', ' + propertyName + ' = ' + propertyValue);
122123
}
123124

125+
setElementDebugInfo(renderElement: any, info: RenderDebugInfo): void {
126+
console.log('NativeScriptRenderer.setElementDebugInfo: ' + renderElement);
127+
}
128+
129+
124130
/**
125131
* Calls a method on an element.
126132
*/

src/nativescript-angular/zone.ts

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

src/nativescript-angular/zone_patch.ts

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

tests/package.json

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
{
2-
"nativescript": {
3-
"id": "org.nativescript.helloworldng",
4-
"tns-ios": {
5-
"version": "1.5.2"
6-
},
7-
"tns-android": {
8-
"version": "1.5.1"
9-
}
10-
},
11-
"name": "nativescript-hello-world-ng",
12-
"main": "app.js",
13-
"version": "1.0.0",
14-
"author": "Telerik <support@telerik.com>",
15-
"description": "Nativescript Angular Hello World template",
16-
"license": "BSD",
17-
"keywords": [
18-
"telerik",
19-
"mobile",
20-
"angular",
21-
"nativescript",
22-
"{N}",
23-
"tns",
24-
"appbuilder",
25-
"template"
26-
],
27-
"repository": {
28-
"type": "git",
29-
"url": "git://github.com/NativeScript/template-hello-world-ng"
30-
},
31-
"homepage": "http://nativescript.org",
32-
"dependencies": {
33-
"angular2": "2.0.0-beta.2",
34-
"nativescript-unit-test-runner": "^0.2.8",
35-
"parse5": "1.4.2",
36-
"punycode": "1.3.2",
37-
"querystring": "0.2.0",
38-
"reflect-metadata": "0.1.2",
39-
"rxjs": "5.0.0-beta.0",
40-
"tns-core-modules": "1.6.0-angular-4",
41-
"url": "0.10.3",
42-
"zone.js": "0.5.10"
43-
},
44-
"devDependencies": {
45-
"chai": "^3.5.0",
46-
"karma": "^0.13.19",
47-
"karma-chai": "^0.1.0",
48-
"karma-mocha": "^0.2.1",
49-
"karma-nativescript-launcher": "^0.3.1",
50-
"mocha": "^2.4.5",
51-
"nativescript-dev-typescript": "^0.2.2",
52-
"shelljs": "^0.5.3",
53-
"typescript": "^1.7.5"
54-
}
2+
"nativescript": {
3+
"id": "org.nativescript.helloworldng",
4+
"tns-ios": {
5+
"version": "1.5.2"
6+
},
7+
"tns-android": {
8+
"version": "1.5.1"
9+
}
10+
},
11+
"name": "nativescript-hello-world-ng",
12+
"main": "app.js",
13+
"version": "1.0.0",
14+
"author": "Telerik <support@telerik.com>",
15+
"description": "Nativescript Angular Hello World template",
16+
"license": "BSD",
17+
"keywords": [
18+
"telerik",
19+
"mobile",
20+
"angular",
21+
"nativescript",
22+
"{N}",
23+
"tns",
24+
"appbuilder",
25+
"template"
26+
],
27+
"repository": {
28+
"type": "git",
29+
"url": "git://github.com/NativeScript/template-hello-world-ng"
30+
},
31+
"homepage": "http://nativescript.org",
32+
"dependencies": {
33+
"angular2": "2.0.0-beta.3",
34+
"nativescript-unit-test-runner": "^0.2.8",
35+
"parse5": "1.4.2",
36+
"punycode": "1.3.2",
37+
"querystring": "0.2.0",
38+
"reflect-metadata": "0.1.2",
39+
"rxjs": "5.0.0-beta.0",
40+
"tns-core-modules": "1.6.0-angular-5",
41+
"url": "0.10.3",
42+
"zone.js": "0.5.11"
43+
},
44+
"devDependencies": {
45+
"chai": "^3.5.0",
46+
"karma": "^0.13.19",
47+
"karma-chai": "^0.1.0",
48+
"karma-mocha": "^0.2.1",
49+
"karma-nativescript-launcher": "^0.3.1",
50+
"mocha": "^2.4.5",
51+
"nativescript-dev-typescript": "^0.2.2",
52+
"shelljs": "^0.5.3",
53+
"typescript": "^1.7.5"
54+
}
5555
}

tests/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
"node_modules",
2929
"platforms"
3030
]
31-
}
31+
}

0 commit comments

Comments
 (0)