LeanChat is a demo of the Realtime Messaging component of LeanCloud, through which you can learn and understand the real-time communication feature of LeanCloud.
You can experience the app by downloading it from: http://fir.im/leanchat
Please directly click on Download Zip
on Github as shown in the image below to download the latest version only. If you use git clone
, it might be very slow because it includes a large commit history. In a test, the difference was 1.5M:40M.
- leanchatlib: The core library for chat logic and interface. With it, you can quickly integrate chat functionality, supporting text, audio, image, and emoji messages, as well as message notifications. There is also a corresponding iOS version.
- leanchatlib-demo: The simplest usage example of leanchatlib. You can see how to configure AndroidManifest and additional user information to integrate chat, whether using LeanCloud's user system or your own user system.
- leanchat: The entire chat application. It includes features such as friend management, group management, location-based messaging, nearby users, personal pages, login, and registration, all based on LeanCloud's storage and communication capabilities.
- Leanchat-android: Android client
- Leanchat-ios: iOS client
- Leanchat-cloud-code: Optional server-side code, implemented using LeanCloud Cloud Code for chat signature, enhancing security.
- Please install the appropriate Gradle plugin.
- Intellij IDEA users are recommended to use Android Studio, as AS is based on IDEA, providing the same experience as IDEA and being the officially recommended IDE.
- Uses ButterKnife open-source library. Eclipse needs some settings to support ButterKnife annotations. See http://jakewharton.github.io/butterknife/ide-eclipse.html for specific settings. Otherwise, crashes may occur due to views not being bound.
- If you do not install the Gradle plugin and insist on converting to Ant format, note that there are dependencies in the project: leanchat depends on leanchatlib, and leanchatlib-demo also depends on leanchatlib. It is recommended to convert leanchatlib to Ant format first, then leanchat and leanchatlib-demo, while manually fixing dependencies and compilation errors.
- Run leanchatlib-demo and see this code for configuration. Provide a UserInfo object, no AVUser is needed.
LeanChat Android client depends on the following components of LeanCloud Android SDK:
- Base module
- Realtime communication module
- Analytics module
If you need these module SDKs, you can download them here or include them in your project using Gradle.
For any issues encountered with this project, please raise an issue.