2016-01-17
BaseDownloadTask#setTag(key:int, tag:Object)
: Set a tag associated with this task. If the key already existed, the old tag will be replaced.BaseDownloadTask#getTag(key:int)
: Get the object stored in the task as a tag, or null if not set.BaseDownloadTask#addHeader(name:String, values:String)
: Add custom request header to the task. Attention: We have already handled ETag, and will addIf-Match
&Range
value if it works.BaseDownloadTask#addHeader(line:String)
: Add custom request header to the task. Attention: We have already handled ETag, and will addIf-Match
&Range
value if it works.BaseDownloadTask#removeAllHeaders(name:String)
: Remove all custom request header bind with the{name}
.
- Improve Performance: Reduce the consumption of the generated log.
- Improve Debugging: To filter all the log level, reduce the high level of log output, and by default, will output
Warn
、Error
、Assert
level of log in order to debugging in the case of the value ofFileDownloadLog.NEED_LOG
is false(default).
- Fix can't resume from the break point naturally in case of the download status of the task is Error.
- Fix the size of the queue may not match the number of actual active tasks in case of high concurrency. This bug may would caused some callbacks to be consumed by the old tasks.
- Upgrade dependency okhttp from
2.7.1
to3.0.1
.
2016-01-13
FileDownloader#unBindServiceIfIdle(void)
: If there is no active task in the:filedownloader
progress currently , then unbind & stop:filedownloader
processFileDownloader#getStatus(downloadId)
: Get download status by the downloadId(ps: Please refer to Tasks Manager demoFileDownloader#isServiceConnected(void)
: Whether started and connected to the:filedownloader
progress(ps: Please refer to Tasks Manager demo)
- Supported Chunked transfer encoding data download(Recommend to glance at demo on Single Task Test).
- Improve Performance: Reduce IPC.
- Improve Performance: Reduce lock.
- Improve Performance: Delete invalid datum in db with the
:filedownloader
progress start. - Improve Performance: Ignore the
callbackProgressTimes
column in db.
- Fix
FileDownloader#pauseAll
not effect in case of low memory and ui progress is Background Progress situation and the:filedownloader
progress(Service Progress) alive and still have running tasks in thefiledownloader
progress but ui progress has died and relived. - Fix not release connect resources when invoke
FileDownloader#unBinderService
manually. - Handle case of ui progress be killed by sys and download progress not be killed, and ui progress relives and re-executes same tasks queue.
2016-01-04
- Enhancement: no longer subject to the upper bound of 1.99G, add
FileDownloadLargeFileListener
,getLargeFileSoFarBytes()
,getLargeFileTotalBytes()
. - Performance optimization: some ipc transaction just need one-way call(async), not block(sync).
- Upgrade dependency okhttp from
2.7.0
to2.7.1
.
2015-12-27
- Optimize thread digestion(map.
- Fix: may
pause()
invalid in large queue task. - Fix: large queue task parallel download, may download has been completed but the callback
2015-12-25
- Optimization of internal performance, according to the time split thread pool.
- Add auto retry feature.
2015-12-24
- The
FileDownloadStatus
parameter type is changed fromint
tobyte
, which is frequently copied in IPC. - Optimization of multi task queue filtering time.
- Optimizing serial task execution mechanism.
2015-12-23
- The start operation into independent thread processing, sharing thread pool in EventPool.
2015-12-22
- initial release