Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Android + Kotlin + Github Actions + ktlint + Detekt + Gradle Kotlin DSL + buildSrc = ❤️

License

NotificationsYou must be signed in to change notification settings

mistrydarshan99/kotlin-android-template

 
 

Repository files navigation

Use this templatePre Merge ChecksLicenseLanguage

A simple Github template that lets you create anAndroid/Kotlin project and be up and running in afew seconds.

This template is focused on delivering a project withstatic analysis andcontinuous integration already in place.

How to use 👣

Just click onUse this template button to create a new repo starting from this template.

Once created don't forget to update the:

Features 🎨

  • 100% Kotlin-only template.
  • 3 Sample modules (Android app, Android library, Kotlin library).
  • Sample Espresso, Instrumentation & JUnit tests.
  • 100% Gradle Kotlin DSL setup.
  • Dependency versions managed viabuildSrc.
  • CI Setup with GitHub Actions.
  • Kotlin Static Analysis viaktlint anddetekt.
  • Publishing Ready.
  • Issues Template (bug report + feature request)
  • Pull Request Template.

Gradle Setup 🐘

This template is usingGradle Kotlin DSL as well as thePlugin DSL to setup the build.

Dependencies are centralized inside theDependencies.kt file in thebuildSrc folder. This provides convenient auto-completion when writing your gradle files.

Static Analysis 🔍

This template is usingktlint with thektlint-gradle plugin to format your code. To reformat all the source code as well as the buildscript you can run thektlintFormat gradle task.

This template is also usingdetekt to analyze the source code, with the configuration that is stored in thedetekt.yml file (the file has been generated with thedetektGenerateConfig task).

CI ⚙️

This template is usingGitHub 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.

There are currently the following workflows available:

Publishing 🚀

The template is setup to beready to publish a library/artifact on a Maven Repository. If you're using JitPack, you don't need any further configuration and you can just configure the repo on JitPack. If you're using another repository (MavenCentral/JCenter/etc.), you need to specify the publishing coordinates.

Contributing 🤝

Feel free to open a issue or submit a pull request for any bugs/improvements.

About

Android + Kotlin + Github Actions + ktlint + Detekt + Gradle Kotlin DSL + buildSrc = ❤️

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin100.0%

[8]ページ先頭

©2009-2026 Movatter.jp