

GitHub - cortinico/kotlin-android-template: Android + Kotlin + Github Actions +...
source link: https://github.com/cortinico/kotlin-android-template
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

kotlin-android-template 
A simple 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 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 via
buildSrc
. - CI Setup with GitHub Actions.
- Kotlin Static Analysis via
ktlint
anddetekt
. - Publishing Ready.
- Issues Template (bug report + feature request)
- Pull Request Template.
Gradle Setup 
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.
Static Analysis 
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).
CI 
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.
There are currently the following workflows available:
- Validate Gradle Wrapper - Will check that the gradle wrapper has a valid checksum
- Pre Merge Checks - Will run the
build
,check
andpublishToMavenLocal
tasks.
Publishing 
The template is setup to be ready 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.
Recommend
-
198
android/kotlin-guides: A set of guides for writing Kotlin for Android. This repository has been archived by the owner. It is now read-only...
-
32
README.md
-
15
How To Securely Build and Sign Your Android App With GitHub ActionsImplement automated release signing without uploading your KeyStore file to your repositoryReleasing an...
-
11
Python Project Template A low dependency and really simple to start project template for Python Projects. See also Flask-Project-Template for a full feature...
-
7
Android-Concepts-Reference-Kotlin A single repository to learn the basics of Android in Kotlin without all the fluff. How to use this repository Each branch contains a set of different but related concepts T...
-
1
-
8
Android CI/CD part 2: Building and pushing to Play Store in GitHub Actions Android • Mar 24, 2023 In the
-
5
Bump version code for Android apps using GitHub Actions Android • Apr 17, 2023 Play Store, since the beginning of time, had the...
-
9
Group Group Group Group
-
7
Kotlin Multiplatform GitHub Actions CI Verification using Labels
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK