Update dependencies
This commit is contained in:
@@ -6,9 +6,9 @@ import androidx.work.WorkInfo
|
||||
import androidx.work.WorkManager
|
||||
import androidx.work.WorkQuery
|
||||
import androidx.work.WorkRequest
|
||||
import androidx.work.await
|
||||
import androidx.work.impl.WorkManagerImpl
|
||||
import androidx.work.impl.model.WorkSpec
|
||||
import kotlinx.coroutines.guava.await
|
||||
import java.util.UUID
|
||||
import kotlin.coroutines.resume
|
||||
import kotlin.coroutines.resumeWithException
|
||||
@@ -63,7 +63,7 @@ suspend fun WorkManager.awaitWorkInfoById(id: UUID): WorkInfo? {
|
||||
|
||||
@SuppressLint("RestrictedApi")
|
||||
suspend fun WorkManager.awaitUniqueWorkInfoByName(name: String): List<WorkInfo> {
|
||||
return getWorkInfosForUniqueWork(name).await().orEmpty()
|
||||
return getWorkInfosForUniqueWork(name).await()
|
||||
}
|
||||
|
||||
@SuppressLint("RestrictedApi")
|
||||
|
||||
@@ -535,10 +535,6 @@ class DownloadWorker @AssistedInject constructor(
|
||||
const val MAX_PAGES_PARALLELISM = 4
|
||||
const val DOWNLOAD_ERROR_DELAY = 2_000L
|
||||
const val MAX_RETRY_DELAY = 7_200_000L // 2 hours
|
||||
const val MANGA_ID = "manga_id"
|
||||
const val CHAPTERS_IDS = "chapters"
|
||||
const val IS_SILENT = "silent"
|
||||
const val START_PAUSED = "paused"
|
||||
const val TAG = "download"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user