Skip to content

Commit 792d7a5

Browse files
author
Tsvetan Raikov
committed
Fixed first time livesync
1 parent 7eb92a9 commit 792d7a5

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
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

Lines changed: 6 additions & 0 deletions
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)