Преглед изворни кода

Update changelog for the 7.0.0 release. (#250)

Peter Andrews пре 3 година
родитељ
комит
4b83468e01
1 измењених фајлова са 58 додато и 31 уклоњено
  1. 58 31
      CHANGELOG.md

+ 58 - 31
CHANGELOG.md

@@ -1,24 +1,51 @@
-# 6.2.4 (2022-9-13)
+# 7.0.0
+- All configuration can now be provided via your `Info.plist` file. ([#228](https://github.com/google/GoogleSignIn-iOS/pull/228))
+  - Use the following keys in `<key>KEY</key><string>VALUE</string>` pairs to configure the SDK:
+    - `GIDClientID` (required)
+    - `GIDServerClientID` (optional)
+    - `GIDHostedDomain` (optional)
+    - `GIDOpenIDRealm` (optional)
+- Support for [Swift Concurrency](https://docs.swift.org/swift-book/LanguageGuide/Concurrency.html). ([#187](https://github.com/google/GoogleSignIn-iOS/pull/187))
+- API surface improvements ([#249](https://github.com/google/GoogleSignIn-iOS/pull/249), [#228](https://github.com/google/GoogleSignIn-iOS/pull/228), [#187](https://github.com/google/GoogleSignIn-iOS/pull/187))
+  - `GIDSignIn`
+    - New `configuration` property.
+    - Removed `Configuration:` arguments from `signIn:` methods.
+    - Removed `addScopes:` and added it to `GIDGoogleUser`.
+    - Renamed `callback:` arguments to `completion:` for asynchronous methods taking blocks.
+  - `GIDGoogleUser`
+    - New `configuration` property.
+    - New `addScopes:` method moved from `GIDSignIn`.
+    - Removed `authentication` property and replaced it with:
+      - New `accessToken` property.
+      - New `refreshToken` property.
+      - New `idToken` property.
+      - New `fetcherAuthorizer` property.
+      - New `refreshTokensIfNeededWithCompletion:` method.
+  - New `GIDToken` class to represent access, refresh, and ID tokens in `GIDGoogleUser`.
+  - New `GIDSignInResult` class to represent the result of a successful signIn or addScopes flow.
+  - Removed `GIDSignInCallback`, `GIDDisconnectCallback`, and `GIDAuthenticationAction` block type definitions.
+
+# 6.2.4
 - Updated the GTMSessionFetcher dependency to allow 2.x versions. ([#207](https://github.com/google/GoogleSignIn-iOS/pull/207))
 
-# 6.2.3 (2022-8-18)
+# 6.2.3
 - Fix resource loading in GoogleSignInSwift with CocoaPods use_frameworks! ([#197](https://github.com/google/GoogleSignIn-iOS/pull/197))
 - Prevent build errors for GoogleSignInSwift in certain scenarios when using Swift Package Manager. ([#166](https://github.com/google/GoogleSignIn-iOS/pull/166))
 
-# 6.2.2 (2022-5-27)
+# 6.2.2
 - Prevent build errors for GoogleSignInSwift when using Swift Package Manager. ([#157](https://github.com/google/GoogleSignIn-iOS/pull/157))
 - Prevent a build error on Xcode 12 and earlier. ([#158](https://github.com/google/GoogleSignIn-iOS/pull/158))
 
-# 6.2.1 (2022-5-19)
+# 6.2.1
 - Use `GoogleSignInSwiftSupport` as the name of the Swift support CocoaPod. ([#137](https://github.com/google/GoogleSignIn-iOS/pull/137))
 
-# 6.2.0 (2022-5-18)
+# 6.2.0
 - Support for macOS. ([#104](https://github.com/google/GoogleSignIn-iOS/pull/104))
 - Added a SwiftUI "Sign in with Google" button. ([#103](https://github.com/google/GoogleSignIn-iOS/pull/103))
 - Added the ability to request additional scopes at sign-in time. ([#30](https://github.com/google/GoogleSignIn-iOS/pull/30))
 - Fixed several issues. ([#87](https://github.com/google/GoogleSignIn-iOS/pull/87), [#106](https://github.com/google/GoogleSignIn-iOS/issues/106))
 
-# 6.1.0 (2021-12-16)
+# 6.1.0
 - New Swift sample app demonstrating SwiftUI.
   ([#63](https://github.com/google/GoogleSignIn-iOS/pull/63))
 - Support for Mac Catalyst.
@@ -26,15 +53,15 @@
   ([#68](https://github.com/google/GoogleSignIn-iOS/pull/68),
   [#70](https://github.com/google/GoogleSignIn-iOS/pull/70))
 
-# 6.0.2 (2021-8-20)
+# 6.0.2
 - Ensure that module imports can be used when built as a library.
   ([#53](https://github.com/google/GoogleSignIn-iOS/pull/53))
 
-# 6.0.1 (2021-7-21)
+# 6.0.1
 - Fixes nested callbacks not being called for signIn and addScopes methods.
   ([#29](https://github.com/google/GoogleSignIn-iOS/pull/29))
 
-# 6.0.0 (2021-7-13)
+# 6.0.0
 - Google Sign-In for iOS is now open source.
 - Swift Package Manager support.
 - Support for Simulator on M1 Macs.
@@ -60,15 +87,15 @@
     an `IBAction` or similar in order for you to call
     `signInWithConfiguration:presentingViewController:callback:` to initiate a sign-in flow.
 
-# 5.0.2 (2019-11-7)
+# 5.0.2
 - Fixes the wrong error code being sent to `signIn:didSignInForUser:withError:` when the user
   cancels iOS's consent dialog during the sign-in flow.
 
-# 5.0.1 (2019-10-9)
+# 5.0.1
 - Fixes an issue that the sign in flow cannot be correctly started on iOS 13.
 - The zip distribution requires Xcode 11 or above.
 
-# 5.0.0 (2019-8-14)
+# 5.0.0
 - Changes to GIDSignIn
   - `uiDelegate` has been replaced with `presentingViewController`.
   - `hasAuthInKeychain` has been replaced with `hasPreviousSignIn`.
@@ -82,40 +109,40 @@
 - Removes the dependency on GoogleToolboxForMac.
 - Drops support for iOS 7.
 
-# 4.4.0 (2018-11-26)
+# 4.4.0
 - Removes the dependency on GTM OAuth 2.
 
-# 4.3.0 (2018-10-1)
+# 4.3.0
 - Supports Google's Enterprise Mobile Management.
 
-# 4.2.0 (2018-8-10)
+# 4.2.0
 - Adds `grantedScopes` to `GIDGoogleUser`, allowing confirmation of which scopes
   have been granted after a successful sign-in.
 - Deprecates `accessibleScopes` in `GIDGoogleUser`, use `grantedScopes` instead.
 - Localizes `GIDSignInButton` for hi (Hindi) and fr-CA (French (Canada)).
 - Adds dependency to the system `LocalAuthentication` framework.
 
-# 4.1.2 (2018-1-8)
+# 4.1.2
 - Add `pod try` support for the GoogleSignIn CocoaPod.
 
-# 4.1.1 (2017-10-17)
+# 4.1.1
 - Fixes an issue that `GIDSignInUIDelegate`'s `signInWillDispatch:error:` was
   not called on iOS 11. Please note that it is intended that neither
   `signIn:presentViewController:` nor `signIn:dismissViewController:` is called
   on iOS 11 because SFAuthenticationSession is not presented by the app's view
   controller.
 
-# 4.1.0 (2017-09-13)
+# 4.1.0
 - Uses SFAuthenticationSession on iOS 11.
 
-# 4.0.2 (2017-2-6)
+# 4.0.2
 - No longer depends on GoogleAppUtilities.
 
-# 4.0.1 (2016-10-24)
+# 4.0.1
 - Switches to open source pod dependencies.
 - Appearance of sign-in button no longer depends on requested scopes.
 
-# 4.0.0 (2016-4-21)
+# 4.0.0
 - GoogleSignIn pod now takes form of a static framework. Import with
   `#import <GoogleSignIn/GoogleSignIn.h>` in Objective-C.
 - Adds module support. You can also use `@import GoogleSignIn;` in Objective-C,
@@ -129,7 +156,7 @@
   from `GIDSignIn`.
 - No longer requires adding bundle ID as a URL scheme supported by the app.
 
-# 3.0.0 (2016-3-4)
+# 3.0.0
 - Provides `givenName` and `familyName` properties on `GIDProfileData`.
 - Allows setting the `loginHint` property on `GIDSignIn` to prefill the user's
   ID or email address in the sign-in flow.
@@ -141,41 +168,41 @@
 - Provides bitcode support.
 - Requires Xcode 7.0 or above due to bitcode incompatibilities with Xcode 6.
 
-# 2.4.0 (2015-10-26)
+# 2.4.0
 - Updates sign-in button with the new Google logo.
 - Supports domain restriction for sign-in.
 - Allows refreshing ID tokens.
 
-# 2.3.2 (2015-10-9)
+# 2.3.2
 - No longer requires Xcode 7.
 
-# 2.3.1 (2015-10-1)
+# 2.3.1
 - Fixes a crash in `GIDProfileData`'s `imageURLWithDimension:`.
 
-# 2.3.0 (2015-9-25)
+# 2.3.0
 - Requires Xcode 7.0 or above.
 - Uses SFSafariViewController for signing in on iOS 9.  `uiDelegate` must be
   set for this to work.
 - Optimizes fetching user profile.
 - Supports GTMFetcherAuthorizationProtocol in GIDAuthentication.
 
-# 2.2.0 (2015-7-15)
+# 2.2.0
 - Compatible with iOS 9 (beta).  Note that this version of the Sign-In SDK does
   not include bitcode, so you must set ENABLE_BITCODE to NO in your project if
   you use Xcode 7.
 - Adds descriptive identifiers for GIDSignInButton's Auto Layout constraints.
 - `signInSilently` no longer requires setting `uiDelegate`.
 
-# 2.1.0 (2015-6-17)
+# 2.1.0
 - Fixes Auto Layout issues with GIDSignInButton.
 - Adds API to refresh access token in GIDAuthentication.
 - Better exception description for unassigned clientID in GIDSignIn.
 - Other minor bug fixes.
 
-# 2.0.1 (2015-5-28)
+# 2.0.1
 - Bug fixes
 
-# 2.0.0 (2015-5-21)
+# 2.0.0
 - Supports sign-in via UIWebView rather than app switching to a browser,
   configurable with the new `allowsSignInWithWebView` property.
 - Now apps which have disabled the app switch to a browser via the
@@ -187,7 +214,7 @@
   is `NO` as documented
 - Other minor bug fixes
 
-# 1.0.0 (2015-3-12)
+# 1.0.0
 - New sign-in focused SDK with refreshed API
 - Dynamically rendered sign-in button with contextual branding
 - Basic profile support