Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/services/livesync/livesync-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ class LiveSyncService implements ILiveSyncService {
public liveSync(platform: string): IFuture<void> {
return (() => {
platform = this.$liveSyncServiceBase.getPlatform(platform).wait();
this._isInitialized = true;
let platformLowerCase = platform.toLowerCase();

if (!this.$platformService.preparePlatform(platformLowerCase).wait()) {
this.$errors.failWithoutHelp("Verify that listed files are well-formed and try again the operation.");
}

this._isInitialized = true; // If we want before-prepare hooks to work properly, this should be set after preparePlatform function

let platformData = this.$platformsData.getPlatformData(platformLowerCase);
this.ensureAndroidFrameworkVersion(platformData).wait();

Expand Down