-
Notifications
You must be signed in to change notification settings - Fork 147
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
feat(shorebird_cli): alert user of non-patchable changes #538
Conversation
Set<AabDifferences> aabContentDifferences(String aabPath1, String aabPath2) { | ||
final fileDifferences = aabFileDifferences(aabPath1, aabPath2); | ||
|
||
final hasAssetChanges = fileDifferences.any((file) { |
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.
minor but could we refactor to loop through the files once to determine what has changed?
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.
I've updated this code since this comment was written, but as it stands now, I worry that we'd losing quite a bit of readability for a negligible performance improvement. Happy to be shown otherwise though!
packages/shorebird_cli/test/src/commands/patch_command_test.dart
Outdated
Show resolved
Hide resolved
packages/shorebird_cli/test/src/commands/patch_command_test.dart
Outdated
Show resolved
Hide resolved
packages/shorebird_code_push_client/lib/src/code_push_client.dart
Outdated
Show resolved
Hide resolved
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.
LGTM ✅
Description
Updates
shorebird patch
to compare the contents of the aab generated during the patch build with the contents of the aab generated by the corresponding release.When a native code change is detected (i.e., a change to a
.dex
file), the patch command fails.When an asset change is detected, the patch command warns the user and asks if they are sure they want to continue.
Fixes #385
Type of Change