Skip to content

Conversation

stuartmorgan-g
Copy link
Collaborator

Adds the missing implementation of disconnect using the new revokeAccess API, updating play-services-auth to the version containing the new API.

Fixes flutter/flutter#169612

Pre-Review Checklist

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

Adds the missing implementation of `disconnect` using the new
`revokeAccess` API, updating `play-services-auth` to the version
containing the new API.

Fixes flutter/flutter#169612
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 implements the disconnect functionality for Android by leveraging the new revokeAccess API. The changes include updating the native dependency, adding the new API via Pigeon, and implementing the logic on both the Dart and native sides, complete with corresponding tests. The implementation is solid, but I've identified a potential crash due to unsafe access on a list and a minor typo in an error message. Addressing these points will improve the robustness and clarity of the code.

@ycv005

This comment was marked as off-topic.

.create(context)
.revokeAccess(
RevokeAccessRequest.builder()
.setAccount(new Account(params.getAccountEmail(), "com.google"))
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Let's move this into a constant

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good call, especially since it's used in two places. Done.

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 24, 2025
Copy link
Contributor

auto-submit bot commented Sep 24, 2025

autosubmit label was removed for flutter/packages/9991, because - The status or check suite Linux_android android_platform_tests_shard_1 master has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 24, 2025
@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 24, 2025
Copy link
Contributor

auto-submit bot commented Sep 24, 2025

autosubmit label was removed for flutter/packages/9991, because - The status or check suite Linux_android android_platform_tests_shard_1 master has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 24, 2025
@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 24, 2025
@auto-submit auto-submit bot merged commit a5e4243 into flutter:main Sep 24, 2025
80 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 24, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 24, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Sep 24, 2025
flutter/packages@3413b65...117bf63

2025-09-24 [email protected] [ci] Add update-release-info command
suggestion when version check fails (flutter/packages#9834)
2025-09-24 [email protected] Manual roll Flutter from
9ff2767 to 4a04204 (28 revisions) (flutter/packages#10067)
2025-09-24 [email protected] Remove "All right reserved" from all
files (flutter/packages#10066)
2025-09-24 [email protected] [google_sign_in] Implement
`disconnect` for Android (flutter/packages#9991)
2025-09-24 [email protected] [camera_android]
Remove references to third party `googlesamples/mlkit` code
(flutter/packages#10056)
2025-09-23 [email protected]
[go_router_builder] [in_app_purchase_storekit] Removes redundant
arguments from annotations (flutter/packages#9964)
2025-09-23 [email protected] [go_router] Fix
Android Cold Start deep link with empty path losing scheme and
authority. (flutter/packages#9868)
2025-09-23 [email protected] [go_router_builder] Proposal: add json
support, custom string encoder/decoder (flutter/packages#8665)
2025-09-23 [email protected] [go_router] Fix ShellRoutes break iOS
swipe back navigation (flutter/packages#9968)

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 [email protected] 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
Jaineel-Mamtora pushed a commit to Jaineel-Mamtora/flutter_forked that referenced this pull request Sep 24, 2025
…r#175935)

flutter/packages@3413b65...117bf63

2025-09-24 [email protected] [ci] Add update-release-info command
suggestion when version check fails (flutter/packages#9834)
2025-09-24 [email protected] Manual roll Flutter from
9ff2767 to 4a04204 (28 revisions) (flutter/packages#10067)
2025-09-24 [email protected] Remove "All right reserved" from all
files (flutter/packages#10066)
2025-09-24 [email protected] [google_sign_in] Implement
`disconnect` for Android (flutter/packages#9991)
2025-09-24 [email protected] [camera_android]
Remove references to third party `googlesamples/mlkit` code
(flutter/packages#10056)
2025-09-23 [email protected]
[go_router_builder] [in_app_purchase_storekit] Removes redundant
arguments from annotations (flutter/packages#9964)
2025-09-23 [email protected] [go_router] Fix
Android Cold Start deep link with empty path losing scheme and
authority. (flutter/packages#9868)
2025-09-23 [email protected] [go_router_builder] Proposal: add json
support, custom string encoder/decoder (flutter/packages#8665)
2025-09-23 [email protected] [go_router] Fix ShellRoutes break iOS
swipe back navigation (flutter/packages#9968)

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 [email protected] 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 p: google_sign_in platform-android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[google_sign_in] Implement disconnect on Android once available
3 participants