Skip to content

Conversation

@kevmoo
Copy link
Contributor

@kevmoo kevmoo commented May 2, 2025

Omit the serviceWorkerVersion when the feature disabled, specifically when --pwa-strategy none

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label May 2, 2025
@kevmoo
Copy link
Contributor Author

kevmoo commented May 2, 2025

Still need to add test to validate the new behavior

@kevmoo kevmoo changed the title wip Omit service worker settings when service worker is disabled May 2, 2025
@kevmoo kevmoo marked this pull request as ready for review May 2, 2025 04:36
@kevmoo kevmoo requested a review from mdebbar May 2, 2025 04:36
@kevmoo kevmoo force-pushed the skip_serviceWorkerConfig branch from af6d299 to 91ad8eb Compare May 2, 2025 05:18
@kevmoo kevmoo added platform-web Web applications specifically team-web Owned by Web platform team labels May 2, 2025
@github-actions github-actions bot removed platform-web Web applications specifically team-web Owned by Web platform team labels May 2, 2025
Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

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

LGTM

@kevmoo kevmoo added autosubmit Merge PR when tree becomes green via auto submit App platform-web Web applications specifically labels May 2, 2025
@auto-submit auto-submit bot added this pull request to the merge queue May 2, 2025
Merged via the queue into flutter:master with commit 6ce1251 May 2, 2025
143 checks passed
@flutter-dashboard flutter-dashboard bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 2, 2025
@kevmoo kevmoo deleted the skip_serviceWorkerConfig branch May 2, 2025 20:24
// in question.
final String serviceWorkerVersion = Random().nextInt(4294967296).toString();
final String? serviceWorkerVersion =
includeServiceWorkerSettings ? Random().nextInt(1 << 32).toString() : null;
Copy link

Choose a reason for hiding this comment

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

I believe 1 << 32 in JavaScript will not give the expected 4294967296 result (it computes to 1 AFAIK). Looks more readable but not quite as good. Maybe use 1 << 31, or revert to the actual value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is tool code that's only every run on the VM. So JS behavior does not matter.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 5, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 5, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 5, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 5, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 6, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 6, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 6, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 6, 2025
mboetger pushed a commit to mboetger/flutter that referenced this pull request May 6, 2025
…#168192)

Omit the `serviceWorkerVersion` when the feature disabled, specifically
when `--pwa-strategy none`
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 7, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 7, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 7, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 7, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 7, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 7, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform-web Web applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants