@@ -16,7 +16,7 @@ class TestExecutionService implements ITestExecutionService {
16
16
private $projectData : IProjectData ,
17
17
private $platformService : IPlatformService ,
18
18
private $platformsData : IPlatformsData ,
19
- private $liveSyncProvider : ILiveSyncProvider ,
19
+ private $usbLiveSyncService : ILiveSyncService ,
20
20
private $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
21
21
private $httpClient : Server . IHttpClient ,
22
22
private $config : IConfiguration ,
@@ -59,7 +59,8 @@ class TestExecutionService implements ITestExecutionService {
59
59
}
60
60
this . detourEntryPoint ( projectFilesPath ) ;
61
61
62
- this . liveSyncProject ( platform ) ;
62
+ await this . $platformService . deployPlatform ( platform ) ;
63
+ await this . $usbLiveSyncService . liveSync ( platform ) ;
63
64
64
65
if ( this . $options . debugBrk ) {
65
66
this . $logger . info ( 'Starting debugger...' ) ;
@@ -118,7 +119,8 @@ class TestExecutionService implements ITestExecutionService {
118
119
if ( this . $options . debugBrk ) {
119
120
await this . getDebugService ( platform ) . debug ( ) ;
120
121
} else {
121
- await this . liveSyncProject ( platform ) ;
122
+ await this . $platformService . deployPlatform ( platform ) ;
123
+ await this . $usbLiveSyncService . liveSync ( platform ) ;
122
124
}
123
125
} ;
124
126
@@ -217,21 +219,5 @@ class TestExecutionService implements ITestExecutionService {
217
219
218
220
return karmaConfig ;
219
221
}
220
-
221
- private async liveSyncProject ( platform : string ) : Promise < void > {
222
- let platformData = this . $platformsData . getPlatformData ( platform . toLowerCase ( ) ) ,
223
- projectFilesPath = path . join ( platformData . appDestinationDirectoryPath , constants . APP_FOLDER_NAME ) ;
224
-
225
- let liveSyncData : ILiveSyncData = {
226
- platform : platform ,
227
- appIdentifier : this . $projectData . projectId ,
228
- projectFilesPath : projectFilesPath ,
229
- syncWorkingDirectory : path . join ( this . $projectData . projectDir , constants . APP_FOLDER_NAME ) ,
230
- excludedProjectDirsAndFiles : this . $options . release ? constants . LIVESYNC_EXCLUDED_FILE_PATTERNS : [ ]
231
- } ;
232
-
233
- let liveSyncService = this . $injector . resolve ( this . $liveSyncProvider . platformSpecificLiveSyncServices [ platform . toLowerCase ( ) ] , { _liveSyncData : liveSyncData } ) ;
234
- await liveSyncService . fullSync ( ) ;
235
- }
236
222
}
237
223
$injector . register ( 'testExecutionService' , TestExecutionService ) ;
0 commit comments