Skip to content

Commit fe0b676

Browse files
Update documentation (#17)
* Update README.md * Apply suggestions from code review Co-authored-by: Kevin Cheung <kevinthecheung@users.noreply.github.com> * Update README.md * Update CHANGELOG.md * Update GIDSignInButton class docs. * Fix spelling regression. * Don't generate docs for NS_UNAVAILABLE methods. * Don't generate docs for NS_UNAVAILABLE methods. Co-authored-by: Kevin Cheung <kevinthecheung@users.noreply.github.com>
1 parent 091cfc5 commit fe0b676

5 files changed

Lines changed: 48 additions & 33 deletions

File tree

CHANGELOG.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
1-
# 6.0.0 (2021-7-14)
1+
# 6.0.0 (2021-7-13)
22
- Google Sign-In for iOS is now open source.
33
- Swift Package Manager support.
44
- Support for Simulator on M1 Macs.
55
- API surface updates
6-
- `GIDSignIn`
7-
- `sharedInstance` is now a class property.
8-
- `signIn` is now `signInWithConfiguration:presentingViewController:callback:` and always requests basic profile scopes.
9-
- `addScopes:presentingViewController:callback:` is the new way to add scopes beyond basic profile to a currently signed-in user.
10-
- `restorePreviousSignIn` is now `restorePreviousSignInWithCallback:`.
11-
- `disconnect` is now `disconnectWithCallback:`.
12-
- The `GIDSignInDelegate` protocol has been removed in favor of `GIDSignInCallback` and `GIDDisconnectCallback` blocks.
13-
- All sign-in flow configuration properties have been moved to `GIDConfiguration`.
14-
- The `GIDConfiguration` class had been added to represent the configuration needed to sign in a user.
15-
- `GIDAuthentication`
16-
- `getTokensWithHandler:` is now `doWithFreshTokens:`.
17-
- The `GIDAuthenticationHandler` typedef has been renamed `GIDAuthenticationAction`.
18-
- `refreshTokensWithHandler:` has been removed, use `doWithFreshTokens:` instead.
19-
- `GIDSignInButton` no longer makes calls to `GIDSignIn` internally and will need to be wired to an `IBAction` or similar in order for you to call `signInWithConfiguration:presentingViewController:callback:` to initiate a sign-in flow.
6+
- `GIDSignIn`
7+
- `sharedInstance` is now a class property.
8+
- `signIn` is now `signInWithConfiguration:presentingViewController:callback:` and always
9+
requests basic profile scopes.
10+
- `addScopes:presentingViewController:callback:` is the new way to add scopes beyond basic
11+
profile to a currently signed-in user.
12+
- `restorePreviousSignIn` is now `restorePreviousSignInWithCallback:`.
13+
- `disconnect` is now `disconnectWithCallback:`.
14+
- The `GIDSignInDelegate` protocol has been removed in favor of `GIDSignInCallback` and
15+
`GIDDisconnectCallback` blocks.
16+
- All sign-in flow configuration properties have been moved to `GIDConfiguration`.
17+
- The `GIDConfiguration` class had been added to represent the configuration needed to sign in a
18+
user.
19+
- `GIDAuthentication`
20+
- `getTokensWithHandler:` is now `doWithFreshTokens:`.
21+
- The `GIDAuthenticationHandler` typedef has been renamed `GIDAuthenticationAction`.
22+
- `refreshTokensWithHandler:` has been removed, use `doWithFreshTokens:` instead.
23+
- `GIDSignInButton` no longer makes calls to `GIDSignIn` internally and will need to be wired to
24+
an `IBAction` or similar in order for you to call
25+
`signInWithConfiguration:presentingViewController:callback:` to initiate a sign-in flow.
2026

2127
# 5.0.2 (2019-11-7)
2228
- Fixes the wrong error code being sent to `signIn:didSignInForUser:withError:` when the user
@@ -28,14 +34,14 @@
2834

2935
# 5.0.0 (2019-8-14)
3036
- Changes to GIDSignIn
31-
- `uiDelegate` has been replaced with `presentingViewController`.
32-
- `hasAuthInKeychain` has been replaced with `hasPreviousSignIn`.
33-
- `signInSilently` has been replaced with `restorePreviousSignIn`.
34-
- Removed deprecated `kGIDSignInErrorCodeNoSignInHandlersInstalled` error code.
37+
- `uiDelegate` has been replaced with `presentingViewController`.
38+
- `hasAuthInKeychain` has been replaced with `hasPreviousSignIn`.
39+
- `signInSilently` has been replaced with `restorePreviousSignIn`.
40+
- Removed deprecated `kGIDSignInErrorCodeNoSignInHandlersInstalled` error code.
3541
- Changes to GIDAuthentication
36-
- Removed deprecated methods `getAccessTokenWithHandler:` and `refreshAccessTokenWithHandler:`.
42+
- Removed deprecated methods `getAccessTokenWithHandler:` and `refreshAccessTokenWithHandler:`.
3743
- Changes to GIDGoogleUser
38-
- Removed deprecated property `accessibleScopes`, use `grantedScopes` instead.
44+
- Removed deprecated property `accessibleScopes`, use `grantedScopes` instead.
3945
- Adds dependencies on AppAuth and GTMAppAuth.
4046
- Removes the dependency on GoogleToolboxForMac.
4147
- Drops support for iOS 7.

GoogleSignIn/Sources/Public/GoogleSignIn/GIDConfiguration.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ NS_ASSUME_NONNULL_BEGIN
3838
@property(nonatomic, readonly, nullable) NSString *openIDRealm;
3939

4040
/// Unavailable. Please use `initWithClientID:` or one of the other initializers below.
41+
/// :nodoc:
4142
- (instancetype)init NS_UNAVAILABLE;
4243

4344
/// Initialize a `GIDConfiguration` object with a client ID.

GoogleSignIn/Sources/Public/GoogleSignIn/GIDSignIn.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ typedef void (^GIDDisconnectCallback)(NSError *_Nullable error);
6464
@property(nonatomic, readonly, nullable) GIDGoogleUser *currentUser;
6565

6666
/// Unavailable. Use the `sharedInstance` property to instantiate `GIDSignIn`.
67+
/// :nodoc:
6768
+ (instancetype)new NS_UNAVAILABLE;
6869

6970
/// Unavailable. Use the `sharedInstance` property to instantiate `GIDSignIn`.
71+
/// :nodoc:
7072
- (instancetype)init NS_UNAVAILABLE;
7173

7274
/// This method should be called from your `UIApplicationDelegate`'s `application:openURL:options:`

GoogleSignIn/Sources/Public/GoogleSignIn/GIDSignInButton.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ typedef NS_ENUM(NSInteger, GIDSignInButtonColorScheme) {
4040
/// This class provides the "Sign in with Google" button.
4141
///
4242
/// You can instantiate this class programmatically or from a NIB file. You
43-
/// should set up the `GIDSignIn` shared instance with your client ID and any
44-
/// additional scopes, implement the delegate methods for `GIDSignIn`, and add
45-
/// this button to your view hierarchy.
43+
/// should connect this control to an `IBAction`, or something similar, that
44+
/// calls signInWithConfiguration:presentingViewController:callback: on
45+
/// `GIDSignIn` and add it to your view hierarchy.
4646
@interface GIDSignInButton : UIControl
4747

4848
/// The layout style for the sign-in button.

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,25 @@
55

66
# Google Sign-In for iOS
77

8-
Google Sign-In for iOS allows users to sign in with their Google account from
9-
third-party apps.
8+
Get users into your apps quickly and securely, using a registration system they already use and trust—their Google account.
109

11-
Please visit [our developer site](https://developers.google.com/identity/sign-in/ios/)
10+
Visit [our developer site](https://developers.google.com/identity/sign-in/ios/)
1211
for integration instructions, documentation, support information, and terms of
1312
service.
1413

1514
## Getting Started
1615

17-
* Try our example app with:
18-
```
19-
$ pod try GoogleSignIn
20-
```
21-
and follow the directions [here](https://developers.google.com/identity/sign-in/ios/start).
22-
* Read our [getting started guides](https://developers.google.com/identity/sign-in/ios/start-integrating).
16+
* Try the [sample app](Sample).
17+
* Using [CocoaPods](https://cocoapods.org):
18+
```
19+
pod try GoogleSignIn
20+
```
21+
* Using [Swift Package Manager](https://swift.org/package-manager/):
22+
```
23+
git clone https://github.com/google/GoogleSignIn-iOS
24+
```
25+
```
26+
open GoogleSignIn-iOS/Sample/SignInSample.xcodeproj
27+
```
28+
* Add Google Sign-In to your own app by following our [getting started guides](https://developers.google.com/identity/sign-in/ios/start-integrating).
2329
* Take a look at the [API reference](https://developers.google.com/identity/sign-in/ios/api/).

0 commit comments

Comments
 (0)