Install Chat SDK
The Chat SDK for Android is delivered via maven repository.

Installation

Add the Jitpack repository in your project level build.gradle at the end of repositories:
1
allprojects {
2
repositories {
3
...
4
maven { url 'https://jitpack.io' }
5
}
6
}
Copied!
Add the dependency in your module level build.gradle:
1
implementation 'com.github.AmityCo.Amity-Social-Cloud-SDK-Android:amity-sdk:x.y.z'
Copied!
AmitySDK already includes our UIKit. Don’t install the UIKit separately if you have already installed the SDK.

Build environment

To get started using the SDK, data binding is required as a mandatory dependency. You need to download the library from the Support Repository in the Android SDK manager. For more information, see Update the IDE and SDK Tools.
To configure your app to use data binding, enable the dataBinding build option in your build.gradle file in the app module, as shown in the following example:
1
android {
2
...
3
buildFeatures {
4
dataBinding true
5
}
6
}
Copied!

Code Obfuscation

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.
1
-keep class com.ekoapp.ekosdk.** { *; }
2
-keep interface com.ekoapp.ekosdk.** { *; }
3
-keep enum com.ekoapp.ekosdk.** { *; }
4
-keep class com.amity.socialcloud.** { *; }
5
-keep interface com.amity.socialcloud.** { *; }
6
-keep enum com.amity.socialcloud.** { *; }
Copied!
Last modified 2mo ago
Export as PDF
Copy link