mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Update to Kotlin 1.4.21 and kotlinter 3.3.0
This commit is contained in:
parent
2bb7a33bc3
commit
59859e124f
5 changed files with 8 additions and 3 deletions
|
@ -72,7 +72,9 @@ class LibraryUpdateService(
|
||||||
*/
|
*/
|
||||||
enum class Target {
|
enum class Target {
|
||||||
CHAPTERS, // Manga chapters
|
CHAPTERS, // Manga chapters
|
||||||
|
|
||||||
COVERS, // Manga covers
|
COVERS, // Manga covers
|
||||||
|
|
||||||
TRACKING // Tracking metadata
|
TRACKING // Tracking metadata
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,8 @@ class MyAnimeList(private val context: Context, id: Int) : TrackService(id) {
|
||||||
private fun checkCookies(): Boolean {
|
private fun checkCookies(): Boolean {
|
||||||
val url = BASE_URL.toHttpUrlOrNull()!!
|
val url = BASE_URL.toHttpUrlOrNull()!!
|
||||||
val ckCount = networkService.cookieManager.get(url).count {
|
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
|
return ckCount == 2
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ internal object ExtensionLoader {
|
||||||
|
|
||||||
// inorichi's key
|
// inorichi's key
|
||||||
private const val officialSignature = "7ce04da7773d41b489f4693a366c36bcd0a11fc39b547168553c285bd7348e23"
|
private const val officialSignature = "7ce04da7773d41b489f4693a366c36bcd0a11fc39b547168553c285bd7348e23"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of the trusted signatures.
|
* List of the trusted signatures.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -23,6 +23,7 @@ class WebtoonAdapter(val viewer: WebtoonViewer) : RecyclerView.Adapter<RecyclerV
|
||||||
private set
|
private set
|
||||||
|
|
||||||
var currentChapter: ReaderChapter? = null
|
var currentChapter: ReaderChapter? = null
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates this adapter with the given [chapters]. It handles setting a few pages of the
|
* Updates this adapter with the given [chapters]. It handles setting a few pages of the
|
||||||
* next/previous chapter to allow seamless transitions.
|
* next/previous chapter to allow seamless transitions.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
object BuildPluginsVersion {
|
object BuildPluginsVersion {
|
||||||
const val AGP = "4.1.1"
|
const val AGP = "4.1.1"
|
||||||
const val KOTLIN = "1.4.20"
|
const val KOTLIN = "1.4.21"
|
||||||
const val KOTLINTER = "3.0.2"
|
const val KOTLINTER = "3.3.0"
|
||||||
const val VERSIONS_PLUGIN = "0.36.0"
|
const val VERSIONS_PLUGIN = "0.36.0"
|
||||||
const val ABOUTLIB_PLUGIN = "8.6.3"
|
const val ABOUTLIB_PLUGIN = "8.6.3"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue