mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-22 00:03:55 +00:00
update dependencies
This commit is contained in:
parent
3bd4a7a245
commit
3845f6e0c5
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
.idea
|
||||
.kotlin
|
||||
out/*
|
||||
*.iml
|
||||
target
|
||||
|
@ -2,6 +2,13 @@
|
||||
|
||||
## 2.4.0
|
||||
|
||||
* `Version`:
|
||||
* `Kotlin`: `2.0.10`
|
||||
* `Coroutines`: `1.8.1`
|
||||
* `Serialization`: `1.7.1`
|
||||
* `Klock`: `5.4.0`
|
||||
* `AndroidXWork`: `2.9.1`
|
||||
|
||||
## 2.3.0
|
||||
|
||||
* `doWhile` now will guarantee that it will not call `doOnce` more than once for time
|
||||
|
@ -9,9 +9,9 @@ android.useAndroidX=true
|
||||
android.enableJetifier=false
|
||||
|
||||
|
||||
kotlin_version=1.9.23
|
||||
kotlin_coroutines_version=1.8.0
|
||||
kotlin_serialization_version=1.6.3
|
||||
kotlin_version=2.0.10
|
||||
kotlin_coroutines_version=1.8.1
|
||||
kotlin_serialization_version=1.7.1
|
||||
|
||||
dokka_version=1.9.20
|
||||
|
||||
@ -23,16 +23,16 @@ github_release_plugin_version=2.5.2
|
||||
|
||||
## Android
|
||||
|
||||
android_gradle_version=8.1.4
|
||||
android_gradle_version=8.2.2
|
||||
android_minSdkVersion=21
|
||||
android_compileSdkVersion=34
|
||||
android_buildToolsVersion=34.0.0
|
||||
android_compileSdkVersion=35
|
||||
android_buildToolsVersion=35.0.0
|
||||
dexcount_version=4.0.0
|
||||
junit_version=4.12
|
||||
test_ext_junit_version=1.1.3
|
||||
espresso_core=3.4.0
|
||||
|
||||
androidx_work_version=2.9.0
|
||||
androidx_work_version=2.9.1
|
||||
|
||||
## Common
|
||||
|
||||
|
@ -139,9 +139,12 @@ abstract class KronSchedulerWork(
|
||||
}
|
||||
throw e
|
||||
}
|
||||
when (result) {
|
||||
is Result.Failure -> if (prolongOnFailure) prolong()
|
||||
is Result.Success -> if (prolongOnSuccess) prolong()
|
||||
result.outputData
|
||||
if (result.isSuccess()) {
|
||||
if (prolongOnSuccess) prolong()
|
||||
}
|
||||
if (result.isFailure()) {
|
||||
if (prolongOnFailure) prolong()
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
10
src/androidMain/kotlin/ResultChecker.kt
Normal file
10
src/androidMain/kotlin/ResultChecker.kt
Normal file
@ -0,0 +1,10 @@
|
||||
package dev.inmo.krontab
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import androidx.work.ListenableWorker
|
||||
|
||||
@SuppressLint("RestrictedApi")
|
||||
internal fun ListenableWorker.Result.isSuccess() = this is ListenableWorker.Result.Success
|
||||
|
||||
@SuppressLint("RestrictedApi")
|
||||
internal fun ListenableWorker.Result.isFailure() = this is ListenableWorker.Result.Failure
|
Loading…
Reference in New Issue
Block a user