-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[google_sign_in] Add Android account name field as optional #8573
base: main
Are you sure you want to change the base?
Conversation
… account name. This capability is only available within Android for the underlying libraries.
Apologies, I didn't mean to request review just yet. |
Marked as draft; once it's ready, just press the "Ready for review" button and it will re-active all the code owner review requests. |
…nstruction to test the account being constructed in the builder and then passed into GoogleSignInOptions. This is necessary as Account is an android class and cannot be instantiated normally in a unit test (the constructor will return null).
…due to platform interface changes in google_sign_in.
…e to platform interface changes in google_sign_in_platform_interface.
…ample due to platform interface changes in google_sign_in_platform_interface.
…sign_in_as_googleapis_auth for new change adding an optional account name field for Android sign-in.
Marking this as ready for review now, as tests seem to be passing other than the one about federated plugin dependencies. Also, I'm not sure about linking an issue, as flutter/packages doesn't seem to even have the issues tab. Do I just create an issue on the main flutter repo? |
packages/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md
Outdated
Show resolved
Hide resolved
.../google_sign_in/google_sign_in_platform_interface/lib/src/method_channel_google_sign_in.dart
Outdated
Show resolved
Hide resolved
packages/google_sign_in/google_sign_in_platform_interface/lib/src/types.dart
Outdated
Show resolved
Hide resolved
packages/google_sign_in/google_sign_in_android/example/android/app/build.gradle
Outdated
Show resolved
Hide resolved
..._sign_in_android/android/src/test/java/io/flutter/plugins/googlesignin/GoogleSignInTest.java
Outdated
Show resolved
Hide resolved
…on thrown in corresponding code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Android changes LGTM!
I see there are some test failures unrelated to Android, so sorry if I re-requested Stuart's review prematurely.
The underlying Android library for google_sign_in allows for explicitly specifying an account name, but google_sign_in doesn't have a passthrough field for this. Android clients who want to use this functionality through google_sign_in are unable. This PR would remedy this by adding a passthrough field to expose this functionality.
Flutter issue: 163257
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style, or this PR is exempt from CHANGELOG changes.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.