Releases: tonyofrancis/Fetch
Releases · tonyofrancis/Fetch
2.2.0-RC11
Version 2.2.0-RC11
- Fixed issue where downloads would get stuck in the queue and fetch would mark all downloads as failed.
- Behavior change: Fetch no longer mark downloads with a Failed status if the file on the disk storage system is not found.
If the file is not found and the download status is Queued or Paused, Fetch will simply start the download from the beginning.
2.2.0-RC10
Version 2.2.0-RC10
- Added new Fetch field named hasActiveDownloads. This field indicates if the fetch namespace has
active(downloading or queued) downloads. Use this field to keep background services using fetch
alive. This field is thread safe.
2.2.0-RC9
Version 2.2.0-RC9
- Fixed issue where different namespace Fetch instances shared the same logger object
- Breaking Change. Added new boolean param for add completed downloads method. Now:
fun addCompletedDownload(completedDownload, boolean, func, func2): Fetch
and
fun addCompletedDownloads(completedDownloadsList, boolean, func, func2): Fetch - Added documentation for Extras and MutableExtras classes.
2.2.0-RC8
Version 2.2.0-RC8
- Fixed issue where downloads will not start processing after calling autoStart.
- Fixed issue where the callbacks returned wrong download object.
- Fixed issue where the download callbacks where not called.
2.2.0-RC7
Version 2.2.0-RC7
- Many fixes and performance improvements to the Parallel ParallelDownloader.
Breaking changes Parallel Downloader: For a much needed performance and memory improvement changes has to be made
to the way the Parallel downloader stores download information. Partially
downloaded request from old versions of Fetch when moved to the new Parallel downloader will have to download from the start
using the new format but will continue to work as expected after the first run. - The created field for the Download and CompletedDownload objects are now in milliseconds.
Breaking changes Created Field. Previously those field stored the created time in a mix of nanoseconds and milliseconds.
You may need to do the conventions as necessary on downloads created with previous versions of Fetch. - Files deleted outside of Fetch for a completed download no longer caused the download status to change to failed.
- Enqueuing downloads improvements
- Download Progress reporting fixes.
- Enqueue list method now ensures that each request in the list is distinct by file. If not, an error is thrown
with the appropriate reason when the requests are being enqueued. - RxFetch improvements and bug fixes
- Added new Fetch and RxFetch method fun addListener(listener: FetchListener, notify: Boolean, autoStart)
You can now autoStart download processing after attaching a fetchListener. - Added new Fetch method fun getFetchConfiguration(). This method returns the configuration object that created the Fetch instance.
- Added new object Extras and MutableExtras that makes to easy to store and get custom key/value pairs with type support for a request/download.
Breaking Changes. The extras field on Request, CompletedDownload, FileResource has all been updated to use Extras object. Existing extras maps (Map<String, String) are migrated to
the new extras object automatically. - Added new Fetch and RxFetch method fun replaceExtras(id: Int, extras: Extras, func, func2) to replace the extras
on an existing request/download stored in the Fetch database. - Threads created by Fetch are now named. Improves debugging.
- FetchFileServer Delegate.Listener method names have been updated to better reflect their use.
- FetchFileServer uses Extras object instead of custom json string where possible.
- Bug fixes and performance improvements
- Logging improvements
2.2.0-RC6
Version 2.2.0-RC6
- Fixed multi enqueue issues.
2.2.0-RC5
Version 2.2.0-RC5
- EnqueueAction.REPLACE_EXISTING fixes
- Fixed bug where deleted download returns the wrong status
- fixed bug when fetching the catalog from a Fetch file server causes Json Exceptions
2.2.0-RC4
Version 2.2.0-RC4
- Fixed action methods throwing a collection empty exception.
- Big fixes and improvements.
2.2.0-RC3
Version 2.2.0-RC3
- Fixed Fetch.Impl.getDefaultInstance()
- Fixed RxFetch.Impl.getDefaultInstance()
2.2.0-RC2
Version 2.2.0-RC2
- Allow downloadConcurrentLimit to be set to 0. Effectively that instance of Fetch can perform all normal actions except downloading requests.
- Can now set download concurrent limit on Fetch instance at runtime using method fun setDownloadConcurrentLimit(downloadConcurrentLimit: Int): Fetch
- Errors Fetch throws now have an attached throwable: eg
error.getThrowable()
that you can retrieve the exception that caused the Error. Note throwable may be null. - Added new Parameters to FetchListener onStart method now: fun onStarted(download: Download, downloadBlocks: List, totalBlocks: Int)
- Added new Parameters to FetchListener onError method now: fun onError(download: Download, error: Error, throwable: Throwable?)
- Added new FetchListener method fun onWaitingNetwork(download: Download). This method is always called on a background thread.
- Download Manager bug and crash fixes
- Fixed GlobalNetworkType bug causing it to not work correctly