Skip to content

Commit 8d33f73

Browse files
author
Tsvetan Raikov
committed
Fixed first time livesync
1 parent 5776d8e commit 8d33f73

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

lib/services/livesync/android-livesync-service.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@ class AndroidLiveSyncService extends liveSyncServiceBaseLib.LiveSyncServiceBase<
7171
}).future<void>()();
7272
}
7373

74-
public afterInstallApplicationAction(deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[]): IFuture<void> {
75-
return this.deviceHashService.uploadHashFileToDevice(localToDevicePaths);
74+
public afterInstallApplicationAction(deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[]): IFuture<boolean> {
75+
return (() => {
76+
this.deviceHashService.uploadHashFileToDevice(localToDevicePaths).wait();
77+
return false;
78+
}).future<boolean>()();
7679
}
7780

7881
private getDeviceRootPath(appIdentifier: string): string {

lib/services/livesync/ios-livesync-service.ts

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ class IOSLiveSyncService extends liveSyncServiceBaseLib.LiveSyncServiceBase<Mobi
1919
super(_device, $liveSyncProvider);
2020
}
2121

22+
public afterInstallApplicationAction(deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[]): IFuture<boolean> {
23+
return (() => {
24+
return this.$options.watch;
25+
}).future<boolean>()();
26+
}
27+
2228
public removeFiles(appIdentifier: string, localToDevicePaths: Mobile.ILocalToDevicePathData[]): IFuture<void> {
2329
return (() => {
2430
_.each(localToDevicePaths, localToDevicePathData => this.device.fileSystem.deleteFile(localToDevicePathData.getDevicePath(), appIdentifier));

0 commit comments

Comments
 (0)