CallKit 3.X to 5.X Migration Guide
This document only describes the migration steps for CallKit SDK. If your app calls methods under RongCallClient from CallLib, please proceed to the CallLib migration guide after completing this document.
Overview
CallKit SDK 5.X is a new AndroidX-based version with richer features, improved stability, and numerous bug fixes from previous versions. We strongly recommend upgrading to CallKit 5.X as soon as possible.
Prerequisites
- CallKit SDK depends on IMKit. Ensure you've upgraded IMKit to 5.X.
- Your project must have been migrated to AndroidX as required by IMKit.
Effort Estimation
- Standard integration (via Maven): Simply update dependencies as described below.
- Minor code modifications: Resolve compilation errors after dependency updates.
- Major customizations: Reimplement your custom features using CallKit 5.X APIs by referring to your change history.
Dependency Updates
This section covers Maven integration only. For local dependency methods, see Import CallKit SDK.
Update Maven Repository URL
maven {url "https://dl.bintray.com/rongcloud/maven"} // 3.X
maven {url "https://maven.rongcloud.cn/repository/maven-releases/"} // 5.X
Update Dependency Names
dependencies {
// Replace x.y.z with actual version numbers. New users should use the latest version.
implementation 'cn.rongcloud.sdk:call_kit:x.y.z'
implementation 'cn.rongcloud.sdk:call_lib:x.y.z'
implementation 'cn.rongcloud.sdk:im_kit:x.y.z'
implementation 'cn.rongcloud.sdk:im_lib:x.y.z'
}
Note
- Version numbers (x.y.z or x.y.z.h) may vary across SDKs. Check RC's Maven Repository or RC SDK Downloads for updates.
- Starting from v5.2.0, CallKit/CallLib must maintain version consistency with IMKit/IMLib (the first three digits must match).