Skip to content

Commit

Permalink
Separate approved changes to google_sign_in_platform_interface from t…
Browse files Browse the repository at this point in the history
…he rest of the PR changes.
  • Loading branch information
neilself committed Feb 28, 2025
1 parent 97b6074 commit 6676a6c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 2.5.0

* Add 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

0 comments on commit 6676a6c

Please sign in to comment.