Skip to content

Commit ca64eb5

Browse files
author
Tsvetan Raikov
committed
Fixed first time livesync
1 parent beabf62 commit ca64eb5

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@ class AndroidLiveSyncService extends liveSyncServiceBaseLib.LiveSyncServiceBase<
7070
}).future<void>()();
7171
}
7272

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

7780
private getDeviceRootPath(appIdentifier: string): string {

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ class IOSLiveSyncService extends liveSyncServiceBaseLib.LiveSyncServiceBase<Mobi
1818
super(_device);
1919
}
2020

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

0 commit comments

Comments
 (0)