Skip to content

Livesync service refactoring #1941

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 29, 2016
Merged

Livesync service refactoring #1941

merged 3 commits into from
Jul 29, 2016

Conversation

KristinaKoeva
Copy link
Contributor

No description provided.

@enchev
Copy link
Contributor

enchev commented Jul 22, 2016

👍

if (installed) {
platformLiveSyncService.afterInstallApplicationAction(deviceAppData, localToDevicePaths).wait();

if (device.applicationManager.canStartApplication()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can call:

device.applicationManager.tryStartApplication(appIdentifier).wait();

It does almost the same as your code :)

@KristinaKoeva
Copy link
Contributor Author

ping @rosen-vladimirov your feedback has been applied

let installed = this.tryInstallApplication(device, deviceAppData).wait();

if(installed) {
device.applicationManager.tryStartApplication(deviceAppData.appIdentifier).wait();
Copy link
Contributor

@tzraikov tzraikov Jul 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add an option here to call different action (in case when running debug + livesync). Perhaps it should be in platform-livesync-service-base to allow handling both ios and android.

@KristinaKoeva KristinaKoeva force-pushed the KristinaKoeva/LiveSync2 branch from 7f2e693 to 3541c41 Compare July 27, 2016 13:34
@tzraikov
Copy link
Contributor

👍

forceExecuteFullSync: boolean;
}

interface IPlatformLiveSyncService {
fullSync(postInstallAction?: (deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[]) => IFuture<void>): IFuture<void>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the action is used even when app is already installed, so the name is not really correct. postAction seems better IMO, but it's just a suggestion, not a merge stopper :)

@rosen-vladimirov
Copy link
Contributor

👍 great work

@KristinaKoeva KristinaKoeva force-pushed the KristinaKoeva/LiveSync2 branch from 3541c41 to 703e386 Compare July 29, 2016 11:51
@KristinaKoeva KristinaKoeva merged commit af3648d into master Jul 29, 2016
@KristinaKoeva KristinaKoeva deleted the KristinaKoeva/LiveSync2 branch July 29, 2016 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants