客户端集成
集成 IM SDK 目前只支持导入 aar文件 方式。
开发环境
- 最低支持安卓系统版本 为19,即 minSdkVersion ≥ 19。
- Android Studio 3.0 或以上版本。
集成SDK
从 LVIMLib Android 下载SDK
将 libimcore.aar 文件放到项目的 app/libs 目录下
-
在
app/build.gradle中配置参数,如下图:
-
在 app 的
build.gradle文件添加如下内容:apply plugin: 'com.android.application' android { xxxx } repositories { flatDir { dirs 'libs' } } dependencies { implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar']) }
防止混淆代码
打开项目中的混淆配置文件(app/proguard-rules.pro),添加如下一行代码:
-keep public class com.im.** { *; }