@@ -7,6 +7,7 @@ import helpers = require("../common/helpers");
77import usbLivesyncServiceBaseLib = require( "../common/services/usb-livesync-service-base" ) ;
88import path = require( "path" ) ;
99import semver = require( "semver" ) ;
10+ import Future = require( "fibers/future" ) ;
1011
1112export class UsbLiveSyncService extends usbLivesyncServiceBaseLib . UsbLiveSyncServiceBase implements IUsbLiveSyncService {
1213 private excludedProjectDirsAndFiles = [
@@ -38,7 +39,7 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
3839 public liveSync ( platform : string ) : IFuture < void > {
3940 return ( ( ) => {
4041 platform = platform || this . initialize ( platform ) . wait ( ) ;
41- let platformLowerCase = platform . toLowerCase ( ) ;
42+ let platformLowerCase = platform ? platform . toLowerCase ( ) : null ;
4243 let platformData = this . $platformsData . getPlatformData ( platformLowerCase ) ;
4344
4445 if ( platformLowerCase === this . $devicePlatformsConstants . Android . toLowerCase ( ) ) {
@@ -75,7 +76,8 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
7576 let platformSpecificUsbLiveSyncService = this . resolveUsbLiveSyncService ( platform || this . $devicesServices . platform , device ) ;
7677 if ( platformSpecificUsbLiveSyncService . beforeLiveSyncAction ) {
7778 return platformSpecificUsbLiveSyncService . beforeLiveSyncAction ( deviceAppData ) ;
78- }
79+ }
80+ return Future . fromResult ( ) ;
7981 }
8082
8183 let beforeBatchLiveSyncAction = ( filePath : string ) : IFuture < string > => {
0 commit comments