Skip to content

Fix run/debug after livesync #990

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 1 commit into from
Oct 1, 2015
Merged

Fix run/debug after livesync #990

merged 1 commit into from
Oct 1, 2015

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Sep 30, 2015

Due to some policy restrictions on devices with apilevel 21+, android runtime is not able to delete sync directories. This way if some files are changed after livesync, changes are not applied on the device.

Fixes #943

@Fatme Fatme added the bug label Sep 30, 2015
@Fatme Fatme added this to the 1.4.0 milestone Sep 30, 2015
@ns-bot
Copy link

ns-bot commented Sep 30, 2015

Test FAILed.

@ns-bot
Copy link

ns-bot commented Sep 30, 2015

Test PASSed.

public deploy(device: Mobile.IAndroidDevice, appIdentifier: string): IFuture<void> {
return (() => {
let deviceRootPath = `/data/local/tmp/${appIdentifier}`;
device.adb.executeShellCommand(["rm", "-rf", this.$mobileHelper.buildDevicePath(deviceRootPath, "fullsync")]).wait();
Copy link
Contributor

Choose a reason for hiding this comment

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

can we execute rm -rf <dir1> <dir2> <dir3>

Due to some policy restrictions on devices with apilevel 21+, android runtime is not able to delete sync directories. This way if some files are changed after livesync, changes are not applied on the device.

Fixes #943
@ns-bot
Copy link

ns-bot commented Oct 1, 2015

Test PASSed.

@rosen-vladimirov
Copy link
Contributor

👍

Fatme pushed a commit that referenced this pull request Oct 1, 2015
@Fatme Fatme merged commit 9e96b91 into release Oct 1, 2015
@Fatme Fatme deleted the fatme/fix-run branch October 1, 2015 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants