Skip to content

Commit

Permalink
Bump to workmanager 2.8.1 (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
ened authored Sep 22, 2023
1 parent 61911a7 commit ab8a80a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# next

* Android: Bump to workmanager 2.8.1
* Android: Move to Android Gradle Plugin 8.x
* Android: Migrate away from ResolvableFuture (#399).

# 0.5.1
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

def work_version = "2.7.1"
def work_version = "2.8.1"
implementation "androidx.work:work-runtime:$work_version"
implementation "androidx.concurrent:concurrent-futures:1.1.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequest
import androidx.work.OutOfQuotaPolicy
import androidx.work.PeriodicWorkRequest
import androidx.work.WorkRequest
import dev.fluttercommunity.workmanager.WorkManagerCall.CancelTask.ByTag.KEYS.UNREGISTER_TASK_TAG_KEY
import dev.fluttercommunity.workmanager.WorkManagerCall.CancelTask.ByUniqueName.KEYS.UNREGISTER_TASK_UNIQUE_NAME_KEY
import dev.fluttercommunity.workmanager.WorkManagerCall.Initialize.KEYS.INITIALIZE_TASK_CALL_HANDLE_KEY
Expand Down Expand Up @@ -147,8 +148,8 @@ sealed class WorkManagerCall {
}

private enum class TaskType(val minimumBackOffDelay: Long) {
ONE_OFF(OneTimeWorkRequest.MIN_BACKOFF_MILLIS),
PERIODIC(PeriodicWorkRequest.MIN_BACKOFF_MILLIS)
ONE_OFF(WorkRequest.MIN_BACKOFF_MILLIS),
PERIODIC(WorkRequest.MIN_BACKOFF_MILLIS)
}

object Extractor {
Expand Down

0 comments on commit ab8a80a

Please sign in to comment.