Skip to content
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
6 changes: 6 additions & 0 deletions packages/google_sign_in/google_sign_in_android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 7.2.11

* Bumps AndroidX Credentials to v1.6.0
* Bumps Play Services Auth to v21.5.1
* Bumps Android Identity GoogleID to v1.2.0
Comment on lines +3 to +5
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

While the dependency bumps are listed, the logic change in GoogleSignInPlugin.java (migrating to setPrompt for forced refresh tokens) should also be mentioned in the CHANGELOG to inform users of the implementation update, even if the intended behavior remains the same.

Suggested change
* Bumps AndroidX Credentials to v1.6.0
* Bumps Play Services Auth to v21.5.1
* Bumps Android Identity GoogleID to v1.2.0
* Bumps AndroidX Credentials to v1.6.0
* Bumps Play Services Auth to v21.5.1
* Bumps Android Identity GoogleID to v1.2.0
* Updates `authorize` implementation to use `setPrompt` for forced refresh tokens.


## 7.2.10

* Updates build files from Groovy to Kotlin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ android {
}

dependencies {
implementation("androidx.credentials:credentials:1.5.0")
implementation("androidx.credentials:credentials-play-services-auth:1.5.0")
implementation("com.google.android.libraries.identity.googleid:googleid:1.1.1")
implementation("com.google.android.gms:play-services-auth:21.4.0")
implementation("androidx.credentials:credentials:1.6.0")
implementation("androidx.credentials:credentials-play-services-auth:1.6.0")
implementation("com.google.android.libraries.identity.googleid:googleid:1.2.0")
implementation("com.google.android.gms:play-services-auth:21.5.1")
testImplementation("junit:junit:4.13.2")
testImplementation("org.mockito:mockito-core:5.23.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public void onResult(GetCredentialResponse response) {
googleIdTokenCredential.getDisplayName(),
googleIdTokenCredential.getFamilyName(),
googleIdTokenCredential.getGivenName(),
googleIdTokenCredential.getId(),
googleIdTokenCredential.getEmail(),
googleIdTokenCredential.getIdToken(),
profilePictureUri == null ? null : profilePictureUri.toString())));
} else {
Expand Down Expand Up @@ -384,7 +384,9 @@ public void authorize(
}
if (params.getServerClientIdForForcedRefreshToken() != null) {
authorizationRequestBuilder.requestOfflineAccess(
params.getServerClientIdForForcedRefreshToken(), true);
params.getServerClientIdForForcedRefreshToken());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For future me if I need to look at this pr.
Here is the changelog that matters (I initially started with jetpack credential manager)
https://developers.google.com/android/guides/releases#january_07_2026

This pr is doing exactly what the documentation suggests. https://developers.google.com/android/reference/com/google/android/gms/auth/api/identity/AuthorizationRequest.Builder#requestOfflineAccess(java.lang.String,%20boolean)

// This requests a new refresh token
authorizationRequestBuilder.setPrompt(AuthorizationRequest.Prompt.CONSENT);
}
if (params.getAccountEmail() != null) {
authorizationRequestBuilder.setAccount(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: google_sign_in_android
description: Android implementation of the google_sign_in plugin.
repository: https://github.com/flutter/packages/tree/main/packages/google_sign_in/google_sign_in_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+google_sign_in%22
version: 7.2.10
version: 7.2.11

environment:
sdk: ^3.9.0
Expand Down