aws-sdk-android v2.18.0 Release Notes

Release Date: 2020-08-18 // almost 2 years ago
  • ๐Ÿš€ Release 2.18.0

    ๐Ÿ”– Version 2.18.0 introduces breaking changes against 2.17.1.

    ๐Ÿ’ฅ Breaking Updates

    • aws-android-sdk-mobile-client:
      • No breaking changes code-wise but if you already setup HostedUI for an older version of the SDK,
        ๐Ÿ“š you'll need to follow the steps in the updated documentation
        to properly handle the response going forward.
    • aws-android-sdk-cognitoauth:
      • getSession() method has been refactored to getSession(Activity activity), where activity is an instance of
        the activity the user is calling this method from. It uses this to launch HostedUI if it needs to sign in again.
      • getSession(boolean launchWebUIIfExpired) has been refactored to getSessionWithoutWebUI(). It will get session
        ๐Ÿ‘ป information if the refresh token is still valid, otherwise will throw an exception indicating the user must sign in

    ๐Ÿ› Bug Fixes

    • aws-android-sdk-mobile-client:
      • getTokens() was making a network call every time it was used, negating any benefit of cached tokens. Removed
        the unnecessary network call so it now correctly returns cached tokens when available with no network call (Issue #1722)