@@ -49,9 +49,10 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
49
49
50
50
let platformData = this . $platformsData . getPlatformData ( platformLowerCase ) ;
51
51
52
+ this . $projectDataService . initialize ( this . $projectData . projectDir ) ;
53
+ let frameworkVersion = this . $projectDataService . getValue ( platformData . frameworkPackageName ) . wait ( ) . version ;
54
+
52
55
if ( platformLowerCase === this . $devicePlatformsConstants . Android . toLowerCase ( ) ) {
53
- this . $projectDataService . initialize ( this . $projectData . projectDir ) ;
54
- let frameworkVersion = this . $projectDataService . getValue ( platformData . frameworkPackageName ) . wait ( ) . version ;
55
56
if ( semver . lt ( frameworkVersion , "1.2.1" ) ) {
56
57
let shouldUpdate = this . $prompter . confirm (
57
58
"You need Android Runtime 1.2.1 or later for LiveSync to work properly. Do you want to update your runtime now?"
@@ -139,6 +140,8 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
139
140
return platformSpecificUsbLiveSyncService . sendPageReloadMessageToDevice ( deviceAppData ) . wait ( ) ;
140
141
} ) ;
141
142
}
143
+
144
+ this . $logger . info ( `Successfully synced application ${ this . $projectData . projectId } .` ) ;
142
145
} ) . future < void > ( ) ( ) ;
143
146
} ) ;
144
147
} ;
@@ -156,7 +159,7 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
156
159
beforeLiveSyncAction : beforeLiveSyncAction ,
157
160
beforeBatchLiveSyncAction : beforeBatchLiveSyncAction ,
158
161
iOSSimulatorRelativeToProjectBasePathAction : iOSSimulatorRelativeToProjectBasePathAction ,
159
- canExecuteFastLiveSync : ( filePath : string ) => _ . contains ( fastLivesyncFileExtensions , path . extname ( filePath ) ) ,
162
+ canExecuteFastLiveSync : ( filePath : string ) => _ . contains ( fastLivesyncFileExtensions , path . extname ( filePath ) ) && semver . gte ( frameworkVersion , "1.5.0" ) ,
160
163
fastLiveSync : fastLiveSync
161
164
} ;
162
165
0 commit comments