@@ -24,8 +24,11 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
24
24
$logger : ILogger ,
25
25
private $injector : IInjector ,
26
26
private $platformService : IPlatformService ,
27
- $dispatcher : IFutureDispatcher ) {
28
- super ( $devicesServices , $mobileHelper , $localToDevicePathDataFactory , $logger , $options , $deviceAppDataFactory , $fs , $dispatcher ) ;
27
+ $dispatcher : IFutureDispatcher ,
28
+ $childProcess : IChildProcess ,
29
+ $iOSEmulatorServices : Mobile . IiOSSimulatorService ,
30
+ private $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ) {
31
+ super ( $devicesServices , $mobileHelper , $localToDevicePathDataFactory , $logger , $options , $deviceAppDataFactory , $fs , $dispatcher , $childProcess , $iOSEmulatorServices ) ;
29
32
}
30
33
31
34
public liveSync ( platform : string ) : IFuture < void > {
@@ -66,9 +69,13 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
66
69
} ) . future < string > ( ) ( ) ;
67
70
}
68
71
72
+ let notRunningiOSSimulatorAction = ( ) : IFuture < void > => {
73
+ return this . $platformService . deployOnEmulator ( this . $devicePlatformsConstants . iOS . toLowerCase ( ) ) ;
74
+ }
75
+
69
76
let watchGlob = path . join ( this . $projectData . projectDir , constants . APP_FOLDER_NAME ) ;
70
77
71
- this . sync ( platform , this . $projectData . projectId , platformData . appDestinationDirectoryPath , projectFilesPath , this . excludedProjectDirsAndFiles , watchGlob , restartAppOnDeviceAction , notInstalledAppOnDeviceAction , beforeBatchLiveSyncAction , canLiveSyncAction ) . wait ( ) ;
78
+ this . sync ( platform , this . $projectData . projectId , platformData . appDestinationDirectoryPath , projectFilesPath , this . excludedProjectDirsAndFiles , watchGlob , restartAppOnDeviceAction , notInstalledAppOnDeviceAction , notRunningiOSSimulatorAction , beforeBatchLiveSyncAction , canLiveSyncAction ) . wait ( ) ;
72
79
} ) . future < void > ( ) ( ) ;
73
80
}
74
81
0 commit comments