Setup - KaleyraVideo/VideoAndroidSDK GitHub Wiki
Get your Credentials
To integrate the Kaleyra Video Android SDK you will need a mobile appId.
Before integrating KaleyraVideo SDK, you need first to get valid credentials.
In order to to obtain credentials, you must contact our sales department here.
N.B. The appId is a string which starts with
mAppId_
Add Dependency
Step 1
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://maven.bandyer.com/releases' }
}
}
Step 2
Add this line into app/build.gradle file:
implementation(platform("com.kaleyra:video-sdk-bom:$kaleyraVideoSdkVersion"))
implementation 'com.kaleyra:video-sdk'
or use the sdk for smartglasses:
implementation(platform("com.kaleyra:video-sdk-bom:$kaleyraVideoSdkVersion"))
implementation 'com.kaleyra:video-glasses-sdk'
In case you are not experienced see here to get a better idea on where it should be added
Android Studio Project Setup
KaleyraVideo requires AndroidX.
Migration process to AndroidX is quite simple with the Android Studio migration support. If your app needs to be updated to AndroidX please refer to: https://developer.android.com/jetpack/androidx/migrate.
If your app is built using Kotlin language, please consider that the minimum supported language version for KaleyraVideo SDK is v1.9.0.
KaleyraVideo SDK requires API 34, JDK 17, Java version 1.8 and has a minumin sdk version set on API 21.
android {
compileSdkVersion 34
buildToolsVersion "34.0.0"
defaultConfig {
applicationId "com.example.demo_app"
minSdkVersion 21
targetSdkVersion 34
[...]
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
[...]
}