The Amity Social Cloud SDK for Android is delivered via Jitpack repository.
Android 5.0 (API level 21) and above*
Target sdk version 29 and above*
Compile SDK Version 29 and above*
JVM target should be 1.8
The API level allows a developer to declare the minimum version with which the app is compatible, using the minSdkVersion
attribute. If your app can't function without these APIs, declare API level 21 and above as the app's minimum supported version. And using targetSdkVersion
29 and above.
Add the Jitpack repository in your project level build.gradle
at the end of repositories:
Add the dependency in your module level build.gradle.
Find latest SDK version at Changelog.
If your minSDKVersion is below 24, ie., 23 or 21, there are additional configurations required.
In your project build.gradle
,
In your app module's build.gradle
, add the following packaging options.
By using our SDK, you can use the Android ProGuard tool to obfuscate, shrink, and optimize your code. Obfuscated code can be more difficult for other people to reverse engineer. ProGuard renames classes, fields, and methods with semantically obscure names and removes unused code. However, you need to add these configurations to your ProGuard rules when using our SDK.
For users who are using the SDK version below 5.33.11
and 6.9.0
. If you'd like to pass an Amity Serializable Object such as AmityPost
, AmityMessage
, etc. You will need to add an additional ProGuard rules below:
For debugging purposes, we provide the ability to show or hide logs from our SDK. In the 'build.gradle' application, you can set the boolean value resValue
"IS HIDDEN AMITY LOG" to true
to hide the logs and to false
to make them visible.
In the 'build.gradle' application, you can also customize the log display depending on the build variant, as in this example.