Skip to content

Releases: tonyofrancis/Fetch

2.2.0-RC1

22 Jul 16:42
Compare
Choose a tag to compare

Version 2.2.0-RC1
This version has so many fixes and improvements that I forgot half of them. Listing all I can remember and marked correctly in the commits.
Big thanks to @duncanokeyo on Github for continuously pointing out issues and improvements.

  • Fixed issue where DownloadConcurrent issue was not working.
  • Fixed issue where Sequential Downloader reported download progress in the wrong order.
  • Added new onStarted(download) method on FetchListener
  • Request class has a new field call extras of type Map<String, String>. Use this field to store additional data with a request.
  • Download interface has new field called extras of type Map<String, String> that returns the extras of a request.
  • Control a download's speed by overriding downloader method getRequestBufferSize(request): Int
  • To update information on a request. Call Fetch method updateRequest(requestId, updatedRequest, func, func2)
  • FetchListener method onDownloadBlockUpdated(download, downloadBlock, totalBlocks) is now called in a timely fashion
  • Added new Fetch method getContentLengthForRequest(request, fromServer, func, func2)that returns the content-length
    of a download. You can call this method before or after enqueuing a download. It works independently of other Fetch actions.
  • Added new Fetch method getFetchFileServerCatalog(request, func, func2). Use this method to get the full file resource catalog of a FetchFileServer.
  • Many Fetch action methods(pause, resume, retry, etc) now take two additional callback to are notified of the success and failure of an
    action. Read the Javadocs for more information on what data is returned to the callback methods.
  • RxFetch no longer extends Fetch interface. The allowed several fixes and improvements.
  • Downloader method getHeadRequestMethodSupported(request) now default to false unless you override
  • Downloader interface has several new methods and improvements.
  • Downloader method getRequestFileDownloaderType now take an additional parameter of type Set<Downloader.FileDownloaderType>
    that returns a set of supported FileDownloaderTypes for a request.
  • Sequential downloader has been improved
  • Parallel downloader has been improved.
  • Many fixes when more that one fetch instances share the same namespace.
  • Download status reporting fixes.
  • FetchFileServerDownloader class now moved into package com.tonyodev.fetch2
  • Fetch action methods(pause, resume, retry, etc) now return the proper error when the action fails. Use action methods with callback params.
  • HttpUrlConnectionDownloader, OkHttpDownloader, FetchFileServerDownloader improvements
  • General error reporting improvements.
  • FetchFileServer improvements
  • FileResource class updates
  • Removed FetchFileResourceDownloadTask class
  • General bug fixes and improvements

2.1.0-RC15

12 Jul 19:41
Compare
Choose a tag to compare

Version 2.1.0-RC15

  • Downloader improvements
  • Added new method fun getHeadRequestMethodSupported(request: ServerRequest): Boolean for downloader. True by default.

2.1.0-RC14

11 Jul 01:22
Compare
Choose a tag to compare

Version 2.1.0-RC14

  • Downloader improvements
  • Parcelable classes - Request, Download, CompletedDownload, DownloadBlock and FileRequest.
  • Fetch File Server improvements
  • Fetch File Server Task class improvements
  • bug fixes

2.1.0-RC13

01 Jul 13:50
Compare
Choose a tag to compare

Version 2.1.0-RC13

  • Added new Fetch method getDownloadBlocks(downloadId: Int, func: Func<List>): Fetch
  • Parallel downloader bug fixes
  • Downloader improvements

2.1.0-RC12

30 Jun 23:19
Compare
Choose a tag to compare

Version 2.1.0-RC12

  • Added new Status. Status.Added
  • Added new FetchListener method onAdded(download)
  • Added new FetchListener method onDownloadBlockUpdated(download: Download, downloadBlock: DownloadBlock, totalBlocks: Int)
  • Bug Fixes

2.1.0-RC11

30 Jun 13:52
Compare
Choose a tag to compare

Version 2.1.0-RC11

  • Fixed Database Migration issue that caused crash.
  • Added new field downloadOnEnqueue on Request and Download class.
    Use: Action used by Fetch when enqueuing a request to determine if to place the new request in
    the downloading queue immediately after enqueue to be processed with its turn arrives.
    The default value is true. If true, the download will have a status of Status.QUEUED.
    If false, the download will have a status of Status.NONE.

2.1.0-RC10

29 Jun 14:32
Compare
Choose a tag to compare

Version 2.1.0-RC10

  • Updated Fetch.updateRequest method.

2.1.0-RC9

26 Jun 11:53
Compare
Choose a tag to compare

Version 2.1.0-RC9

  • Renamed enqueue option EnqueueAction.THROW_ERROR_IF_EXISTING to EnqueueAction.DO_NOT_ENQUEUE_IF_EXISTING
    to better reflect the action intention.

2.1.0-RC8

26 Jun 11:38
Compare
Choose a tag to compare

Version 2.1.0-RC8

  • Added new Enqueue Action option: EnqueueAction.THROW_ERROR_IF_EXISTING. See java docs for details.
  • Added Error option : Error.REQUEST_WITH_FILE_PATH_ALREADY_EXIST

2.1.0-RC7

20 Jun 15:29
Compare
Choose a tag to compare

Version 2.1.0-RC7

  • Added new Fetch methods addCompletedDownload(completedDownload, callback, callback) and addCompletedDownloads(completedDownloadsList, callback, callback).
    These methods allows you to add a completed download to Fetch for management. Associated methods were also added for RxFetch.