Skip to content

Commit c95d27d

Browse files
kevmoofotiDim
authored andcommitted
[google_sign_in] fix registration links (flutter#3859)
Fixes flutter/flutter#81847
1 parent 07f8069 commit c95d27d

File tree

2 files changed

+42
-31
lines changed

2 files changed

+42
-31
lines changed

packages/google_sign_in/google_sign_in/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## NEXT
2+
3+
* Fixed links in `README.md`.
4+
15
## 5.0.2
26

37
* Fix flutter/flutter#48602 iOS flow shows account selection, if user is signed in to Google on the device.

packages/google_sign_in/google_sign_in/README.md

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
1-
# google_sign_in
2-
31
[![pub package](https://img.shields.io/pub/v/google_sign_in.svg)](https://pub.dev/packages/google_sign_in)
42

53
A Flutter plugin for [Google Sign In](https://developers.google.com/identity/).
64

7-
*Note*: This plugin is still under development, and some APIs might not be available yet. [Feedback](https://github.com/flutter/flutter/issues) and [Pull Requests](https://github.com/flutter/plugins/pulls) are most welcome!
5+
_Note_: This plugin is still under development, and some APIs might not be
6+
available yet. [Feedback](https://github.com/flutter/flutter/issues) and
7+
[Pull Requests](https://github.com/flutter/plugins/pulls) are most welcome!
88

99
## Android integration
1010

11-
To access Google Sign-In, you'll need to make sure to [register your
12-
application](https://developers.google.com/mobile/add?platform=android).
11+
To access Google Sign-In, you'll need to make sure to
12+
[register your application](https://firebase.google.com/docs/android/setup).
1313

1414
You don't need to include the google-services.json file in your app unless you
1515
are using Google services that require it. You do need to enable the OAuth APIs
16-
that you want, using the [Google Cloud Platform API
17-
manager](https://console.developers.google.com/). For example, if you
18-
want to mimic the behavior of the Google Sign-In sample app, you'll need to
19-
enable the [Google People API](https://developers.google.com/people/).
16+
that you want, using the
17+
[Google Cloud Platform API manager](https://console.developers.google.com/). For
18+
example, if you want to mimic the behavior of the Google Sign-In sample app,
19+
you'll need to enable the
20+
[Google People API](https://developers.google.com/people/).
2021

21-
Make sure you've filled out all required fields in the console for [OAuth consent screen](https://console.developers.google.com/apis/credentials/consent). Otherwise, you may encounter `APIException` errors.
22+
Make sure you've filled out all required fields in the console for
23+
[OAuth consent screen](https://console.developers.google.com/apis/credentials/consent).
24+
Otherwise, you may encounter `APIException` errors.
2225

2326
## iOS integration
2427

25-
1. [First register your application](https://developers.google.com/mobile/add?platform=ios).
26-
2. Make sure the file you download in step 1 is named `GoogleService-Info.plist`.
27-
3. Move or copy `GoogleService-Info.plist` into the `[my_project]/ios/Runner` directory.
28-
4. Open Xcode, then right-click on `Runner` directory and select `Add Files to "Runner"`.
28+
1. [First register your application](https://firebase.google.com/docs/ios/setup).
29+
2. Make sure the file you download in step 1 is named
30+
`GoogleService-Info.plist`.
31+
3. Move or copy `GoogleService-Info.plist` into the `[my_project]/ios/Runner`
32+
directory.
33+
4. Open Xcode, then right-click on `Runner` directory and select
34+
`Add Files to "Runner"`.
2935
5. Select `GoogleService-Info.plist` from the file manager.
30-
6. A dialog will show up and ask you to select the targets, select the `Runner` target.
31-
7. Then add the `CFBundleURLTypes` attributes below into the `[my_project]/ios/Runner/Info.plist` file.
36+
6. A dialog will show up and ask you to select the targets, select the `Runner`
37+
target.
38+
7. Then add the `CFBundleURLTypes` attributes below into the
39+
`[my_project]/ios/Runner/Info.plist` file.
3240

3341
```xml
3442
<!-- Put me in the [my_project]/ios/Runner/Info.plist file -->
@@ -51,21 +59,26 @@ Make sure you've filled out all required fields in the console for [OAuth consen
5159

5260
### iOS additional requirement
5361

54-
Note that according to https://developer.apple.com/sign-in-with-apple/get-started,
55-
starting June 30, 2020, apps that use login services must also offer a "Sign in
56-
with Apple" option when submitting to the Apple App Store.
62+
Note that according to
63+
https://developer.apple.com/sign-in-with-apple/get-started, starting June 30,
64+
2020, apps that use login services must also offer a "Sign in with Apple" option
65+
when submitting to the Apple App Store.
5766

5867
Consider also using an Apple sign in plugin from pub.dev.
5968

60-
The Flutter Favorite [sign_in_with_apple](https://pub.dev/packages/sign_in_with_apple)
61-
plugin could be an option.
69+
The Flutter Favorite
70+
[sign_in_with_apple](https://pub.dev/packages/sign_in_with_apple) plugin could
71+
be an option.
6272

6373
## Usage
6474

6575
### Import the package
66-
To use this plugin, follow the [plugin installation instructions](https://pub.dev/packages/google_sign_in#pub-pkg-tab-installing).
76+
77+
To use this plugin, follow the
78+
[plugin installation instructions](https://pub.dev/packages/google_sign_in#pub-pkg-tab-installing).
6779

6880
### Use the plugin
81+
6982
Add the following import to your Dart code:
7083

7184
```dart
@@ -82,6 +95,7 @@ GoogleSignIn _googleSignIn = GoogleSignIn(
8295
],
8396
);
8497
```
98+
8599
[Full list of available scopes](https://developers.google.com/identity/protocols/googlescopes).
86100

87101
You can now use the `GoogleSignIn` class to authenticate in your Dart code, e.g.
@@ -98,13 +112,6 @@ Future<void> _handleSignIn() async {
98112

99113
## Example
100114

101-
Find the example wiring in the [Google sign-in example application](https://github.com/flutter/plugins/blob/master/packages/google_sign_in/google_sign_in/example/lib/main.dart).
102-
103-
## API details
104-
105-
See the [google_sign_in.dart](https://github.com/flutter/plugins/blob/master/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart) for more API details.
106-
107-
## Issues and feedback
115+
Find the example wiring in the
116+
[Google sign-in example application](https://github.com/flutter/plugins/blob/master/packages/google_sign_in/google_sign_in/example/lib/main.dart).
108117

109-
Please file [issues](https://github.com/flutter/flutter/issues/new)
110-
to send feedback or report a bug. Thank you!

0 commit comments

Comments
 (0)