Skip to content

Commit

Permalink
[extension_google_sign_in_as_googleapis_auth] Update example... (flut…
Browse files Browse the repository at this point in the history
…ter#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.
  • Loading branch information
kevmoo authored Mar 15, 2021
1 parent a164beb commit 344f575
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 344f575

Please sign in to comment.