diff --git a/packages/google_sign_in/google_sign_in/CHANGELOG.md b/packages/google_sign_in/google_sign_in/CHANGELOG.md index 8e5aa4581196..19f7f8940238 100644 --- a/packages/google_sign_in/google_sign_in/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.1.1 + +* Support passing `clientId` to the web plugin programmatically. + ## 4.1.0 * Support web by default. diff --git a/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart b/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart index a78e92151811..0bd28faf5cf7 100644 --- a/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart +++ b/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart @@ -165,6 +165,7 @@ class GoogleSignIn { this.signInOption = SignInOption.standard, this.scopes = const [], this.hostedDomain, + this.clientId, }); /// Factory for creating default sign in user experience. @@ -207,6 +208,9 @@ class GoogleSignIn { /// Domain to restrict sign-in to. final String hostedDomain; + /// Client ID being used to connect to google sign-in. Only supported on web. + final String clientId; + StreamController _currentUserController = StreamController.broadcast(); @@ -240,6 +244,7 @@ class GoogleSignIn { signInOption: signInOption, scopes: scopes, hostedDomain: hostedDomain, + clientId: clientId, )..catchError((dynamic _) { // Invalidate initialization if it errors out. _initialization = null; diff --git a/packages/google_sign_in/google_sign_in/pubspec.yaml b/packages/google_sign_in/google_sign_in/pubspec.yaml index 45b395f87ce6..02f8f63fd7a8 100644 --- a/packages/google_sign_in/google_sign_in/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in/pubspec.yaml @@ -2,7 +2,7 @@ name: google_sign_in description: Flutter plugin for Google Sign-In, a secure authentication system for signing in with a Google account on Android and iOS. homepage: https://github.com/flutter/plugins/tree/master/packages/google_sign_in/google_sign_in -version: 4.1.0 +version: 4.1.1 flutter: plugin: