Build chat in minutes with Sendbird UIKit open source code and samples.
We are introducing a new version of the Sendbird UIKit. Version 3 features a new modular architecture with more granular components that give you enhanced flexibility to customize your web and mobile apps. Check out our migration guides and download our samples
Sendbird UIKit for Android is a development kit with an user interface that enables an easy and fast integration of standard chat features into new or existing client apps. This repository houses the UIKit source code in addition to two samples as explained below.
Find out more about Sendbird UIKit for Android at UIKit for Android doc. If you need any help in resolving any issues or have questions, visit our community.
This section shows you the prerequisites you need for testing Sendbird UIKit for Android sample apps.
The minimum requirements for UIKit for Android are:
If you would like to try the sample app specifically fit to your usage, you can do so by replacing the default sample app ID with yours, which you can obtain by creating your Sendbird application from the dashboard. Furthermore, you could also add data of your choice on the dashboard to test. This will allow you to experience the sample app with data from your Sendbird application.
This section explains the steps you need to take before testing the sample apps.
Go to your Android Studio
and create a project for UIKit for Android in the Project window as follows:
Use androidx.*artifacts
.UIKit for Android is installed via Gradle
. Begin by opening the project's top-level build.gradle
file and adding code blocks as below:
Note: Add the code blocks in your root
build.gradle
file, not your modulebuild.gradle
file.
allprojects {
repositories {
maven { url "https://jitpack.io" }
maven { url "https://repo.sendbird.com/public/maven" }
}
}
If using Gradle 6.8 or higher, add the following to your settings.gradle
file:
dependencyResolutionManagement {
repositories {
maven { url "https://jitpack.io" }
maven { url "https://repo.sendbird.com/public/maven" }
}
}
Then, open the build.gradle
file at the application level. For Java
and Kotlin
, add code blocks and dependencies as below:
Note: View binding should be enabled in your
build.gradle
file.
apply plugin: 'com.android.application'
android {
buildFeatures {
viewBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'com.sendbird.sdk:uikit:LATEST_VERSION'
}
After saving your build.gradle
file, click the Sync button to apply all the changes.