Skip to content

Tencent-RTC/TUIKit_Android_Compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TUIKit Android Compose

This document introduces how to quickly run the TUIKit Compose Demo.

Please Attention: In respect for the copyright of the emoji design, This project does not include the cutouts of large emoji elements. Please replace them with your own designed or copyrighted emoji packs before the official launch for commercial use. The default small yellow face emoji pack is copyrighted by Tencent Cloud and can be authorized for a fee. If you wish to obtain authorization, please Contact Us.

Step 1. Create an App

  1. Log in to the Chat Console. If you already have an app, record its SDKAppID.
  2. On the Application List page, click Create Application.
  3. In the Create Application dialog box, enter the app information and click Confirm.

After the app is created, an app ID (SDKAppID) will be automatically generated, which should be noted down.

Step 2: Obtain Key Information

  1. Click Application Configuration in the row of the target app to enter the app details page.
  2. Click View Key and copy and save the key information.

Please store the key information properly to prevent leakage.

Step 3: Download and Configure the Demo Source Code

  1. Clone this TUIKit_Android_Compose project.
  2. Open the Android project and locate chat/demo/app/src/main/java/io/trtc/tuikit/chat/signature/GenerateTestUserSig.java.
  3. Set relevant parameters in the GenerateTestUserSig.java file:
  • SDKAPPID: set it to the SDKAppID obtained in Step 1.
  • SECRETKEY: enter the key obtained in Step 2.

In this document, the method to obtain UserSig is to configure a SECRETKEY in the client code. In this method, the SECRETKEY is vulnerable to decompilation and reverse engineering. Once your SECRETKEY is leaked, attackers can steal your Tencent Cloud traffic. Therefore, this method is only suitable for locally running a demo project and feature debugging. The correct UserSig distribution method is to integrate the calculation code of UserSig into your server and provide an application-oriented API. When UserSig is needed, your app can send a request to the business server for a dynamic UserSig. For more information, please see How do I calculate UserSig on the server?.

Step 4: Compile and Run the Demo (Android)

  1. Open TUIKit_android_compose/chat/demo with Android Studio.
  2. Wait for Gradle sync to complete.
  3. Connect an Android device or start an emulator (Android 8.0+ recommended).
  4. Select the app run configuration and click Run.

When you run it successfully, you'll see this UI:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published