@@ -18,7 +18,7 @@ class TestExecutionService implements ITestExecutionService {
18
18
private $projectData : IProjectData ,
19
19
private $platformService : IPlatformService ,
20
20
private $platformsData : IPlatformsData ,
21
- private $liveSyncProvider : ILiveSyncProvider ,
21
+ private $usbLiveSyncService : ILiveSyncService ,
22
22
private $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
23
23
private $resources : IResourceLoader ,
24
24
private $httpClient : Server . IHttpClient ,
@@ -64,7 +64,8 @@ class TestExecutionService implements ITestExecutionService {
64
64
}
65
65
this . detourEntryPoint ( projectFilesPath ) ;
66
66
67
- this . liveSyncProject ( platform ) ;
67
+ this . $platformService . deployPlatform ( platform ) . wait ( ) ;
68
+ this . $usbLiveSyncService . liveSync ( platform ) . wait ( ) ;
68
69
69
70
if ( this . $options . debugBrk ) {
70
71
this . $logger . info ( 'Starting debugger...' ) ;
@@ -130,7 +131,8 @@ class TestExecutionService implements ITestExecutionService {
130
131
if ( this . $options . debugBrk ) {
131
132
this . getDebugService ( platform ) . debug ( ) . wait ( ) ;
132
133
} else {
133
- this . liveSyncProject ( platform ) . wait ( ) ;
134
+ this . $platformService . deployPlatform ( platform ) . wait ( ) ;
135
+ this . $usbLiveSyncService . liveSync ( platform ) . wait ( ) ;
134
136
}
135
137
} ) ;
136
138
} ) ;
@@ -222,23 +224,5 @@ class TestExecutionService implements ITestExecutionService {
222
224
223
225
return karmaConfig ;
224
226
}
225
-
226
- private liveSyncProject ( platform : string ) : IFuture < void > {
227
- return ( ( ) => {
228
- let platformData = this . $platformsData . getPlatformData ( platform . toLowerCase ( ) ) ,
229
- projectFilesPath = path . join ( platformData . appDestinationDirectoryPath , constants . APP_FOLDER_NAME ) ;
230
-
231
- let liveSyncData : ILiveSyncData = {
232
- platform : platform ,
233
- appIdentifier : this . $projectData . projectId ,
234
- projectFilesPath : projectFilesPath ,
235
- syncWorkingDirectory : path . join ( this . $projectData . projectDir , constants . APP_FOLDER_NAME ) ,
236
- excludedProjectDirsAndFiles : this . $options . release ? constants . LIVESYNC_EXCLUDED_FILE_PATTERNS : [ ]
237
- } ;
238
-
239
- let liveSyncService = this . $injector . resolve ( this . $liveSyncProvider . platformSpecificLiveSyncServices [ platform . toLowerCase ( ) ] , { _liveSyncData : liveSyncData } ) ;
240
- liveSyncService . fullSync ( ) . wait ( ) ;
241
- } ) . future < void > ( ) ( ) ;
242
- }
243
227
}
244
228
$injector . register ( 'testExecutionService' , TestExecutionService ) ;
0 commit comments