Changelog History
Page 2
-
v3.0.9 Changes
June 24, 2019๐ Version 3.0.9/ Androidx version 3.1.3
- Improvements to getting content length.
-
v3.0.8
June 23, 2019 -
v3.0.7 Changes
May 21, 2019๐ Version 3.0.7/ Android x version 3.1.1
โ Added new pauseAll method on Fetch.
โ Added new resumeAll method on Fetch.
๐ Better logging.
Library code cleanup.
๐ Special thanks to Alex Starchenko for submitting the fixes and improvements -
v3.0.6 Changes
April 26, 2019๐ Version identical to the androidx version 3.1.0
-
v3.0.5 Changes
April 26, 2019๐ Version 3.0.5
๐ This release only adds a new Feature that allows Fetch to auto retry failed downloads for any reason. Set the number of times Fetch will auto retry a download when it fails.
0๏ธโฃ This feature if off by default.๐ 1. New fields added on Download: autoRetryMaxAttempts and autoRetryAttempts. See Java docs. ๐ 2. New field added on RequestInfo: autoRetryMaxAttempts. See Java docs.
- New method added on Fetch: fun resetAutoRetryAttempts(downloadId: Int, retryDownload: Boolean = true, func: Func2<Download?>? = null, func2: Func? = null): Fetch
New method added on RXFetch: fun resetAutoRetryAttempts(downloadId: Int, retryDownload: Boolean = true): Convertible<Download?> ๐ 5. New method added on FetchConfiguration: fun setAutoRetryMaxAttempts(autoRetryMaxAttempts: Int): Builder. See Java Docs
final FetchConfiguration fetchConfiguration = new FetchConfiguration.Builder(this) .enableRetryOnNetworkGain(true) .setDownloadConcurrentLimit(2) .setAutoRetryMaxAttempts(10) // set global auto retry max attempts for all downloads. .build(); final Fetch fetch = Fetch.Impl.getInstance(fetchConfiguration); //ORfinal String url = "dummy url"; final String file = "dummy file"; final Request request = new Request(url, file); request.setAutoRetryMaxAttempts(5); // set auto retry on individual downloads. fetch.getDownload(request.getId(), download -> { if (download != null) { download.getAutoRetryAttempts(); //get the number of auto retry attempts. download.getAutoRetryMaxAttempts(); //get the number of max attempts. } }); //reset the auto retry attempts for a download fetch.resetAutoRetryAttempts(request.getId(), true, null, null);
-
v3.0.4 Changes
April 22, 2019๐ Version 3.0.4
๐ 1. updated documentation ๐ 2. remove has activeDownloads(): Boolean method. Use fun hasActiveDownloads(includeAddedDownloads: Boolean, func: Func): Fetch or fun addActiveDownloadsObserver(includeAddedDownloads: Boolean = false, fetchObserver: FetchObserver): Fetch instead. ๐ 3. Added new methods on Fetch addActiveDownloadsObserver(includeAddedDownloads: Boolean = false, fetchObserver: FetchObserver): Fetch and removeActiveDownloadsObserver(fetchObserver: FetchObserver): Fetch ๐ 4. Added new method on FetchConfiguration fun setHasActiveDownloadsCheckInterval(intervalInMillis: Long): Builder
- Added new REPORTING option on Reason enum ๐ 6. Added new method on FetchConfiguration fun createDownloadFileOnEnqueue(create: Boolean): Builder
- Fix for starting download immediately whiles enqueuing