diff --git a/ng-sample/app/app.ts b/ng-sample/app/app.ts index ad35174c2..b8247209f 100644 --- a/ng-sample/app/app.ts +++ b/ng-sample/app/app.ts @@ -13,17 +13,17 @@ import trace = require("trace"); trace.setCategories(routerTraceCategory); trace.enable(); -//import {RendererTest} from './examples/renderer-test'; -//import {Benchmark} from './performance/benchmark'; -//import {ListTest} from './examples/list/list-test'; -// import {ListTestAsync} from "./examples/list/list-test-async"; -// import {ImageTest} from "./examples/image/image-test"; +import {RendererTest} from './examples/renderer-test'; +import {Benchmark} from './performance/benchmark'; +import {ListTest} from './examples/list/list-test'; +import {ListTestAsync} from "./examples/list/list-test-async"; +import {ImageTest} from "./examples/image/image-test"; import {NavigationTest} from "./examples/navigation/navigation-test"; -//nativeScriptBootstrap(RendererTest); +nativeScriptBootstrap(RendererTest); //nativeScriptBootstrap(Benchmark); //nativeScriptBootstrap(ListTest); // nativeScriptBootstrap(ListTestAsync); // nativeScriptBootstrap(ImageTest); -nativeScriptBootstrap(NavigationTest, [NS_ROUTER_PROVIDERS]); +//nativeScriptBootstrap(NavigationTest, [NS_ROUTER_PROVIDERS]); diff --git a/ng-sample/hooks/before-prepare/30-remove-stale-widgets-jar.js b/ng-sample/hooks/before-prepare/30-remove-stale-widgets-jar.js deleted file mode 100644 index 14b6da1ab..000000000 --- a/ng-sample/hooks/before-prepare/30-remove-stale-widgets-jar.js +++ /dev/null @@ -1,16 +0,0 @@ -var path = require('path'); -var shelljs = require('shelljs'); - -module.exports = function ($logger, $projectData, $usbLiveSyncService) { - if (!$usbLiveSyncService.isInitialized) { - // Delete stale widgets.jar brought by old Android platforms. - // TODO: Remove this after version 1.6.0 of the Android runtime gets released - var jars = shelljs.find('platforms/android').filter(function(fileName){ - return fileName.match(/widgets.jar$/); - }); - jars.forEach(function(jarFile) { - console.log('Deleting stale jar file: ' + jarFile); - shelljs.rm(jarFile); - }); - } -}; diff --git a/package.json b/package.json index b796ee07c..8d012491a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-angular", - "version": "0.0.29", + "version": "0.0.30", "description": "", "homepage": "http://www.telerik.com", "bugs": "http://www.telerik.com", diff --git a/src/nativescript-angular/application.ts b/src/nativescript-angular/application.ts index 012a20ade..d61635f23 100644 --- a/src/nativescript-angular/application.ts +++ b/src/nativescript-angular/application.ts @@ -34,7 +34,7 @@ export type ProviderArray = Array; let _platform = null; export function bootstrap(appComponentType: any, - customProviders: ProviderArray = null, page?: Page) : Promise { + customProviders: ProviderArray = null) : Promise { NativeScriptDomAdapter.makeCurrent(); let nativeScriptProviders: ProviderArray = [ @@ -60,7 +60,7 @@ export function bootstrap(appComponentType: any, appProviders.push(customProviders); } - const pageProvider = provide(Page, {useFactory: () => page || getDefaultPage()}); + const pageProvider = provide(Page, {useFactory: getDefaultPage}); appProviders.push(pageProvider); if (!_platform) { @@ -93,7 +93,7 @@ export function nativeScriptBootstrap(appComponentType: any, customProviders?: P //profiling.start('ng-bootstrap'); console.log('BOOTSTRAPPING...'); - bootstrap(appComponentType, customProviders, page).then((appRef) => { + bootstrap(appComponentType, customProviders).then((appRef) => { //profiling.stop('ng-bootstrap'); console.log('ANGULAR BOOTSTRAP DONE.'); }, (err) =>{