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.
Just click on button to create a new repo starting from this template.
- 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
andktlint
. - Issues Template (bug report + feature request).
- Pull Request Template.
For help with issues which you might encounter when using this template, please refer to TROUBLESHOOTING.md
This template is using Gradle Kotlin DSL as well as the Plugin DSL to setup the build.
Dependencies are centralized inside the Gradle Version Catalog in the libs.versions.toml file in the gradle
folder.
This template is using detekt to analyze the source code, with the configuration that is stored in the 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/).
This template is using GitHub 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 - Assembled a release APK and creates a GitHub release
Feel free to open a issue or submit a pull request for any bugs/improvements.
Original codebase is from cortinico/kotlin-android-template