Convert NewVersionWorker to Kotlin
This commit is contained in:
parent
71f141f3f8
commit
b8b97fa6d4
3 changed files with 163 additions and 177 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue