FileDownloader v0.3.2 Release Notes
-
2016-06-12
๐ New Interfaces
- โ Add
BaseDownloadTask#setCallbackProgressMinInterval
: Set the minimum time interval between each callback of 'progress'. Closes #167. - โ Add
FileDownloader#setMaxNetworkThreadCount
: Change the number of simultaneous downloads(the number of the simultaneously running network threads) at the code side. Closes #168. - โ Add
FileDownloader#init(Context,OkHttpClientCustomMaker,int)
: Accept initializing the number of simultaneous downloads(the number of the simultaneously running network threads) with the FileDownloadService initializes. Closes #168.
โจ Enhancement
- ๐ Improve Robust: Ensure the minimum time interval between each callback of 'progress' is 5ms, To prevent internal callback of 'progress' too frequent happening. Closes #167.
- ๐ Improve Practicability: Print the 'warn' priority log when a request does something in the FileDownloadService but it isn't connected yet.
- ๐ Improve Performance: Using the
SparseArray
instead ofHashMap
for mapping allFileDownloadModel
.
๐ Fix
- ๐ Fix(crash): Fix provided wrong params in formatting character string when to starting download runnable occur the unexpected downloading status.
- ๐ Fix(force-re-download): Fix the wrong logic: In the case of
BaseDownloadTask#setForceReDownload(true)
and the task has already downloaded will trigger 'warn' callback. Closes #169 . - ๐ Fix(class-type): Keep the class type of
SocketTimeOutException
, and no longer care about whether the message of Throwable is empty, this is very redundant.
Others
- โฌ๏ธ Upgrade dependency okhttp from
3.2.0
to3.3.1
.
- โ Add