An open API service indexing awesome lists of open source software.

https://github.com/boltuix/compose-mvi-2025

Modern Android app template using Jetpack Compose with MVI, Hilt, and Retrofit โ€“ 2025 edition
https://github.com/boltuix/compose-mvi-2025

2025 flow hilt hilt-dependency-injection jetpack-compose mvi-android mvi-architecture mvi-clean-architecture mvi-coroutines-flow retofit2 room room-database source-code todoapp

Last synced: 3 months ago
JSON representation

Modern Android app template using Jetpack Compose with MVI, Hilt, and Retrofit โ€“ 2025 edition

Awesome Lists containing this project

README

          

# ๐Ÿš€ Compose MVI 2025

A modern Android app template built with **Jetpack Compose**, **MVI architecture**, **Hilt for Dependency Injection**, and **Retrofit** for API communication โ€“ tailored for 2025 development best practices.

๐Ÿ“บ **YouTube Demo**: [Watch Now](https://youtu.be/rUnXeJ7zC1w)

![MVI Architecture Diagram](https://github.com/BoltUIX/compose-mvi-2025/blob/main/demo.jpg)
![MVI Architecture Diagram](https://raw.githubusercontent.com/BoltUIX/compose-mvi-2025/main/mvi.jpg)

---

## ๐Ÿงฑ Tech Stack

- โœ… Jetpack Compose (UI Toolkit)
- ๐Ÿง  MVI Architecture (Model-View-Intent)
- ๐Ÿ“ก Retrofit (API client)
- ๐Ÿ’‰ Hilt (Dependency Injection)
- ๐Ÿ”„ Kotlin Coroutines + Flow
- ๐Ÿ—ƒ Room (Offline caching)
- โœจ Clean Architecture principles

---

## ๐Ÿ“‚ Folder Structure

```
compose_post # ๐Ÿ—๏ธ Root Package (Main App)
โ”‚
โ”œโ”€โ”€ di # ๐Ÿ’‰ Dependency Injection Modules
โ”‚ โ”œโ”€โ”€ AppModule.kt # Shared dependencies
โ”‚ โ”œโ”€โ”€ NetworkModule.kt # Retrofit instance
โ”‚
โ”œโ”€โ”€ features # ๐Ÿš€ Modular Feature Design
โ”‚ โ”œโ”€โ”€ posts # ๐Ÿ“ Posts Feature
โ”‚ โ”‚ โ”œโ”€โ”€ data # API and Repository Layer
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ remote # Retrofit & Data Source
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ repository # Data Handling Logic
โ”‚ โ”‚ โ”œโ”€โ”€ domain # Business Logic Layer
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ model # Data Models
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ usecase # Use Cases
โ”‚ โ”‚ โ”œโ”€โ”€ mvi # ๐Ÿง  MVI Layer (State, Intent, ViewModel)
โ”‚ โ”‚ โ”œโ”€โ”€ presentation # ๐ŸŽจ UI Layer (Jetpack Compose)
```

---

## โœ… Features

- ๐Ÿ”„ Clean MVI flow with unidirectional data handling.
- โšก Smooth integration of Retrofit, Coroutines, and Flow.
- ๐Ÿ“ฑ Fully functional Compose UI screens.
- ๐Ÿ”ง Modular structure using Clean Architecture.
- ๐Ÿงช Easy to test, scale, and extend.

---

## ๐Ÿ“ฆ How to Use

1. Clone the repo:
```bash
git clone https://github.com/your-username/compose-mvi-2025.git
```

2. Open in Android Studio (Giraffe or later).

3. Sync Gradle and Run on emulator/device.

---

## ๐Ÿ“Œ Requirements

- Android Studio Giraffe or later
- Kotlin 1.9+
- Gradle 8.0+

---

## ๐Ÿ™Œ Credits

Built by [boltuix](mailto:boltuix@gmail.com) โ€“ inspired by modern clean architecture principles.

---

## ๐Ÿ“ข License

This project is licensed under the MIT License.