# google_sign_in_platform_interface 3.1.0

A common platform interface for the google_sign_in plugin.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'google_sign_in_platform_interface:3.1.0'
```
Published: 2025-09-09T19:25:08.856931Z
Expected archive SHA-256: 7f59208c42b415a3cca203571128d6f84f885fead2d5b53eb65a9e27f2965bb5

Available in cache; verification: upstream_checksum
## Direct dependencies
- flutter: map[sdk:flutter]
- plugin_platform_interface: ^2.1.7

## Package README (untrusted upstream documentation)
# google_sign_in_platform_interface

A common platform interface for the [`google_sign_in`][1] plugin.

This interface allows platform-specific implementations of the `google_sign_in`
plugin, as well as the plugin itself, to ensure they are supporting the
same interface.

# Usage

To implement a new platform-specific implementation of `google_sign_in`, extend
[`GoogleSignInPlatform`][2] with an implementation that performs the
platform-specific behavior, and when you register your plugin, set the default
`GoogleSignInPlatform` by calling
`GoogleSignInPlatform.instance = MyPlatformGoogleSignIn()`.

# Note on breaking changes

Strongly prefer non-breaking changes (such as adding a method to the interface)
over breaking changes for this package.

See https://flutter.dev/go/platform-interface-breaking-changes for a discussion
on why a less-clean interface is preferable to a breaking change.

[1]: ../google_sign_in
[2]: lib/google_sign_in_platform_interface.dart

## Changelog
## 3.1.0

* Adds a `clearAuthorizationToken` method to remove an access token from the
  cache.
* Updates minimum supported SDK version to Flutter 3.29/Dart 3.7.

## 3.0.0

* **BREAKING CHANGE**: Overhauls the entire API surface to better abstract the
  current set of underlying platform SDKs, and to use structured errors. See
  API doc comments for details on the behaviors that platform implementations
  must implement.
* Updates minimum supported SDK version to Flutter 3.27/Dart 3.6.

## 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

* Updates minimum required plugin_platform_interface version to 2.1.7.

## 2.4.4

* Updates `clearAuthCache` override to match base class declaration.

## 2.4.3

* Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
* Drop dependency on `package:quiver`.

## 2.4.2

* Adds pub topics to package metadata.
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.

## 2.4.1

* Clarifies `canAccessScopes` method documentation.

## 2.4.0

* Introduces: `canAccessScopes` method and `userDataEvents` stream.
  * These enable separation of Authentication and Authorization, and asynchronous
    sign-in operations where needed (on the web, for example!)
* Updates minimum Flutter version to 3.3.
* Aligns Dart and Flutter SDK constraints.

## 2.3.1

* Updates links for the merge of flutter/plugins into flutter/packages.
* Updates minimum Flutter version to 3.0.

## 2.3.0

* Adopts `plugin_platform_interface`. As a result, `isMock` is deprecated in
  favor of the now-standard `MockPlatformInterfaceMixin`.

## 2.2.0

* Adds support for the `serverClientId` parameter.

## 2.1.3

* Enables mocking models by changing overridden operator == parameter type from `dynamic` to `Object`.
* Removes unnecessary imports.
* Adds `SignInInitParameters` class to hold all sign in params, including the new `forceCodeForRefreshToken`.

## 2.1.2

* Internal code cleanup for stricter analysis options.

## 2.1.1

* Removes dependency on `meta`.

## 2.1.0

* Add serverAuthCode attribute to user data

## 2.0.1

* Updates `init` function in `MethodChannelGoogleSignIn` to parametrize `clientId` property.

## 2.0.0

* Migrate to null-safety.

## 1.1.3

* Update Flutter SDK constraint.

## 1.1.2

* Update lower bound of dart dependency to 2.1.0.

## 1.1.1

* Add attribute serverAuthCode.

## 1.1.0

* Add hasRequestedScope method to determine if an Oauth scope has been granted.
* Add requestScope Method to request new Oauth scopes be granted by the user.

## 1.0.4

* Make the pedantic dev_dependency explicit.

## 1.0.3

* Remove the deprecated `author:` field from pubspec.yaml
* Require Flutter SDK 1.10.0 or greater.

## 1.0.2

* Add missing documentation.

## 1.0.1

* Switch away from quiver_hashcode.

## 1.0.0

* Initial release.







 
