Skip to content

Commit 62a3872

Browse files
Stop stopping device detection interval (#2646)
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.
1 parent 994b666 commit 62a3872

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

lib/services/livesync/livesync-service.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ class LiveSyncService implements ILiveSyncService {
3737
platform = this.$devicesService.getDeviceByIdentifier(this.$options.device).deviceInfo.platform;
3838
liveSyncData.push(await this.prepareLiveSyncData(platform, projectData));
3939
} else {
40-
await this.$devicesService.initialize({ skipInferPlatform: true });
41-
42-
await this.$devicesService.stopDeviceDetectionInterval();
40+
await this.$devicesService.initialize({ skipInferPlatform: true, skipDeviceDetectionInterval: true });
4341

4442
for (let installedPlatform of this.$platformService.getInstalledPlatforms(projectData)) {
4543
if (this.$devicesService.getDevicesForPlatform(installedPlatform).length === 0) {

lib/services/local-build-service.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// import { exportedPromise } from "../common/decorators";
21
import { EventEmitter } from "events";
32
import { BUILD_OUTPUT_EVENT_NAME } from "../constants";
43

lib/services/project-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as constants from "../constants";
22
import * as path from "path";
33
import * as shelljs from "shelljs";
4-
import { exportedPromise, exported } from "../common/decorators";
4+
import { exported } from "../common/decorators";
55

66
export class ProjectService implements IProjectService {
77

@@ -16,7 +16,7 @@ export class ProjectService implements IProjectService {
1616
private $projectTemplatesService: IProjectTemplatesService,
1717
private $staticConfig: IStaticConfig) { }
1818

19-
@exportedPromise("projectService")
19+
@exported("projectService")
2020
public async createProject(projectOptions: IProjectSettings): Promise<void> {
2121
let projectName = projectOptions.projectName,
2222
selectedTemplate = projectOptions.template;

0 commit comments

Comments
 (0)