AvengersChat
AvengersChat copied to clipboard
💙 Android sample Avengers chat application using Stream Chat SDK based on MVVM (ViewModel, Coroutines, Room, Hilt, Repository) architecture.
Avengers Chat
AvengersChat is a demo application based on modern Android tech stacks and Stream Chat SDK.
Previews
Tutorials
If you'd like to learn more about this project, check out the Tutorials Page!
Blog posts
Youtube Videos
- Stream Avengers Chat Part 1 - Home Screen
- Stream Avengers Chat Part 2 - Channel List Activity
- Stream Avengers Chat Part 3 - Message List Activity
Download
Go to the Releases to download the latest APK.

Stream Chat SDK
AvengersChat has been built with Stream Chat SDK for implementing messaging systems.
- Chat Messaging Tutorial - Basic tutorials for getting started by building a simple messaging app.
- Stream Chat Android repository - Official Android SDK for Stream Chat.
- Chat Client Documentation - Full documentation of the Chat client for requesting API calls.
- UI Components Documentation - Full documentation of the Stream UI Components.
- UI Components Sample - Official sample app for building messaging app.

Tech stack & Open source libraries
- Minimum SDK level 21.
- 100% Kotlin based + Coroutines + Flow for asynchronous.
- Hilt for dependency injection.
- JetPack
- Lifecycle - dispose observing data when lifecycle state changes.
- ViewModel - UI related data holder, lifecycle aware.
- Room Persistence - construct database.
- App Startup - Provides a straightforward, performant way to initialize components at application startup.
- Architecture
- MVVM Architecture (View - DataBinding - ViewModel - Model)
- Bindables - Android DataBinding kit for notifying data changes to UI layers.
- Repository pattern
- Material Design & Animations - Design system created by Google to help teams build high-quality digital experiences.
- Retrofit2 & OkHttp3 - Construct the REST APIs and paging network data.
- Sandwich - Construct lightweight http API response and handling error responses.
- Moshi - A modern JSON library for Kotlin and Java.
- Coil - Image loading for Android backed by Kotlin Coroutines.
- TransformationLayout - implementing transformation motion animations.
- android-youtube-player - YouTube Player library for Android and Chromecast, stable and customizable.
- DiscreteScrollView - Implementing a scrollable list of items.
- Timber - Logging.

Supported features
- Light and Dark themes.
- Different color themes by a chosen character.
- 100% offline mode supports.
- Live stream chat example.
- Channel and message lists.
- Direct message and group messages.
- Mentioned message list.
- Custom emoji reactions.
- Guest mode.
- User online/offline status.
- User last active date.
- User info & direct message dialogs.
- Visual animations like transition.
- And a lot of features by Stream Android SDK!
TODO
Anyone can contribute to our open source project! Please kindly read this Contributing Guideline before contributing to our project. 😎
- [x] Modify a user profile image.
- [x] Login with a new guest user.
- [x] Push notifications for new messages.
- [ ] Create group chats by selecting users.
- [ ] Access user info dialog everywhere.
- [ ] Add unit test cases for all business logic.
Chat screenshots
If you find some funny moments on this demo application, feel free to join and share that moment in this thread!
Architecture
MAD Score

Content Credits
All copyrights of the contents, concepts, and phrases that are used in this open-source project belong to Marvel Studios.
Find this repository useful? 💙
Support it by joining stargazers for this repository. :star:
License
Copyright 2021 Stream.IO, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.