Skip to content

Commit 317e157

Browse files
V9.3.0 Android Concurrency change
Main change is in Android concurrency, triggered by the [Great Thread Merge](flutter/flutter#150525) that causes UI blocking issues for recent versions of Flutter. The concurrency approach has been changed, but note this can cause minor changes in - for example - the sequence in which certain events happen. * Feature improvements - Add pause and resume functionality to TaskQueue using `pauseAll` and `resumeAll`. These methods are now called when pausing or resuming all tasks using the `FileDownloader` * Bug fixes - Fix issue with MultiUploadTask when uploading only one file - UriUtils subclasses are now private, as they should have been to start with - Address Dart analyzer recommendations
1 parent de10343 commit 317e157

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 9.3.0
2+
3+
Main change is in Android concurrency, triggered by the [Great Thread Merge](https://github.com/flutter/flutter/issues/150525) that causes UI blocking issues for recent versions of Flutter. The concurrency approach has been changed, but note this can cause minor changes in - for example - the sequence in which certain events happen.
4+
5+
* Feature improvements
6+
- Add pause and resume functionality to TaskQueue using `pauseAll` and `resumeAll`. These methods are now called when pausing or resuming all tasks using the `FileDownloader`
7+
8+
* Bug fixes
9+
- Fix issue with MultiUploadTask when uploading only one file
10+
- UriUtils subclasses are now private, as they should have been to start with
11+
- Address Dart analyzer recommendations
12+
113
## 9.2.6
214

315
* Bug fix

example/integration_test/general_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3117,8 +3117,8 @@ void main() {
31173117
final task2 = DownloadTask(url: urlWithLongContentLength);
31183118
tq.add(task1);
31193119
tq.add(task2);
3120-
await Future.delayed(const Duration(
3121-
milliseconds: 500)); // allow first task to start
3120+
await Future.delayed(
3121+
const Duration(milliseconds: 500)); // allow first task to start
31223122
await FileDownloader().pauseAll();
31233123
await Future.delayed(const Duration(
31243124
seconds: 2)); // allow for second task to start if not paused

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: background_downloader
22
description: A multi-platform background file downloader and uploader. Define the task, enqueue and monitor progress
33

4-
version: 9.2.6
4+
version: 9.3.0
55
repository: https://github.com/781flyingdutchman/background_downloader
66

77
environment:

0 commit comments

Comments
 (0)