mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-15 06:52:49 +01:00
Removing ktlint
This commit is contained in:
parent
1dd130df9e
commit
ed7dbc6d2a
@ -32,8 +32,6 @@ subprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins.withType<BasePlugin> {
|
plugins.withType<BasePlugin> {
|
||||||
plugins.apply("tachiyomi.lint")
|
|
||||||
|
|
||||||
configure<BaseExtension> {
|
configure<BaseExtension> {
|
||||||
compileSdkVersion(AndroidConfig.compileSdk)
|
compileSdkVersion(AndroidConfig.compileSdk)
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
|
@ -5,7 +5,6 @@ plugins {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation(androidxLibs.gradle)
|
implementation(androidxLibs.gradle)
|
||||||
implementation(kotlinLibs.gradle)
|
implementation(kotlinLibs.gradle)
|
||||||
implementation(libs.ktlint)
|
|
||||||
implementation(gradleApi())
|
implementation(gradleApi())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
import org.jlleitschuh.gradle.ktlint.KtlintExtension
|
|
||||||
import org.jlleitschuh.gradle.ktlint.KtlintPlugin
|
|
||||||
|
|
||||||
apply<KtlintPlugin>()
|
|
||||||
|
|
||||||
extensions.configure<KtlintExtension>("ktlint") {
|
|
||||||
version.set("0.50.0")
|
|
||||||
android.set(true)
|
|
||||||
enableExperimentalRules.set(true)
|
|
||||||
|
|
||||||
filter {
|
|
||||||
exclude("**/generated/**")
|
|
||||||
|
|
||||||
// For some reason this is needed for Kotlin MPP
|
|
||||||
exclude { tree ->
|
|
||||||
val path = tree.file.path
|
|
||||||
listOf("/generated/").any {
|
|
||||||
path.contains(it)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -93,8 +93,6 @@ voyager-screenmodel = { module = "cafe.adriel.voyager:voyager-screenmodel", vers
|
|||||||
voyager-tab-navigator = { module = "cafe.adriel.voyager:voyager-tab-navigator", version.ref = "voyager" }
|
voyager-tab-navigator = { module = "cafe.adriel.voyager:voyager-tab-navigator", version.ref = "voyager" }
|
||||||
voyager-transitions = { module = "cafe.adriel.voyager:voyager-transitions", version.ref = "voyager" }
|
voyager-transitions = { module = "cafe.adriel.voyager:voyager-transitions", version.ref = "voyager" }
|
||||||
|
|
||||||
ktlint = "org.jlleitschuh.gradle:ktlint-gradle:12.0.3"
|
|
||||||
|
|
||||||
[bundles]
|
[bundles]
|
||||||
okhttp = ["okhttp-core", "okhttp-logging", "okhttp-brotli", "okhttp-dnsoverhttps"]
|
okhttp = ["okhttp-core", "okhttp-logging", "okhttp-brotli", "okhttp-dnsoverhttps"]
|
||||||
js-engine = ["quickjs-android"]
|
js-engine = ["quickjs-android"]
|
||||||
|
Loading…
Reference in New Issue
Block a user