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: patch multi dimensional flavor patch and improve release #1968

Merged
merged 8 commits into from
Apr 25, 2024

Conversation

erickzanardo
Copy link
Contributor

Description

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

@erickzanardo erickzanardo marked this pull request as draft April 24, 2024 22:07
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (ac4a201) to head (311b7ac).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1968   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          177       177           
  Lines         5560      5562    +2     
=========================================
+ Hits          5560      5562    +2     
Flag Coverage Δ
shorebird_cli 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@erickzanardo erickzanardo force-pushed the fix/patch-multi-dimensional-v2 branch from 37e2b2f to 11750f4 Compare April 25, 2024 14:10
@erickzanardo erickzanardo marked this pull request as ready for review April 25, 2024 14:15
Copy link
Contributor

@bryanoltman bryanoltman left a comment

Choose a reason for hiding this comment

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

A couple minor things, but LGTM!

packages/shorebird_cli/lib/src/shorebird_build_mixin.dart Outdated Show resolved Hide resolved
packages/shorebird_cli/lib/src/shorebird_build_mixin.dart Outdated Show resolved Hide resolved
packages/shorebird_cli/lib/src/shorebird_build_mixin.dart Outdated Show resolved Hide resolved
packages/shorebird_cli/lib/src/shorebird_build_mixin.dart Outdated Show resolved Hide resolved
Comment on lines -121 to -130
final bundleDirPath = p.join(
projectRoot.path,
'build',
'app',
'outputs',
'bundle',
);
final bundlePath = flavor != null
? p.join(bundleDirPath, '${flavor}Release', 'app-$flavor-release.aab')
: p.join(bundleDirPath, 'release', 'app-release.aab');
Copy link
Contributor

Choose a reason for hiding this comment

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

This is so nice

@@ -171,21 +170,24 @@ Use `shorebird flutter versions list` to list available versions.
'Building release with Flutter $flutterVersionString',
);

late final File apkFile;
Copy link
Contributor

Choose a reason for hiding this comment

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

This was late final before (and not something that needs to be addressed in this PR), but probably should be nullable instead because it will never be assigned a value in the default shorebird release android case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I wondered about that same thing for a couple of minutes too, I guess using late final made this a bit hacky, since yes, there will be moments which this will be null. Maybe I should change it to be explicit

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it should eventually be. This existed before your PR, so I'm not sure you need to fix it here.

erickzanardo and others added 2 commits April 25, 2024 11:59
Co-authored-by: Bryan Oltman <bryan@shorebird.dev>
@erickzanardo erickzanardo merged commit 955c8ba into main Apr 25, 2024
11 checks passed
@erickzanardo erickzanardo deleted the fix/patch-multi-dimensional-v2 branch April 25, 2024 16:49
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.

None yet

2 participants