Upgrade ktlint and do format

This commit is contained in:
tarsin committed 2023-04-22 10:51:24 +08:00
1 parent b8c9040030
commit ce0f160f31
5 files changed
+5 -5

No files matched your search

@@ -27,7 +27,7 @@ object EhDns : Dns {
private val builtInHosts: MutableMap<String, List<InetAddress>> = mutableMapOf()
init {
/* Pair(ip: String!, blockedByCCP: Boolean!) */
// Pair(ip: String!, blockedByCCP: Boolean!)
val ehgtHosts = arrayOf(
Pair("37.48.89.44", false),
Pair("81.171.10.48", false),
@@ -95,7 +95,7 @@ object EhTagDatabase : CoroutineScope {
}
}
/* Construct a cold flow for tag database suggestions */
// Construct a cold flow for tag database suggestions
fun suggestFlow(
keyword: String,
translate: Boolean,
@@ -70,7 +70,7 @@ interface CookiesDao {
fun update(cookie: Cookie)
}
/* 1 -> 2 some nullability changes */
// 1 -> 2 some nullability changes
@Database(
entities = [Cookie::class],
version = 2,
@@ -594,7 +594,7 @@ class ReaderActivity : EhActivity() {
val readerPreferences = EhApplication.readerPreferences
}
/* Tachiyomi funcs */
// Tachiyomi funcs
var isScrollingThroughPages = false
private set
+1 -1
View File
@@ -1,7 +1,7 @@
val ktlint by configurations.creating
dependencies {
ktlint("com.pinterest:ktlint:0.48.2") {
ktlint("com.pinterest:ktlint:0.49.0") {
attributes {
attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling.EXTERNAL))
}