AWS SDK Android ProGuard rules

AWS SDK – a library and documentation for developers to build connected Android mobile applications using AWS.


ProGuard rules for AWS SDK

Add the following lines to your ProGuard configuration proguard.cfg file in project.

# AWS SDK
# Class names are needed in reflection
-keepnames class com.amazonaws.**
-keepnames class com.amazon.**
# Request handlers defined in request.handlers
-keep class com.amazonaws.services.**.*Handler
# The following are referenced but aren't required to run
-dontwarn com.fasterxml.jackson.**
-dontwarn org.apache.commons.logging.**
# Android 6.0 release removes support for the Apache HTTP client
-dontwarn org.apache.http.**
# The SDK has several references of Apache HTTP client
-dontwarn com.amazonaws.http.**
-dontwarn com.amazonaws.metrics.**

For more information about AWS SDK please see the website.

Static Gson ProGuard rules

Popular ProGuard rules