Move to official duration extensions
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user