Permalink
Browse files

chore(deps): update Angular to 2.0.2 (#93)

* chore(deps): update React Native to 0.34.1
* chore(deps): update Angular to 2.0.2
  • Loading branch information...
1 parent 93eb647 commit cfec7b468f298ea3e28d5170c5a6660a9ae78081 @mlaval mlaval committed on GitHub Oct 6, 2016
Showing with 28 additions and 13 deletions.
  1. +2 −2 gulpfile.js
  2. +11 −11 package.json
  3. +9 −0 src/components/common/webview.ts
  4. +6 −0 src/renderer/renderer.ts
View
@@ -86,7 +86,7 @@ gulp.task('!assets', function () {
return gulp.src(PATHS.sources.sampleAssets).pipe(gulp.dest(PATHS.app + '/' + APP_NAME));
});
gulp.task('!transpile', ['!assets'], function () {
- return ts2js([PATHS.sources.sample, PATHS.sources.src], PATHS.tmp);
+ return ts2js([PATHS.sources.sample, PATHS.sources.src], PATHS.tmp, false, false);
});
gulp.task('!copyToNodeModules', ['!transpile'], function () {
return gulp.src(PATHS.tmp + '/src/**/*').pipe(gulp.dest(PATHS.app + '/' + APP_NAME + '/node_modules/angular2-react-native'));
@@ -181,7 +181,7 @@ gulp.task('start.ios.aot', function (neverDone) {
/******************************* BROWSER **************************************/
/**********************************************************************************/
gulp.task('ts2system', ['clean.code'], function () {
- return ts2js([PATHS.sources.src, PATHS.sources.test], PATHS.destination, true);
+ return ts2js([PATHS.sources.src, PATHS.sources.test], PATHS.destination, true, false);
});
gulp.task('karma-launch', function() {
View
@@ -25,7 +25,7 @@
},
"homepage": "https://github.com/angular/react-native-renderer/",
"devDependencies": {
- "@angular/compiler-cli": "0.6.2",
+ "@angular/compiler-cli": "0.6.4",
"babel-preset-es2015": "^6.14.0",
"del": "^1.2.0",
"glob": "^4.0.6",
@@ -49,19 +49,19 @@
"systemjs": "^0.19.9",
"systemjs-builder": "^0.15.14",
"through2": "~0.6.3",
- "typescript": "^2.0.2"
+ "typescript": "^2.0.3"
},
"dependencies": {
- "@angular/common": "2.0.0",
- "@angular/compiler": "2.0.0",
- "@angular/core": "2.0.0",
- "@angular/http": "2.0.0",
- "@angular/platform-browser": "2.0.0",
- "@angular/platform-browser-dynamic": "2.0.0",
- "@angular/platform-server": "2.0.0",
- "@angular/router": "3.0.0",
+ "@angular/common": "2.0.2",
+ "@angular/compiler": "2.0.2",
+ "@angular/core": "2.0.2",
+ "@angular/http": "2.0.2",
+ "@angular/platform-browser": "2.0.2",
+ "@angular/platform-browser-dynamic": "2.0.2",
+ "@angular/platform-server": "2.0.2",
+ "@angular/router": "3.0.2",
"hammerjs": "2.0.6",
- "react-native": "0.32.0",
+ "react-native": "0.34.1",
"reflect-metadata": "0.1.8",
"rxjs": "5.0.0-beta.12",
"zone.js": "mlaval/zone.js#0.6.23-fixed-for-RN"
@@ -34,6 +34,7 @@ export class Sample {}
template: `<native-webview [automaticallyAdjustContentInsets]="_automaticallyAdjustContentInsets" [contentInset]="_contentInset"
[injectedJavaScript]="_injectedJavaScript" [scalesPageToFit]="_scalesPageToFit" [source]="_source"
(topLoadingStart)="_handleLoadingStart($event)" (topLoadingFinish)="_handleLoadingFinish($event)" (topLoadingError)="_handleLoadingError($event)"
+ (topContentSizeChange)="_handleContentSizeChange($event)"
${GENERIC_BINDINGS} ${isAndroid() ? ANDROID_BINDINGS : IOS_BINDINGS}></native-webview>`
})
export class WebView extends HighLevelComponent{
@@ -56,6 +57,10 @@ export class WebView extends HighLevelComponent{
* To be documented
*/
@Output() loadingError: EventEmitter<any> = new EventEmitter();
+ /**
+ * To be documented
+ */
+ @Output() contentSizeChange: EventEmitter<any> = new EventEmitter();
//Properties
public _automaticallyAdjustContentInsets: boolean;
@@ -135,6 +140,10 @@ export class WebView extends HighLevelComponent{
this.loadingError.emit({canGoBack: event.canGoBack, canGoForward: event.canGoForward, loading: event.loading, title: event.title, url: event.url, code: event.code, description: event.description});
}
+ _handleContentSizeChange(event: any) {
+ this.contentSizeChange.emit(event);
+ }
+
//Commands
/**
* To be documented
@@ -41,6 +41,12 @@ export class ReactNativeElementSchemaRegistry extends ElementSchemaRegistry {
securityContext(tagName: string, propName: string): any {
return 0;
}
+ validateProperty(name: string): {error: boolean; msg?: string} {
+ return {error: false};
+ }
+ validateAttribute(name: string): {error: boolean; msg?: string} {
+ return {error: false};
+ }
}
export class ReactNativeSanitizer implements Sanitizer {

0 comments on commit cfec7b4

Please sign in to comment.