Convert NewVersionWorker to Kotlin

This commit is contained in:
TacoTheDank 2022-03-03 13:34:35 -05:00
parent 71f141f3f8
commit b8b97fa6d4
3 changed files with 163 additions and 177 deletions

View file

@ -94,7 +94,6 @@ object ReleaseVersionUtil {
)
}
@JvmStatic
fun isLastUpdateCheckExpired(expiry: Long): Boolean {
return Instant.ofEpochSecond(expiry).isBefore(Instant.now())
}
@ -104,7 +103,6 @@ object ReleaseVersionUtil {
*
* @return Epoch second of expiry date time
*/
@JvmStatic
fun coerceUpdateCheckExpiry(expiryString: String?): Long {
val now = ZonedDateTime.now()
return expiryString?.let {