AWS SDK for Android - Amazon Cognito Sync

The AWS Android SDK for Amazon Cognito Sync module holds the client classes that are used for communicating with Amazon Cognito Sync Service

License

License

Categories

Categories

AWS Container PaaS Providers
GroupId

GroupId

com.amazonaws
ArtifactId

ArtifactId

aws-android-sdk-cognito
Last Version

Last Version

2.20.1
Release Date

Release Date

Type

Type

jar
Description

Description

AWS SDK for Android - Amazon Cognito Sync
The AWS Android SDK for Amazon Cognito Sync module holds the client classes that are used for communicating with Amazon Cognito Sync Service
Project URL

Project URL

https://github.com/aws/aws-sdk-android
Source Code Management

Source Code Management

https://github.com/aws/aws-sdk-android

Download aws-android-sdk-cognito

How to add to project

<!-- https://jarcasting.com/artifacts/com.amazonaws/aws-android-sdk-cognito/ -->
<dependency>
    <groupId>com.amazonaws</groupId>
    <artifactId>aws-android-sdk-cognito</artifactId>
    <version>2.20.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.amazonaws/aws-android-sdk-cognito/
implementation 'com.amazonaws:aws-android-sdk-cognito:2.20.1'
// https://jarcasting.com/artifacts/com.amazonaws/aws-android-sdk-cognito/
implementation ("com.amazonaws:aws-android-sdk-cognito:2.20.1")
'com.amazonaws:aws-android-sdk-cognito:jar:2.20.1'
<dependency org="com.amazonaws" name="aws-android-sdk-cognito" rev="2.20.1">
  <artifact name="aws-android-sdk-cognito" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.amazonaws', module='aws-android-sdk-cognito', version='2.20.1')
)
libraryDependencies += "com.amazonaws" % "aws-android-sdk-cognito" % "2.20.1"
[com.amazonaws/aws-android-sdk-cognito "2.20.1"]

Dependencies

compile (1)

Group / Artifact Type Version
com.amazonaws : aws-android-sdk-core jar 2.20.1

Project Modules

There are no modules declared in this project.

AWS SDK for Android

DiscordChat GitHub release Maven Central CircleCI

For new projects, we recommend interacting with AWS using the Amplify Framework.

The AWS SDK for Android is a collection of low-level libraries for direct interaction with AWS backend services. For use cases not covered by the Amplify Framework, you may directly integrate these clients into your Android app.

Installation

The AWS SDK for Android can be directly embedded via .aar files, or you can download it from the Maven Central repository, by integrating it into your Android project's Gradle files.

From Maven

We recommend obtaining the dependency from Maven. To do so, add a dependency to your app's (module-level) build.gradle, in the dependencies section:

dependencies {
    implementation 'com.amazonaws:aws-android-sdk-SERVICE:2.x.y'
}

Above, SERVICE might be s3, ddb, pinpoint, etc. A full list is provided below.

Downloading SDK libraries

You can also download a .zip file containg .aar files for each of the SDK modules, here.

Add the aar files to a folder in your project called libs (create one if it doesn't already exist).

Ensure that the libs directory is included in your module-level build.gradle, under the dependencies block:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.aar'])
}

Available Modules

  • apigateway-core
  • auth-core
  • auth-facebook
  • auth-google
  • auth-ui
  • auth-userpools
  • autoscaling
  • cloudwatch
  • cognitoauth
  • cognitoidentityprovider
  • comprehend
  • connect
  • connectparticipant
  • core
  • ddb
  • ddb-document
  • ddb-mapper
  • ec2
  • elb
  • iot
  • kinesis
  • kinesisvideo
  • kinesisvideo-archivedmedia
  • kinesisvideo-signaling
  • kms
  • lambda
  • lex
  • location
  • logs
  • machinelearning
  • mobile-client
  • pinpoint
  • polly
  • rekognition
  • s3
  • sagemaker-runtime
  • sdb
  • ses
  • sns
  • sqs
  • testutils
  • textract
  • transcribe
  • translate

SDK Fundamentals

There are a few fundamentals that are helpful to know when developing against the AWS SDK for Android.

  • Never embed credentials in an Android application. It is trivially easy to decompile applications and steal embedded credentials. Always use temporarily vended credentials from services such as Amazon Cognito Identity.
  • Unless explicitly stated, calls are synchronous and must be taken off of the main thread.
  • Unless explicitly stated, calls can always throw an AmazonServiceException or an AmazonClientException (depending on if the exception is generated by the service or the client respectively).
  • The SDK will handle re-trying requests automatically, but unless explicitly stated will throw an exception if it cannot contact AWS.
  • We are always looking to help, please feel free to open an issue.

Versioning

The Android SDK is versioned like 2.x.y. 2 is a product identifier that never changes. x is bumped when there are breaking changes. y is bumped for not-breaking bugfixes, or for the introduction of new features/capabilities.

Building the SDK

Pre-requisites

The AWS Core Runtime (aws-android-sdk-core) module builds against Android API Level 23. Please download and install Android API Level 23 through SDK Manager in Android Studio, before building the SDK.

Set the ANDROID_HOME environment variable, to the root directory of your Android SDK installation.

For example, on a Mac OS X where Android Studio has been installed, the SDK comes bundled with it.

export ANDROID_HOME="$HOME/Library/Android/sdk"

Build

./gradlew build

Consuming Development Versions

Once you've built the SDK, you can manually install the SDK by publishing its artifacts to your local Maven repository.

The local Maven repository is usually found in your home directory at ~/.m2/repository.

To publish the outputs of the build, execute the following command from the root of the amplify-android project:

./gradlew publishToMavenLocal

After this, you can use the published development artifacts from an app. To do so, specify mavenLocal() inside the app's top-level build.gradle(Project) file:

buildscript {
    repositories {
        mavenLocal() // this should ideally appear before other repositories
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.1'
    }
}

allprojects {
    repositories {
        mavenLocal() // this should ideally appear before other repositories
    }
}

Then, specify local instead of a version number to point to mavenLocal inside build.gradle(Module) file:

dependencies {
    implementation 'com.amazonaws:aws-android-sdk-SERVICE:local'
}

Talk to Us

Come chat with us on our Discord Channel.

Report bugs to our GitHub Issues page.

Author

Amazon Web Services

License

See the LICENSE.txt for more info.

com.amazonaws

Amazon Web Services

Versions

Version
2.20.1
2.20.0
2.19.4
2.19.3
2.19.2
2.19.1
2.19.0
2.18.0
2.17.1
2.17.0
2.16.13
2.16.12
2.16.11
2.16.10
2.16.9
2.16.8
2.16.7
2.16.6
2.16.5
2.16.4
2.16.3
2.16.2
2.16.1
2.16.0
2.15.2
2.15.1
2.15.0
2.14.2
2.14.1
2.14.0
2.13.7
2.13.6
2.13.5
2.13.4
2.13.3
2.13.2
2.13.1
2.13.0
2.12.7
2.12.6
2.12.5
2.12.4
2.12.3
2.12.2
2.12.1
2.12.0
2.11.1
2.11.0
2.10.1
2.10.0
2.9.2
2.9.1
2.9.0
2.8.5
2.8.4
2.8.3
2.8.2
2.8.1
2.8.0
2.7.7
2.7.6
2.7.5
2.7.4
2.7.3
2.7.2
2.7.1
2.7.0
2.6.31
2.6.30
2.6.29
2.6.28
2.6.27
2.6.26
2.6.25
2.6.24
2.6.23
2.6.22
2.6.21
2.6.20
2.6.19
2.6.18
2.6.17
2.6.16
2.6.15
2.6.14
2.6.13
2.6.12
2.6.11
2.6.10
2.6.9
2.6.8
2.6.7
2.6.6
2.6.5
2.6.4
2.6.3
2.6.2
2.6.1
2.6.0
2.4.7
2.4.6
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.9
2.3.8
2.3.7
2.3.6
2.3.5
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.22
2.2.21
2.2.20
2.2.19
2.2.18
2.2.17
2.2.16
2.2.15
2.2.14
2.2.13
2.2.12
2.2.11
2.2.10
2.2.9
2.2.8
2.2.7
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.10
2.1.9
2.1.8
2.1.7
2.1.5
2.1.4
2.1.3