From 6f8dcc987931d741d795e88e03bdd3f99ec6a504 Mon Sep 17 00:00:00 2001 From: Dimitar Kerezov Date: Thu, 23 Mar 2017 18:44:38 +0200 Subject: [PATCH] Stop stopping device detection interval Delete @exportedPromise decorator as we no longer need it Stop stopping device detection interval when deploying on iOS devices. These operations no longer conflict as the code is located in an external dependency. --- lib/common | 2 +- lib/services/livesync/livesync-service.ts | 4 +--- lib/services/local-build-service.ts | 1 - lib/services/project-service.ts | 4 ++-- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/common b/lib/common index f9990aa977..137dc3cd5c 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit f9990aa9779b2c4a5601071381f69a13b1f8e114 +Subproject commit 137dc3cd5c9fcc8870ce484026ed90f3191cddd6 diff --git a/lib/services/livesync/livesync-service.ts b/lib/services/livesync/livesync-service.ts index 8278af799c..bc9dd2677c 100644 --- a/lib/services/livesync/livesync-service.ts +++ b/lib/services/livesync/livesync-service.ts @@ -37,9 +37,7 @@ class LiveSyncService implements ILiveSyncService { platform = this.$devicesService.getDeviceByIdentifier(this.$options.device).deviceInfo.platform; liveSyncData.push(await this.prepareLiveSyncData(platform, projectData)); } else { - await this.$devicesService.initialize({ skipInferPlatform: true }); - - await this.$devicesService.stopDeviceDetectionInterval(); + await this.$devicesService.initialize({ skipInferPlatform: true, skipDeviceDetectionInterval: true }); for (let installedPlatform of this.$platformService.getInstalledPlatforms(projectData)) { if (this.$devicesService.getDevicesForPlatform(installedPlatform).length === 0) { diff --git a/lib/services/local-build-service.ts b/lib/services/local-build-service.ts index bfb18bf9bb..cea0053505 100644 --- a/lib/services/local-build-service.ts +++ b/lib/services/local-build-service.ts @@ -1,4 +1,3 @@ -// import { exportedPromise } from "../common/decorators"; import { EventEmitter } from "events"; import { BUILD_OUTPUT_EVENT_NAME } from "../constants"; diff --git a/lib/services/project-service.ts b/lib/services/project-service.ts index e0c63728a4..5054616043 100644 --- a/lib/services/project-service.ts +++ b/lib/services/project-service.ts @@ -1,7 +1,7 @@ import * as constants from "../constants"; import * as path from "path"; import * as shelljs from "shelljs"; -import { exportedPromise, exported } from "../common/decorators"; +import { exported } from "../common/decorators"; export class ProjectService implements IProjectService { @@ -16,7 +16,7 @@ export class ProjectService implements IProjectService { private $projectTemplatesService: IProjectTemplatesService, private $staticConfig: IStaticConfig) { } - @exportedPromise("projectService") + @exported("projectService") public async createProject(projectOptions: IProjectSettings): Promise { let projectName = projectOptions.projectName, selectedTemplate = projectOptions.template;