Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 88129d0

Browse files
committed
Merge pull request #459 from telerik/livesync-prepare-once
Don't prepare platform N times if N files have been changed.
2 parents a13a42f + e891950 commit 88129d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/usb-livesync-service-base.ts

+4
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export class UsbLiveSyncServiceBase implements IUsbLiveSyncServiceBase {
150150
this.$logger.trace("Syncing %s", filesToSync.join(", "));
151151
this.$dispatcher.dispatch( () => {
152152
return (() => {
153+
this.preparePlatformForSync(platform);
153154
this.syncCore(platform, filesToSync, appIdentifier, projectFilesPath, platformSpecificLiveSyncServices, notInstalledAppOnDeviceAction, beforeLiveSyncAction).wait();
154155
}).future<void>()();
155156
});
@@ -162,6 +163,9 @@ export class UsbLiveSyncServiceBase implements IUsbLiveSyncServiceBase {
162163
}).future<void>()());
163164
}
164165

166+
protected preparePlatformForSync(platform: string) {
167+
}
168+
165169
private isFileExcluded(path: string, exclusionList: string[], projectDir: string): boolean {
166170
return !!_.find(exclusionList, (pattern) => minimatch(path, pattern, { nocase: true }));
167171
}

0 commit comments

Comments
 (0)