This template repository provides a quick start for creating new Android apps using Jetpack Compose as the UI framework and following the MVVM architecture pattern.
It includes the following popular libraries:
- Hilt - Hilt is a dependency injection library for Android that reduces the boilerplate of doing manual dependency injection in your project.
- Room - Room persistence library provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite.
- Retrofit - A type-safe HTTP client for Android and the JVM.
- Moshi - A modern JSON library for Kotlin and Java.
- Coil - Image loading for Android backed by Kotlin Coroutines.
- Flower - Flower simplifies networking and database caching on Android/Multiplatform.
To use this template, simply click on the Use this template button at the top (or fork the repository) and start building your app on top of it. Make sure to update the package name and other app-specific details before building and deploying your app.
This project uses Kotlin Symbol Processing (KSP) for annotation processing, which provides faster build times compared to KAPT. However, some dependencies (like Hilt) may not support KSP yet, which is why KAPT is still used.
This project also takes advantage of Gradle's Build Cache and Configuration Cache features to speed up builds and reduce build times. Note that these features may not always provide significant improvements in build times depending on the project structure and build complexity.
Contributions to this project are welcome! If you encounter any problems or have suggestions for improvement, feel free to submit a pull request or open an issue.
This project is licensed under the MIT License.