Move to official duration extensions

This commit is contained in:
Jobobby04
2021-12-25 12:05:06 -05:00
parent 8b8df62ff3
commit 999e944c34
11 changed files with 19 additions and 50 deletions
@@ -9,9 +9,9 @@ import exh.md.dto.LoginRequestDto
import exh.md.dto.RefreshTokenDto
import exh.md.service.MangaDexAuthService
import exh.md.utils.MdUtil
import exh.util.seconds
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.withTimeoutOrNull
import kotlin.time.Duration.Companion.seconds
class MangaDexLoginHelper(val authServiceLazy: Lazy<MangaDexAuthService>, val preferences: PreferencesHelper, val mdList: MdList) {
val authService by authServiceLazy
@@ -1,6 +1,6 @@
package exh.md.utils
import exh.util.minutes
import kotlin.time.Duration.Companion.minutes
object MdConstants {
const val baseUrl = "https://mangadex.org"