Android Sinch SDK - Installation
This is documentation how to easily implement our SDK for chat and for push features.
Prerequisites
- Android Studio and Android SDK tools available here .
- Android 5.0 Lollipop - min SDK 21
- Access to SDK GitHub repository
Create Android Studio project
Create a new Android Studio project using the 'Empty activity' template.
Setting up Maven and adding dependencies
In your Android project tree, open the settings.gradle
file and add the following code to the repositories
element under dependencyResolutionManagement
:
maven({
url "https://raw.githubusercontent.com/sinchlabs/sinch-chat-android-sdk/master/releases"
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "Bearer {your github personal token}"
}
authentication {
header(HttpHeaderAuthentication)
}
})
Next, open the application's build.gradle
file and add the following line to the dependencies
element:
implementation 'com.sinch.chat.sdk:sinch-chat-sdk:{version}'
Save both files and build your project.
Next, you must initialize your solution.