A simple template that lets you create an Android/Kotlin project and be up and running in a few seconds.
Just click on Clone button to create a new repo starting from this template.
Once created don't forget to update the:
- 100% Kotlin-only template.
- 100% Gradle Kotlin DSL setup.
- Sample Espresso, Instrumentation & JUnit tests.
- Dependency versions managed via
buildSrc. - Kotlin Static Analysis via
ktlintanddetekt.
This template is using Gradle Kotlin DSL as well as the Plugin DSL to setup the build.
Dependencies are centralized inside the Dependencies.kt file in the buildSrc folder. This provides convenient auto-completion when writing your gradle files.
This template is using ktlint with the ktlint-gradle plugin to format your code. To reformat all the source code as well as the buildscript you can run the ktlintFormat gradle task.
This template is also 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).
Feel free to open a issue or submit a pull request for any bugs/improvements.