fix(deps): update dependency background_downloader to v9 #16536
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^8.5.5->^9.0.09.1.0Release Notes
781flyingdutchman/background_downloader (background_downloader)
v9.0.0uriproperty, andUriDownloadTaskandUriUploadTask. See Working with URIs.asAndroidUri- use the new methods on theuriproperty insteadenqueueAllto enqueue a list of tasks (non-blocking and with better performance when compared to callingenqueuefor each task)beforeTaskStartCallbacktoTaskOptions, that is called just before the task starts executing. If it returns a non-nullTaskStatusUpdatethen this forces the task to finish before it starts, with thatTaskStatusUpdatecancelednotification (instead of cancellation defaulting to theerrornotification)requestwhen usingPUTorPATCHrequestsUri operations
Uri operations abstract away platform differences, including content provider on Android (used for the Storage Access Framework), and file, photo and directory pickers on iOS and Android. This enables largely platform-independent code for file operations, and on Android downloads directly to destination, bypassing the temp file in internal storage.
The
FileDownloader().uriproperty provides access to a set of utility functions for working with URIs, including:pickDirectory(): Opens a directory picker dialog and returns the selected directory's URI.pickFile(): Opens a file picker dialog and returns the selected file's URI.pickFiles(): Opens a file picker dialog and allows selection of multiple files, returning their URIs in a list.createDirectory(): Creates a new directory within a specified parent directory URI.getFileBytes(): Retrieves the file data (bytes) for a given URI.copyFile(): copies a file from a source uri to a destination. Destination can be aUri, aFileor aStringcontaining a file pathmoveFile(): moves a file from a source uri to a destination. Destination can be aUri, aFileor aStringcontaining a file path. If the move fails, it is possible that the file was copied but the source was not deleteddeleteFile(): Deletes the file at the given URI.openFile(): Opens the file at a given URI.moveToSharedStorage(): Moves a file to a shared storage location.activate(): Activates a previously accessed directory or file. Only relevant if you usepersistedUriPermissionor use the photo/video picker.The
pick...methods andcreateDirectorytake an optionalpersistedUriPermissionargument (defaults tofalse) that whentrueregisters the picked directory with the OS, allowing access in a later session.New/modified
Tasktypes:UriDownloadTask: Downloads a file to a specified directory URI. On Android, this bypasses the temp file used in the traditional approach and downloads directly to the destination.UriUploadTask: Uploads a file from a given file URI. If thefilenameis omitted, it will be based on the task's URL.MultiUploadTask: now accepts Uri where previously only filename or file path was allowedConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.