-
-
Notifications
You must be signed in to change notification settings - Fork 197
fix: don't update local hashes on livesync #3983
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
Conversation
@@ -30,7 +30,7 @@ export abstract class AndroidDeviceLiveSyncServiceBase extends DeviceLiveSyncSer | |||
const deviceHashService = this.getDeviceHashService(deviceAppData.appIdentifier); | |||
const currentHashes = await deviceHashService.generateHashesFromLocalToDevicePaths(localToDevicePaths); | |||
const transferredFiles = await this.transferFilesCore(deviceAppData, localToDevicePaths, projectFilesPath, currentHashes, options); | |||
await this.updateHashes(deviceAppData, currentHashes, projectData, liveSyncDeviceInfo); | |||
await this.updateHashesOnDevice(deviceAppData, currentHashes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe you can use directly:
this.device.fileSystem.updateHashesOnDevice(currentHashes, deviceAppData.appIdentifier);
@@ -30,7 +30,7 @@ export abstract class AndroidDeviceLiveSyncServiceBase extends DeviceLiveSyncSer | |||
const deviceHashService = this.getDeviceHashService(deviceAppData.appIdentifier); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have some duplicate logic in this file and in the AndroidDeviceFileSystem. Instead of calling a method here, you can just call:
this.device.fileSystem.getDeviceHashService(deviceAppData.appIdentifier);
With the current implementation we have duplicate cashing of the Hash services
fa217df
to
711a3de
Compare
711a3de
to
fe7bbe3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
PR Checklist
Steps to reproduce:
tns create myApp
tns run android
& stop the commandtns run android
& make some changes -> everything is oktns run android
on another device