[extension_google_sign_in_as_googleapis_auth] Update example... (#311)

* [extension_google_sign_in_as_googleapis_auth] Update example to use scope from the People API

Make GoogleSignIn instance final
To use scope from the People API
Remove x bit from readme and pubspec.yaml
Add link to root repo README

* Update version in pubspec, and CHANGELOG.
This commit is contained in:
Kevin Moore
2021-03-15 13:57:57 -07:00
committed by GitHub
parent a164beb7bf
commit 344f575216
6 changed files with 9 additions and 6 deletions

View File

@ -34,6 +34,7 @@ These are the available packages in this repository.
| Plugin | Pub |
|--------|-----|
| [animations](./packages/animations/) | [![pub package](https://img.shields.io/pub/v/animations.svg)](https://pub.dev/packages/animations) |
| [extension_google_sign_in_as_googleapis_auth](./packages/extension_google_sign_in_as_googleapis_auth/) | [![pub package](https://img.shields.io/pub/v/extension_google_sign_in_as_googleapis_auth.svg)](https://pub.dev/packages/extension_google_sign_in_as_googleapis_auth) |
| [fuchsia_ctl](./packages/fuchsia_ctl/) | [![pub package](https://img.shields.io/pub/v/fuchsia_ctl.svg)](https://pub.dev/packages/fuchsia_ctl) |
| [multicast_dns](./packages/multicast_dns/) | [![pub package](https://img.shields.io/pub/v/multicast_dns.svg)](https://pub.dev/packages/multicast_dns) |
| [palette_generator](./packages/palette_generator/) | [![pub package](https://img.shields.io/pub/v/palette_generator.svg)](https://pub.dartlang.org/packages/palette_generator) |

View File

@ -1,3 +1,8 @@
## 2.0.2
* Update example to use a scope name as a constant from the People API, instead of a hardcoded string.
* Remove `x` bit from README and pubspec.yaml
## 2.0.1
* Rehomed to `flutter/packages` repository.

View File

View File

@ -10,11 +10,8 @@ import 'package:google_sign_in/google_sign_in.dart';
import 'package:extension_google_sign_in_as_googleapis_auth/extension_google_sign_in_as_googleapis_auth.dart';
import 'package:googleapis/people/v1.dart';
GoogleSignIn _googleSignIn = GoogleSignIn(
scopes: <String>[
'email',
'https://www.googleapis.com/auth/contacts.readonly',
],
final GoogleSignIn _googleSignIn = GoogleSignIn(
scopes: <String>[PeopleServiceApi.contactsReadonlyScope],
);
void main() {

View File

@ -6,7 +6,7 @@
name: extension_google_sign_in_as_googleapis_auth
description: A bridge package between google_sign_in and googleapis_auth, to create Authenticated Clients from google_sign_in user credentials.
version: 2.0.1
version: 2.0.2
repository: https://github.com/flutter/packages/tree/master/packages/extension_google_sign_in_as_googleapis_auth
dependencies: