TUIChat
chat component.Message UI | Sending Different Types of Messages |
|
Message Reaction | Reply |
|
Message Read Receipt | Read Receipt Details |
|
Message UI | Sending Different Types of Messages |
|
Message Reaction | Reply |
|
Message Read Receipt | Read Receipt Details |
|
Message UI | Sending Different Types of Messages |
| |
Message Likes/Reply/Quoting | Message Reply Details |
| |
Message Read Receipt | Message Read Receipt Details |
| |
// Include the internal communication module (required module)include ':tuicore'project(':tuicore').projectDir = new File(settingsDir, '../TUIKit/TUICore/tuicore')// Include the Chat component common module (required module)include ':timcommon'project(':timcommon').projectDir = new File(settingsDir, '../TUIKit/TIMCommon/timcommon')// Include the chat feature module (basic feature module)include ':tuichat'project(':tuichat').projectDir = new File(settingsDir, '../TUIKit/TUIChat/tuichat')
api project(':tuichat')
buildscript {repositories {mavenCentral()}dependencies {classpath 'com.android.tools.build:gradle:7.0.0'classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"}}
buildscript {repositories {mavenCentral()maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }}dependencies {classpath 'com.android.tools.build:gradle:8.0.2'classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0"}}
allowBackup
is false
, which indicates that the backup and restore features are disabled.
You can delete allowBackup
attribute from your AndroidManifest.xml
file to indicate that the backup and restore features are disabled. You can also add tools:replace="android:allowBackup"
in the application node of AndroidManifest.xml
file to indicate overriding Char SDK settings and use your own settings.<manifest xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"package="com.tencent.qcloud.tuikit.myapplication"><applicationandroid:allowBackup="true"android:name=".MApplication"android:icon="@mipmap/ic_launcher"android:label="@string/app_name"android:roundIcon="@mipmap/ic_launcher_round"android:supportsRtl="true"android:theme="@style/Theme.MyApplication"tools:replace="android:allowBackup"><activity android:name=".MainActivity"><intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter></activity></application></manifest>
ndk.dir=/Users/***/Library/Android/sdk/ndk/16.1.4479499
MultiDex
support in your App’s build.gradle file, by adding multiDexEnabled true
and the corresponding dependency:android {defaultConfig {...minSdkVersion 19targetSdkVersion 30multiDexEnabled true}...}dependencies {implementation "androidx.multidex:multidex:2.0.1"}
public class MyApplication extends SomeOtherApplication {@Overrideprotected void attachBaseContext(Context base) {super.attachBaseContext(base);MultiDex.install(this);}}
TUIChat
component uses the Kotlin code, you need to add a Kotlin build plug-in. Refer to step 4 of the Integrate TUIChat Source Code above.# Avoid deleting code logic -dontshrink -dontoptimize# Avoid aliasing TUIKit-keep class com.tencent.qcloud.** { *; }
Was this page helpful?