From 59859e124f0321ad54c522ffa5673672cb4a368c Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 8 Dec 2020 22:31:48 -0500 Subject: [PATCH] Update to Kotlin 1.4.21 and kotlinter 3.3.0 --- .../eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt | 2 ++ .../eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt | 3 ++- .../eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt | 1 + .../tachiyomi/ui/reader/viewer/webtoon/WebtoonAdapter.kt | 1 + buildSrc/src/main/kotlin/Dependencies.kt | 4 ++-- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt index ca411c6fc..5632f62b1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt @@ -72,7 +72,9 @@ class LibraryUpdateService( */ enum class Target { CHAPTERS, // Manga chapters + COVERS, // Manga covers + TRACKING // Tracking metadata } diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt index a5f4f2f61..23ecc232d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt @@ -132,7 +132,8 @@ class MyAnimeList(private val context: Context, id: Int) : TrackService(id) { private fun checkCookies(): Boolean { val url = BASE_URL.toHttpUrlOrNull()!! val ckCount = networkService.cookieManager.get(url).count { - it.name == USER_SESSION_COOKIE || it.name == LOGGED_IN_COOKIE } + it.name == USER_SESSION_COOKIE || it.name == LOGGED_IN_COOKIE + } return ckCount == 2 } diff --git a/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt b/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt index 64b801081..b41b9503a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt @@ -40,6 +40,7 @@ internal object ExtensionLoader { // inorichi's key private const val officialSignature = "7ce04da7773d41b489f4693a366c36bcd0a11fc39b547168553c285bd7348e23" + /** * List of the trusted signatures. */ diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonAdapter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonAdapter.kt index d699079bc..40ecc987f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonAdapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonAdapter.kt @@ -23,6 +23,7 @@ class WebtoonAdapter(val viewer: WebtoonViewer) : RecyclerView.Adapter