Code Monkey home page Code Monkey logo

amplify-android's Introduction

Amplify for Android

AWS Amplify

DiscordChat GitHub release Maven Central

The Amplify Android library is AWS' preferred mechanism for interacting with AWS services from an Android device.

The library provides a high-level interface to perform different categories of cloud operations. Each category may be fulfilled by a plugin, which you configure during setup.

The default plugins that we provide are designed to facilitate interaction with Amazon Web Services (AWS). But, the Amplify Framework is designed to be extensible to any other backend or service.

To familiarize yourself with Amplify, checkout our Getting Started Guide.

Categories

Category AWS Provider Description
Authentication Cognito Building blocks to create auth experiences
Storage S3 Manages content in public, protected, private storage buckets
DataStore AppSync Programming model for shared and distributed data, with simple online/offline synchronization
API (GraphQL) AppSync Interact with your GraphQL or AppSync endpoint
API (REST) API Gateway Sigv4 signing and AWS auth for API Gateway and other REST endpoints
Analytics Pinpoint Collect Analytics data for your app including tracking user sessions
Geo Location Add maps to your app with APIs and map UI components
Predictions Various* Connect your app with machine learning services like NLP, computer vision, TTS, and more.
Push Notifications Pinpoint Segment users, trigger push notifications, and record metrics

* Predictions utilizes a range of Amazon's Machine Learning services, including: Amazon Comprehend, Amazon Polly, Amazon Rekognition, Amazon Textract, and Amazon Translate.

All services and features not listed above are supported via the Kotlin SDK or if supported by a category can be accessed via the Escape Hatch like below:

Kotlin

val s3StoragePlugin = Amplify.Storage.getPlugin("awsS3StoragePlugin")
val s3Client = s3StoragePlugin.escapeHatch as S3Client

Java

AWSS3StoragePlugin plugin = (AWSS3StoragePlugin) Amplify.Storage.getPlugin("awsS3StoragePlugin");
S3Client s3Client = plugin.getEscapeHatch();

Platform Support

The Amplify Framework supports Android API level 24 (Android 7.0) and above.

Using Amplify from Your App

For step-by-step setup instructions, checkout our Project Setup guide.

Specifying Gradle Dependencies

To begin, include Amplify from your app module's build.gradle dependencies section:

dependencies {
    // Only specify modules that provide functionality your app will use
    implementation 'com.amplifyframework:aws-analytics-pinpoint:2.11.1'
    implementation 'com.amplifyframework:aws-api:2.11.1'
    implementation 'com.amplifyframework:aws-auth-cognito:2.11.1'
    implementation 'com.amplifyframework:aws-datastore:2.11.1'
    implementation 'com.amplifyframework:aws-predictions:2.11.1'
    implementation 'com.amplifyframework:aws-storage-s3:2.11.1'
    implementation 'com.amplifyframework:aws-geo-location:2.11.1'
    implementation 'com.amplifyframework:aws-push-notifications-pinpoint:2.11.1'
}

Java 8 Requirement

Amplify Android requires Java 8 features. Please add a compileOptions block inside your app's build.gradle, as below:

android {
    compileOptions {
        coreLibraryDesugaringEnabled true
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

In the same file, add core library desugaring in your dependencies block:

dependencies {
    // Add this line
    coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.10'
}

Kotlin & Rx Support

Amplify's default interface renders results through async callbacks. We also provide optional, adapter APIs which better integrate with RxJava and Kotlin:

License

This library is licensed under the Apache 2.0 License.

Report a Bug

Open Bugs Open Questions Feature Requests Closed Issues

We appreciate your feedback – comments, questions, and bug reports. Please submit a GitHub issue, and we'll get back to you.

Contribute to the Project

We welcome any and all contributions from the community! Make sure you read through our Contribution Guidelines before submitting any PR's. Thanks! ♥️

amplify-android's People

Contributors

awsmobilesdk avatar banji180 avatar changxu0306 avatar dengdan154 avatar desokroshan avatar div5yesh avatar drochetti avatar eeatonaws avatar github-actions[bot] avatar gpanshu avatar huisf avatar jamesonwilliams avatar jordan-nelson avatar jpeddicord avatar jpignata avatar manueliglesias avatar mattcreaser avatar mikepschneider avatar mikschn-aws avatar poojamat avatar raphkim avatar richardmcclellan avatar rjuliano avatar royjit avatar saltonmassally avatar sdhuka avatar sktimalsina avatar tjleing avatar treksoft avatar tylerjroach avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.