@@ -13,8 +13,7 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
13
13
"app_resources"
14
14
] ;
15
15
16
- constructor ( private $commandsService : ICommandsService ,
17
- $devicesServices : Mobile . IDevicesServices ,
16
+ constructor ( $devicesServices : Mobile . IDevicesServices ,
18
17
$fs : IFileSystem ,
19
18
$mobileHelper : Mobile . IMobileHelper ,
20
19
$localToDevicePathDataFactory : Mobile . ILocalToDevicePathDataFactory ,
@@ -42,10 +41,10 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
42
41
let platformLowerCase = platform ? platform . toLowerCase ( ) : null ;
43
42
let platformData = this . $platformsData . getPlatformData ( platformLowerCase ) ;
44
43
45
- if ( platformLowerCase === this . $devicePlatformsConstants . Android . toLowerCase ( ) ) {
44
+ if ( platformLowerCase === this . $devicePlatformsConstants . Android . toLowerCase ( ) ) {
46
45
this . $projectDataService . initialize ( this . $projectData . projectDir ) ;
47
46
let frameworkVersion = this . $projectDataService . getValue ( platformData . frameworkPackageName ) . wait ( ) . version ;
48
- if ( semver . lt ( frameworkVersion , "1.2.1" ) ) {
47
+ if ( semver . lt ( frameworkVersion , "1.2.1" ) ) {
49
48
let shouldUpdate = this . $prompter . confirm (
50
49
"You need Android Runtime 1.2.1 or later for LiveSync to work properly. Do you want to update your runtime now?"
51
50
) . wait ( ) ;
@@ -61,11 +60,6 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
61
60
62
61
let projectFilesPath = path . join ( platformData . appDestinationDirectoryPath , constants . APP_FOLDER_NAME ) ;
63
62
64
- let restartAppOnDeviceAction = ( device : Mobile . IDevice , deviceAppData : Mobile . IDeviceAppData , localToDevicePaths ?: Mobile . ILocalToDevicePathData [ ] ) : IFuture < void > => {
65
- let platformSpecificUsbLiveSyncService = this . resolveUsbLiveSyncService ( platform || this . $devicesServices . platform , device ) ;
66
- return platformSpecificUsbLiveSyncService . restartApplication ( deviceAppData , localToDevicePaths ) ;
67
- } ;
68
-
69
63
let notInstalledAppOnDeviceAction = ( device : Mobile . IDevice ) : IFuture < void > => {
70
64
return this . $platformService . deployOnDevice ( platform ) ;
71
65
} ;
@@ -76,7 +70,7 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
76
70
77
71
let beforeLiveSyncAction = ( device : Mobile . IDevice , deviceAppData : Mobile . IDeviceAppData ) : IFuture < void > => {
78
72
let platformSpecificUsbLiveSyncService = this . resolveUsbLiveSyncService ( platform || this . $devicesServices . platform , device ) ;
79
- if ( platformSpecificUsbLiveSyncService . beforeLiveSyncAction ) {
73
+ if ( platformSpecificUsbLiveSyncService . beforeLiveSyncAction ) {
80
74
return platformSpecificUsbLiveSyncService . beforeLiveSyncAction ( deviceAppData ) ;
81
75
}
82
76
return Future . fromResult ( ) ;
@@ -109,7 +103,6 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
109
103
this . excludedProjectDirsAndFiles ,
110
104
watchGlob ,
111
105
platformSpecificLiveSyncServices ,
112
- restartAppOnDeviceAction ,
113
106
notInstalledAppOnDeviceAction ,
114
107
notRunningiOSSimulatorAction ,
115
108
localProjectRootPath ,
0 commit comments