mirror of
https://github.com/flutter/packages.git
synced 2025-07-01 15:23:25 +08:00
[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:
@ -34,6 +34,7 @@ These are the available packages in this repository.
|
|||||||
| Plugin | Pub |
|
| Plugin | Pub |
|
||||||
|--------|-----|
|
|--------|-----|
|
||||||
| [animations](./packages/animations/) | [](https://pub.dev/packages/animations) |
|
| [animations](./packages/animations/) | [](https://pub.dev/packages/animations) |
|
||||||
|
| [extension_google_sign_in_as_googleapis_auth](./packages/extension_google_sign_in_as_googleapis_auth/) | [](https://pub.dev/packages/extension_google_sign_in_as_googleapis_auth) |
|
||||||
| [fuchsia_ctl](./packages/fuchsia_ctl/) | [](https://pub.dev/packages/fuchsia_ctl) |
|
| [fuchsia_ctl](./packages/fuchsia_ctl/) | [](https://pub.dev/packages/fuchsia_ctl) |
|
||||||
| [multicast_dns](./packages/multicast_dns/) | [](https://pub.dev/packages/multicast_dns) |
|
| [multicast_dns](./packages/multicast_dns/) | [](https://pub.dev/packages/multicast_dns) |
|
||||||
| [palette_generator](./packages/palette_generator/) | [](https://pub.dartlang.org/packages/palette_generator) |
|
| [palette_generator](./packages/palette_generator/) | [](https://pub.dartlang.org/packages/palette_generator) |
|
||||||
|
@ -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
|
## 2.0.1
|
||||||
|
|
||||||
* Rehomed to `flutter/packages` repository.
|
* Rehomed to `flutter/packages` repository.
|
||||||
|
0
packages/extension_google_sign_in_as_googleapis_auth/example/README.md
Executable file → Normal file
0
packages/extension_google_sign_in_as_googleapis_auth/example/README.md
Executable file → Normal 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:extension_google_sign_in_as_googleapis_auth/extension_google_sign_in_as_googleapis_auth.dart';
|
||||||
import 'package:googleapis/people/v1.dart';
|
import 'package:googleapis/people/v1.dart';
|
||||||
|
|
||||||
GoogleSignIn _googleSignIn = GoogleSignIn(
|
final GoogleSignIn _googleSignIn = GoogleSignIn(
|
||||||
scopes: <String>[
|
scopes: <String>[PeopleServiceApi.contactsReadonlyScope],
|
||||||
'email',
|
|
||||||
'https://www.googleapis.com/auth/contacts.readonly',
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
0
packages/extension_google_sign_in_as_googleapis_auth/example/pubspec.yaml
Executable file → Normal file
0
packages/extension_google_sign_in_as_googleapis_auth/example/pubspec.yaml
Executable file → Normal file
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
name: extension_google_sign_in_as_googleapis_auth
|
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.
|
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
|
repository: https://github.com/flutter/packages/tree/master/packages/extension_google_sign_in_as_googleapis_auth
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
Reference in New Issue
Block a user