AWS Mobile SDK for Android v2.8.0
New Features
- AWS Mobile Client
- The
AWSMobileClient
provides client APIs and building blocks for developers who want to create user authentication experiences. It supports the following new features:- User state tracking:
AWSMobileClient
offers on-demand querying for the “login state” of a user in the application. - Credentials management: Automatic refreshing of
Cognito User Pools
JWT Token
andAWS Credentials
fromCognito Identity
. - Offline support:
AWSMobileClient
is optimized to account for applications transitioning from offline to online connectivity, and refreshing credentials at the appropriate time so that errors do not occur when actions are taken and connectivity is not available. - Drop-in Auth UI:
AWSMobileClient
client supports easy “drop-in” UI for your application. - Simple, declarative APIs
signUp
,signIn
,confirmSignIn
, etc.
- User state tracking:
- The
Note: The existing methods of
AWSMobileClient
are deprecated and will be removed in a future minor version.AWSMobileClient
now takes a dependency onAWSCognitoIdentityProvider
(Cognito User Pools SDK) package to offer integration withCognitoUserPools
. When using the new drop-in UI,AWSAuthUI
andSocial sign-in
features continue to be pluggable dependencies forAWSMobileClient
.
All documentation is now centralized at https://aws-amplify.github.io/
Enhancements
- Amazon Kinesis Video Streams
- Improve exception handling.
- Lower default memory allocation to 385MB to reduce crashes from over-allocation.
- Breaking API Changes
- Remove
streamName
parameter fromKinesisVideoClient.registerMediaSource()
asMediaSource
already has the stream name inStreamInfo
. - Add
KinesisVideoClient.unregisterMediaSource()
to removeMediaSource
toKinesisVideoProducerStream
binding fromKinesisVideoClient
. Customers can useunregisterMediaSource()
after they stop streaming, soMediaSource
data will not to be sent to Kinesis Video Streams. - Add
getStreamInfo()
toMediaSource
instead ofMediaSourceConfiguration
. If customers have implemented their ownMediaSource
andMediaSourceConfiguration
, they would need to provide stream information viaMediaSource.getStreamInfo()
. TheMediaSourceConfiguration.getStreamInfo()
will not work. - The following classes are no longer publicly available.
MediaSource
MediaSourceConfiguration
MediaSourceSink
AbstractKinesisVideoClient
NativeKinesisVideoClient
BytesGenerator
BytesMediaSource
BytesMediaSourceConfiguration
ProducerStreamSink
KinesisVideoServiceClient
NativeKinesisVideoProducerJni
NativeKinesisVideoProducerStream
NativeLibraryLoader
KinesisVideoMetrics
KinesisVideoProducer
KinesisVideoProducerStream
KinesisVideoStreamMetrics
ReadResult
ServiceCallbacks
com.amazonaws.kinesisvideo.service.exception.AccessDeniedException
com.amazonaws.kinesisvideo.service.exception.AmazonServiceException
com.amazonaws.kinesisvideo.service.exception.ResourceInUseException
com.amazonaws.kinesisvideo.service.exception.ResourceNotFoundException
AckConsumer
BlockingAckConsumer
DefaultServiceCallbacksImpl
- Remove