durable_queue_transfer 1.0.1
durable_queue_transfer: ^1.0.1 copied to clipboard
Uploads and downloads for durable_queue that keep going after the app is minimised or closed, run by background_downloader, with the queue's retries and dependencies.
1.0.1 #
- Requires
durable_queue1.1.0 or later. No other changes.
1.0.0 #
- First stable release, for
durable_queue1.0. No API changes from 0.2.1; breaking changes now wait for 2.0.
0.2.1 #
- Transfer progress reaches the queue (
DurableQueue.progressOf,DurableQueue.progress).startasks background_downloader for progress updates unless the transfer asked for none.QueueTransfers(reportProgress: false)turns this off. disposeremoves every callback of the transfers' group.- Requires
durable_queue0.5.12 or later.
0.2.0 #
- Pause and resume transfers with
DurableQueue.holdandrelease. Downloads created withallowPause: trueare paused by background_downloader and continue where they stopped. Other transfers are cancelled and start again from the beginning once released, without counting the interrupted attempt.reconcileapplies holds the app did not get to. - A transfer restarted after a hold gets a new id
(
dq-<attempt>.<n>-<queue task id>), so late updates of the stopped transfer are not applied to the new one. - Requires
durable_queue0.5.9 or later.
0.1.2 #
Documentation only; no code changes.
- pubspec: a screenshot for pub.dev.
0.1.1 #
Documentation only; no code changes.
- README: a demo GIF and links to demo videos on a real iPhone and Android phone.
0.1.0 #
- Initial release.
QueueTransfers: a handler starts an upload or download withtransfers.start(context, task)and returns; background_downloader runs it while the app is in the background or closed, and the queue task waits for the result (handed off, needsdurable_queue0.5.4).- Results become queue outcomes: success completes the task (after an
optional
onCompletewith the response), failure fails it so the task type's retry rules apply, and a cancelled transfer cancels it. Cancelling the queue task cancels the transfer. attach()applies results that arrived while the app was closed, reschedules transfers killed with the app, and fails hand-offs whose transfer is lost (TransferLostException), so they retry.isRetryableTransferError: aretryIfrule for transfers.TransferException,TransferLostException,TransferEnqueueException.- Requires
durable_queue0.5.4 or later,background_downloader9.6.4 or later, and Flutter 3.47 or later.
