Merge branch 'fix-declare-constant-as-field' into 'master'

Declare "MAX_AGE_CACHE" non-primitive constant as field

See merge request mangadex-pub/mangadex_at_home!63
This commit is contained in:
carbotaniuman 2020-07-18 16:33:45 +00:00
commit 4b1db7c705

View file

@ -22,7 +22,8 @@ import java.time.Duration
object Constants {
const val CLIENT_BUILD = 16
val MAX_AGE_CACHE: Duration = Duration.ofDays(14)
@JvmField val MAX_AGE_CACHE: Duration = Duration.ofDays(14)
const val MAX_READ_TIME_SECONDS = 300
const val MAX_WRITE_TIME_SECONDS = 60