summaryrefslogtreecommitdiffstats
path: root/src/android/app
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-06-14 01:04:42 +0200
committerCharles Lombardo <clombardo169@gmail.com>2023-06-16 04:22:49 +0200
commitd85129aa17a98e368acad127edde864c4e1b3c85 (patch)
tree03cec8c18599b4fabcedfc62fc3e50f4e6760b91 /src/android/app
parentandroid: Enable android linting (diff)
downloadyuzu-d85129aa17a98e368acad127edde864c4e1b3c85.tar
yuzu-d85129aa17a98e368acad127edde864c4e1b3c85.tar.gz
yuzu-d85129aa17a98e368acad127edde864c4e1b3c85.tar.bz2
yuzu-d85129aa17a98e368acad127edde864c4e1b3c85.tar.lz
yuzu-d85129aa17a98e368acad127edde864c4e1b3c85.tar.xz
yuzu-d85129aa17a98e368acad127edde864c4e1b3c85.tar.zst
yuzu-d85129aa17a98e368acad127edde864c4e1b3c85.zip
Diffstat (limited to 'src/android/app')
-rw-r--r--src/android/app/build.gradle.kts20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts
index cb5f8b60c..7ae538cf9 100644
--- a/src/android/app/build.gradle.kts
+++ b/src/android/app/build.gradle.kts
@@ -2,7 +2,9 @@
// SPDX-License-Identifier: GPL-3.0-or-later
import android.annotation.SuppressLint
+import kotlin.collections.setOf
import org.jetbrains.kotlin.konan.properties.Properties
+import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
id("com.android.application")
@@ -10,6 +12,7 @@ plugins {
id("kotlin-parcelize")
kotlin("plugin.serialization") version "1.8.21"
id("androidx.navigation.safeargs.kotlin")
+ id("org.jlleitschuh.gradle.ktlint") version "11.4.0"
}
/**
@@ -157,6 +160,23 @@ android {
}
}
+tasks.getByPath("preBuild").dependsOn("ktlintCheck")
+
+ktlint {
+ version.set("0.47.0")
+ android.set(true)
+ ignoreFailures.set(false)
+ disabledRules.set(
+ setOf(
+ "no-wildcard-imports",
+ "package-name"
+ )
+ )
+ reporters {
+ reporter(ReporterType.CHECKSTYLE)
+ }
+}
+
dependencies {
implementation("androidx.core:core-ktx:1.10.1")
implementation("androidx.appcompat:appcompat:1.6.1")