Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhenwinch/compose-app-template
Android + Compose + Github Actions + Hilt DI + ktlint + Detekt + Kotlin DSL + build-logic = ❤️
https://github.com/rhenwinch/compose-app-template
android android-app android-application android-template ci-cd detekt github-actions github-template hilt hilt-android jetpack-compose kotlin kotlin-android kotlin-compose kotlin-dsl ktlint multi-module multi-module-project mvvm template
Last synced: 6 days ago
JSON representation
Android + Compose + Github Actions + Hilt DI + ktlint + Detekt + Kotlin DSL + build-logic = ❤️
- Host: GitHub
- URL: https://github.com/rhenwinch/compose-app-template
- Owner: rhenwinch
- License: mit
- Created: 2025-01-24T14:32:02.000Z (28 days ago)
- Default Branch: main
- Last Pushed: 2025-02-12T19:40:20.000Z (8 days ago)
- Last Synced: 2025-02-12T20:33:25.047Z (8 days ago)
- Topics: android, android-app, android-application, android-template, ci-cd, detekt, github-actions, github-template, hilt, hilt-android, jetpack-compose, kotlin, kotlin-android, kotlin-compose, kotlin-dsl, ktlint, multi-module, multi-module-project, mvvm, template
- Language: Kotlin
- Homepage:
- Size: 742 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# compose-app-template 🤖
[](https://github.com/rhenwinch/compose-app-template/generate)   
A multi-module compose app Github template that lets you create an **Android/Kotlin** project and be up and running in a **few seconds**.
This template is focused on delivering a project with **static analysis** and **continuous integration** already in place.
## How to use 👣
Just click on [](https://github.com/rhenwinch/compose-app-template/generate) button to create a new repo starting from this template.
## Features 🎨
- **100% Kotlin-only template**.
- 4 Sample modules (Android app, Android library, Kotlin library, Jetpack Compose Activity).
- Jetpack Compose setup ready to use.
- Sample Espresso, Instrumentation & JUnit tests.
- 100% Gradle Kotlin DSL setup.
- CI Setup with GitHub Actions.
- Publish to **Maven Central** with Github Actions.
- Dependency versions managed via `build-logic`.
- Kotlin Static Analysis via `detekt` and `ktlint`.
- Issues Template (bug report + feature request).
- Pull Request Template.## Troubleshooting
For help with issues which you might encounter when using this template, please refer to [TROUBLESHOOTING.md](TROUBLESHOOTING.md)
## Gradle Setup 🐘
This template is using [**Gradle Kotlin DSL**](https://docs.gradle.org/current/userguide/kotlin_dsl.html) as well as the [Plugin DSL](https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block) to setup the build.
Dependencies are centralized inside the Gradle Version Catalog in the [libs.versions.toml](gradle/libs.versions.toml) file in the `gradle` folder.
## Static Analysis 🔍
This template is using [**detekt**](https://github.com/detekt/detekt) to analyze the source code, with the configuration that is stored in the [detekt.yml](config/detekt/detekt.yml) file (the file has been generated with the `detektGenerateConfig` task). It also uses the **detekt-formatting** plugin which includes the ktlint rules (see https://detekt.dev/docs/rules/formatting/).
## CI ⚙️
This template is using [**GitHub Actions**](https://github.com/rhenwinch/compose-app-template/actions) as CI. You don't need to setup any external service and you should have a running CI once you start using this template, just make sure that you turn on the "Read and Write permissions" on the Action Settings of your repository.
There are currently the following workflows available:
- [Builds APK and Creates a Release](.github/workflows/apk_release_ci.yaml) - Assembled a release APK and creates a GitHub release## Contributing 🤝
Feel free to open a issue or submit a pull request for any bugs/improvements.
---
Original codebase is from [cortinico/kotlin-android-template](https://github.com/cortinico/kotlin-android-template)