diff --git a/lib/services/livesync/ios-device-livesync-service.ts b/lib/services/livesync/ios-device-livesync-service.ts index 5e7fb8ffce..abbdeafab4 100644 --- a/lib/services/livesync/ios-device-livesync-service.ts +++ b/lib/services/livesync/ios-device-livesync-service.ts @@ -14,7 +14,6 @@ export class IOSDeviceLiveSyncService extends DeviceLiveSyncServiceBase implemen private $iOSEmulatorServices: Mobile.IiOSSimulatorService, private $iOSDebuggerPortService: IIOSDebuggerPortService, private $logger: ILogger, - private $fs: IFileSystem, private $processService: IProcessService, protected $platformsData: IPlatformsData, protected device: Mobile.IiOSDevice) { @@ -71,8 +70,7 @@ export class IOSDeviceLiveSyncService extends DeviceLiveSyncServiceBase implemen } if (await this.setupSocketIfNeeded(projectData)) { - await this.liveEdit(scriptFiles); - await this.reloadPage(deviceAppData, otherFiles); + await this.reloadPage(otherFiles); } else { await this.restartApplication(deviceAppData, projectData.projectName); } @@ -82,7 +80,7 @@ export class IOSDeviceLiveSyncService extends DeviceLiveSyncServiceBase implemen return this.device.applicationManager.restartApplication({ appId: deviceAppData.appIdentifier, projectName }); } - private async reloadPage(deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[]): Promise { + private async reloadPage(localToDevicePaths: Mobile.ILocalToDevicePathData[]): Promise { if (localToDevicePaths.length) { const message = JSON.stringify({ method: "Page.reload", @@ -96,22 +94,6 @@ export class IOSDeviceLiveSyncService extends DeviceLiveSyncServiceBase implemen } } - private async liveEdit(localToDevicePaths: Mobile.ILocalToDevicePathData[]): Promise { - for (const localToDevicePath of localToDevicePaths) { - const content = this.$fs.readText(localToDevicePath.getLocalPath()); - const message = JSON.stringify({ - method: "Debugger.setScriptSource", - params: { - scriptUrl: localToDevicePath.getRelativeToProjectBasePath(), - scriptSource: content - }, - id: ++currentPageReloadId - }); - - await this.sendMessage(message); - } - } - private attachEventHandlers(): void { this.$processService.attachToProcessExitSignals(this, this.destroySocket);