feat: shorebird patch
should support patching multiple platforms at once
#1762
Labels
enhancement
New feature or request
Description
As a user, I want to be able to patch multiple platforms (e.g iOS and Android) at once and have a single patch number associated with both since the patch contains identical changes.
Currently, even if I want to patch the exact same code for iOS and Android, I have to run
shorebird patch android
andshorebird patch ios
which results in patch 1 and patch 2 respectively and I have to remember that patch 1 and patch 2 contain identical code.One way we could solve this is by restructuring
shorebird patch
to be a single command withplatforms
as an option:With the proposed solution, running
shorebird patch
would be reflected as a single patch with multiple platforms on the console andpackage:shorebird_code_push
would return1
as the current patch number on all platforms which would eliminate any confusion/book-keeping needed when applying platform-agnostic fixes.Considerations
With the proposed solution, we'd likely want to build all patches first (and if any fail, abort with a summary) and only if all patches are built successfully would be upload them (with a retry for upload failures).
We'd also potentially want to adjust the console to support deactivating a patch for a specific set of platforms.
The text was updated successfully, but these errors were encountered: