Skip to content
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

fix(shorebird_cli): always respect build-name and build-number args #2302

Merged
merged 8 commits into from
Jul 1, 2024

Conversation

bryanoltman
Copy link
Contributor

Description

We were previously only using build-number for Flutter module releases. Because this argument is respected for all flutter build operations, we should support it for all of them if we support it at all.

Fixes #2301

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore
  • 🧪 Tests

Copy link

codecov bot commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

/// Provides the [containsAnyOf] method to all [Iterable]s.
extension ContainsAnyOf<T> on Iterable<T> {
/// Returns `true` if any of the elements in [elements] are in this iterable.
bool containsAnyOf(Iterable<T> elements) => elements.any(contains);
Copy link
Contributor

Choose a reason for hiding this comment

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

What’s the benefit of this extension? Seems like it’s a one liner either way

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks a bit nicer with list literals:

argResults.options.containsAnyOf([a,b]);

instead of

[a,b].any((e) => argResults.options.contains(e));

Mostly just a minor readability improvement, happy to remove if you feel strongly.

@bryanoltman bryanoltman merged commit eecb7b1 into main Jul 1, 2024
10 checks passed
@bryanoltman bryanoltman deleted the bo/build-name-build-number branch July 1, 2024 15:02
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.

build-number argument not respected for shorebird release
4 participants