mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-17 08:29:27 -04:00
Android studio integration for ktlint (runs on build)
This commit is contained in:
parent
22d7be4e3c
commit
5ea4bb2511
2 changed files with 8 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ plugins {
|
|||
id("kotlin-parcelize")
|
||||
kotlin("plugin.serialization") version "2.0.20"
|
||||
id("androidx.navigation.safeargs.kotlin")
|
||||
id("org.jlleitschuh.gradle.ktlint")
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -241,6 +242,11 @@ val unzipVulkanValidationLayers = tasks.register<Copy>("unzipVulkanValidationLay
|
|||
|
||||
tasks.named("preBuild") {
|
||||
dependsOn(unzipVulkanValidationLayers)
|
||||
dependsOn("ktlintCheck")
|
||||
}
|
||||
|
||||
ktlint {
|
||||
version = "1.8.0"
|
||||
}
|
||||
|
||||
fun getGitVersion(): String {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ plugins {
|
|||
id("com.android.library") version "8.13.2" apply false
|
||||
id("org.jetbrains.kotlin.android") version "2.0.20" apply false
|
||||
id("org.jetbrains.kotlin.plugin.serialization") version "2.0.20"
|
||||
id("org.jlleitschuh.gradle.ktlint") version "14.2.0"
|
||||
}
|
||||
|
||||
tasks.register("clean").configure {
|
||||
|
|
@ -17,6 +18,7 @@ tasks.register("clean").configure {
|
|||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.8.0")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue