mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Update to Kotlin 1.4.21 and kotlinter 3.3.0
This commit is contained in:
		| @@ -72,7 +72,9 @@ class LibraryUpdateService( | ||||
|      */ | ||||
|     enum class Target { | ||||
|         CHAPTERS, // Manga chapters | ||||
|  | ||||
|         COVERS, // Manga covers | ||||
|  | ||||
|         TRACKING // Tracking metadata | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|     } | ||||
|   | ||||
| @@ -40,6 +40,7 @@ internal object ExtensionLoader { | ||||
|  | ||||
|     // inorichi's key | ||||
|     private const val officialSignature = "7ce04da7773d41b489f4693a366c36bcd0a11fc39b547168553c285bd7348e23" | ||||
|  | ||||
|     /** | ||||
|      * List of the trusted signatures. | ||||
|      */ | ||||
|   | ||||
| @@ -23,6 +23,7 @@ class WebtoonAdapter(val viewer: WebtoonViewer) : RecyclerView.Adapter<RecyclerV | ||||
|         private set | ||||
|  | ||||
|     var currentChapter: ReaderChapter? = null | ||||
|  | ||||
|     /** | ||||
|      * Updates this adapter with the given [chapters]. It handles setting a few pages of the | ||||
|      * next/previous chapter to allow seamless transitions. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user