Skip to content

Releases: aws-amplify/amplify-swift

1.7.0 (2021-03-19)

19 Mar 22:18
Compare
Choose a tag to compare

Features

  • datastore: process OperationDisabled error (#1104)
  • amplify-xcode: generate JSON schema (#1080)

Bug Fixes

  • API: Return response body for non-2xx failure cases (#1076)
  • auth: update warn to log for identity pool config (#1081)

1.6.1 (2021-02-19)

19 Feb 23:45
Compare
Choose a tag to compare

Misc updates

  • Amplify/Tools pod is currently deprecated and it will be completely removed in a future release, a deprecation warning will be issued if used in an Xcode build script

1.6.0 (2020-02-04)

04 Feb 22:53
Compare
Choose a tag to compare

Features

  • Support lazy load and pagination for API (#1009)
  • Separate DataStore List logic out to list provider (#1000)

Behavior Change

  • Auth: Fix cancelling hostedUI returning a generic error (#982).

    When a user cancels the sign in flow from Amplify.Auth.signInWithWebUI, the callback will now deliver an error of type AuthError.service, with an underlying error of AWSCognitoAuthError.userCancelled. Previously, the error was a SFAuthenticationError.canceledLogin. The AuthError.service error type will be returned regardless of whether the underlying HostedUI operation was performed via an SFAuthenticationSession or an ASWebAuthenticationSession.

    You can detect the user cancellation case by switching on the error, as in:

    switch result {
      case .success:
          print("SignOut")
      case .failure(let error):
          if case AuthError.service(_, _, let underlyingError) = error,
              case .userCancelled = (underlyingError as? AWSCognitoAuthError) {
              print("User cancelled")
          }
    }

Misc updates

  • Auth: Amplify.Auth.signInWithWebUI now automatically uses ASWebAuthenticationSession internally for iOS 13.0+. For older iOS versions, it will fall back to SFAuthenticationSession.
    This release also introduces a new preferPrivateSession flag to AWSAuthWebUISignInOptions during the sign in flow. If preferPrivateSession is set to true during sign in, and the user's preferred browser supports ASWebAuthenticationSession.prefersEphemeralWebBrowserSession, the user will not see a web view displayed when they sign out.

    Amplify.Auth.signInWithWebUI(presentationAnchor: self.view.window!, 
                                 options: .preferPrivateSession()) { ... }

1.5.5 (2021-01-26)

27 Jan 00:00
Compare
Choose a tag to compare

Bug Fixes

  • AWSAPIPlugin: Update dependencies to consume AppSyncRealTimeClient race condition fix (#1038)
  • datastore: delete model with predicate (#1030)

1.5.4 (2021-01-21)

21 Jan 18:47
Compare
Choose a tag to compare

Bug Fixes

  • DataStore: Generate mutation events for associatedModels (#987)
  • DataStore: support for QueryPredicateConstant.all for graphql queries (#1013)

1.5.3 (2021-01-08)

09 Jan 02:06
Compare
Choose a tag to compare

Bug Fixes

  • DataStore/API: retrieve correct associated target name (#965)

1.5.2 (2020-12-23)

24 Dec 01:26
Compare
Choose a tag to compare

Bug Fixes

DataStore: QueryPredicate translation (#961)
refactor GraphQL response decoder (#971)
add blog post comment schema and tests (#970)
Auth: Dismiss empty UIViewController (#947)
Add plugin conformances to AmplifyVersionable (#941)

1.5.1 (2020-12-11)

11 Dec 16:19
Compare
Choose a tag to compare

Bug Fixes

  • Predictions: use string's unicode scalars view to compute indexes for Comprehend results (#904)
  • Predictions: Callback is not triggered with URLError (#896)
  • DataStore: add targetName to hasOne relationships (#926)

1.5.0 (2020-12-03)

04 Dec 01:08
Compare
Choose a tag to compare

Features

  • DataStore: selective sync on initial sync & incoming subscription models (#884)
  • DataStore: Start/Stop implementation (#919)
    • Note: In previous releases, the DataStore sync engine was started automatically on Amplify.configure(). With this release, the DataStore sync engine does not start on Amplify.configure(). More information can be found in the documentation here.

Bug Fixes

  • API: subscription cancel unit test failing intermittently (#927)
  • Auth: Fix an issue where the fetchAuthSession callback is called twice (#922)
  • DataStore: SyncMutationToCloudOperationTests thread sanitizer bug (#915)
  • Predictions: Avoid Multiple Rekognition Error Return (#910)
  • Predictions: Fix of PredicationPlugin unit tests (#903)
  • Use correct category plugins to populate dev menu (#897)
  • DataStore: Nested query predicates are not stored properly (#905)

1.4.4 (2020-11-19)

19 Nov 22:15
Compare
Choose a tag to compare

Bug Fixes

  • Designate SwiftUI a weak_framework in podspec (#892)