The latest version (v2) of Amplify Library for Android supports **Android SDK API 24: Android 7.0 (Nougat) and higher**. Amplify Library for Android is layered on the [AWS SDK for Kotlin](https://aws.amazon.com/sdk-for-kotlin). This allows for access to the AWS SDK for Kotlin for a breadth of service-centric APIs. In addition to the underlying SDK changes, the following are the API changes you will notice from v1 to v2: ## Auth - [signIn](/lib/auth/signin#sign-in-a-user) now returns result with `isSignedIn` instead of `isSignInComplete` - [confirmResetPassword](/lib/auth/password_management#reset-password) API takes additional `username` parameter. - [signOut](/lib/auth/signOut) now takes single `onComplete` parameter instead of `onSuccess` and `onError`. - [fetchAuthSession](/lib/auth/access_credentials) now returns `identityIdResult` instead of `identityId`. - `getCurrentUser` API is now asynchronous and requires `onSuccess` and `onError` parameters. `AuthUser` is returned in `onSuccess` ```kotlin Amplify.Auth.getCurrentUser({ authUser -> Log.i("MyAmplifyApp", "Current User is $authUser") }, { exception -> Log.e("MyAmplifyApp", "Error getting current user", exception) }) ``` - The escape hatch now provides access to the underlying `CognitoIdentityProviderClient` and `CognitoIdentityClient` instance. Read more [here](/lib/auth/escapehatch). - Parameters `signInQueryParameters`, `signOutQueryParameters`, and `tokenQueryParameters` are dropped from `AuthWebUISignInOptions`. - `federationProviderName` has been dropped from `AWSCognitoAuthWebUISignInOptions`. - `signIn` will now return an error if you attempt to call sign in, while already signed in. ## Escape Hatches With the latest version of Amplify Library for Android, you now have access to the AWS SDK for Kotlin. Please follow the guidelines under the respective categories to access its escape hatch: - [Analytics](/lib/analytics/escapehatch) - [Auth](/lib/auth/escapehatch) - [Geo](/lib/geo/escapehatch) - [Predictions](/lib/predictions/escapehatch) - [Storage](/lib/storage/escapehatch)