Skip to content

Conversation

fishythefish
Copy link
Contributor

Flutter has already migrated from dart:js_util to dart:js_interop (which is unsupported by dart2wasm). This migrates a remaining reference to js_util which will be broken when dart2wasm drops the library entirely.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies packages/google_sign_in/google_sign_in/example/lib/src/web_wrapper.dart to update a conditional export. The condition has been changed from dart.library.js_util to dart.library.js_interop, which aligns with the migration to support dart2wasm. The formatting of the export statement has also been updated by splitting it across two lines. The change is self-contained and correct, and I have no further feedback.

@fishythefish
Copy link
Contributor Author

This is a trivial migration that shouldn't require a CHANGELOG entry, so if a reviewer could add the "override: no changelog needed" label, that'd be lovely.

@stuartmorgan-g stuartmorgan-g changed the title Remove references to dart:js_util [google_sign_in] Remove references to dart:js_util Oct 1, 2025
@stuartmorgan-g
Copy link
Collaborator

test-exempt: code refactor with no semantic change

@stuartmorgan-g stuartmorgan-g added the override: no changelog needed Override the check requiring CHANGELOG updates for most changes label Oct 1, 2025
Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM

@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 1, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Oct 1, 2025
Copy link
Contributor

auto-submit bot commented Oct 1, 2025

autosubmit label was removed for flutter/packages/10148, because This PR has not met approval requirements for merging. The PR author is not a member of flutter-hackers and needs 1 more review(s) in order to merge this PR.

  • Merge guidelines: A PR needs at least one approved review if the author is already part of flutter-hackers or two member reviews if the author is not a flutter-hacker before re-applying the autosubmit label. Reviewers: If you left a comment approving, please use the "approve" review action instead.

@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 1, 2025
@auto-submit auto-submit bot merged commit 46d439b into flutter:main Oct 1, 2025
80 checks passed
@fishythefish fishythefish deleted the cleanup-js-util branch October 1, 2025 22:22
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 2, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Oct 2, 2025
flutter/packages@321a584...5fd5f74

2025-10-02 mohellebiabdessalem@gmail.com [url_launcher] updates build
files to use JVM 17 (flutter/packages#10130)
2025-10-02 mohellebiabdessalem@gmail.com [quick_actions] updates build
files to use JVM 17 (flutter/packages#10132)
2025-10-01 engine-flutter-autoroll@skia.org Manual roll Flutter from
c9608e2 to 7811e89 (22 revisions) (flutter/packages#10160)
2025-10-01 fishythefish@users.noreply.github.com [google_sign_in] Remove
references to dart:js_util (flutter/packages#10148)
2025-10-01 stuartmorgan@google.com [ci] Re-enable all Android legacy
emulator tests (flutter/packages#10141)
2025-10-01 engine-flutter-autoroll@skia.org Manual roll Flutter from
96fe3b3 to c9608e2 (26 revisions) (flutter/packages#10145)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
mboetger pushed a commit to mboetger/flutter that referenced this pull request Oct 7, 2025
…r#176409)

flutter/packages@321a584...5fd5f74

2025-10-02 mohellebiabdessalem@gmail.com [url_launcher] updates build
files to use JVM 17 (flutter/packages#10130)
2025-10-02 mohellebiabdessalem@gmail.com [quick_actions] updates build
files to use JVM 17 (flutter/packages#10132)
2025-10-01 engine-flutter-autoroll@skia.org Manual roll Flutter from
c9608e2 to 7811e89 (22 revisions) (flutter/packages#10160)
2025-10-01 fishythefish@users.noreply.github.com [google_sign_in] Remove
references to dart:js_util (flutter/packages#10148)
2025-10-01 stuartmorgan@google.com [ci] Re-enable all Android legacy
emulator tests (flutter/packages#10141)
2025-10-01 engine-flutter-autoroll@skia.org Manual roll Flutter from
96fe3b3 to c9608e2 (26 revisions) (flutter/packages#10145)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
okorohelijah pushed a commit to okorohelijah/flutter that referenced this pull request Oct 7, 2025
…r#176409)

flutter/packages@321a584...5fd5f74

2025-10-02 mohellebiabdessalem@gmail.com [url_launcher] updates build
files to use JVM 17 (flutter/packages#10130)
2025-10-02 mohellebiabdessalem@gmail.com [quick_actions] updates build
files to use JVM 17 (flutter/packages#10132)
2025-10-01 engine-flutter-autoroll@skia.org Manual roll Flutter from
c9608e2 to 7811e89 (22 revisions) (flutter/packages#10160)
2025-10-01 fishythefish@users.noreply.github.com [google_sign_in] Remove
references to dart:js_util (flutter/packages#10148)
2025-10-01 stuartmorgan@google.com [ci] Re-enable all Android legacy
emulator tests (flutter/packages#10141)
2025-10-01 engine-flutter-autoroll@skia.org Manual roll Flutter from
96fe3b3 to c9608e2 (26 revisions) (flutter/packages#10145)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App override: no changelog needed Override the check requiring CHANGELOG updates for most changes p: google_sign_in
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants