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

[google_sign_in] Add Android account name field as optional (platform interface changes) #8735

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## NEXT
## 2.5.0

* Adds a sign-in field to allow Android clients to explicitly specify an account name.
This capability is only available within Android for the underlying libraries.
* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.

## 2.4.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class SignInInitParameters {
this.clientId,
this.serverClientId,
this.forceCodeForRefreshToken = false,
this.forceAccountName,
});

/// The list of OAuth scope codes to request when signing in.
Expand Down Expand Up @@ -78,6 +79,11 @@ class SignInInitParameters {
///
/// This is only used on Android.
final bool forceCodeForRefreshToken;

/// Can be used to explicitly set an account name on the underlying platform sign-in API.
///
/// This should only be set on Android; other platforms may throw.
final String? forceAccountName;
}

/// Holds information about the signed in user.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/google_sign_i
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+google_sign_in%22
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 2.4.5
version: 2.5.0

environment:
sdk: ^3.4.0
Expand Down