Amplify Android 2.0.0
sktimalsina
released this
16 Nov 20:52
·
331 commits
to main
since this release
Breaking Changes
Android SDK
- Support for Android SDK API 24: Android 7.0 (Nougat) and higher
Escape Hatches
- Escape Hatches provide access to AWS SDK for Kotlin instead of
AWSMobileClient
from AWS SDK for Android.
Auth
signIn
now returns result withisSignedIn
instead ofisSignInComplete
confirmResetPassword
API takes additionalusername
parameter.signOut
now takes singleonComplete
parameter instead ofonSuccess
andonError
.fetchAuthSession
now returnsidentityIdResult
instead ofidentityId
.getCurrentUser
API is now asynchronous and requiresonSuccess
andonError
parameters.AuthUser
is returned inonSuccess
- The escape hatch now provides access to the underlying
CognitoIdentityProviderClient
andCognitoIdentityClient
instance. - Parameters
signInQueryParameters
,signOutQueryParameters
, andtokenQueryParameters
are dropped fromAuthWebUISignInOptions
. federationProviderName
has been dropped fromAWSCognitoAuthWebUISignInOptions
.signIn
will now return an error if you attempt to call sign in, while already signed in.
Features
Replace underlying AWS SDK with AWS SDK for Kotlin.
Auth
- Federate to Identity Pool
- Custom auth flow now supports without SRP flow
- Supports user migration flow
- Force refresh token.
Storage
- Add support to query local enqueued transfers.
Miscellaneous
- All the categories use the same version number