Skip to content

Latest commit

 

History

History
97 lines (59 loc) · 4.53 KB

CHANGELOG.md

File metadata and controls

97 lines (59 loc) · 4.53 KB

Change log

中文迭代日志

Version 0.1.5

2016-01-17

New Interfaces

  • 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 add If-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 add If-Match & Range value if it works.
  • BaseDownloadTask#removeAllHeaders(name:String): Remove all custom request header bind with the {name}.

Enhancement

  • 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 WarnErrorAssert level of log in order to debugging in the case of the value of FileDownloadLog.NEED_LOG is false(default).

Fix

  • 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.

Others

  • Upgrade dependency okhttp from 2.7.1 to 3.0.1.

Version 0.1.4

2016-01-13

New Interfaces

  • FileDownloader#unBindServiceIfIdle(void): If there is no active task in the :filedownloader progress currently , then unbind & stop :filedownloader process
  • FileDownloader#getStatus(downloadId): Get download status by the downloadId(ps: Please refer to Tasks Manager demo
  • FileDownloader#isServiceConnected(void): Whether started and connected to the :filedownloader progress(ps: Please refer to Tasks Manager demo)

Enhancement

  • 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

  • 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 the filedownloader 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.

Version 0.1.3

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 to 2.7.1.

Version 0.1.2

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

Version 0.1.1

2015-12-25

  • Optimization of internal performance, according to the time split thread pool.
  • Add auto retry feature.

Version 0.1.0

2015-12-24

  • The FileDownloadStatus parameter type is changed from int to byte, which is frequently copied in IPC.
  • Optimization of multi task queue filtering time.
  • Optimizing serial task execution mechanism.

Version 0.0.9

2015-12-23

  • The start operation into independent thread processing, sharing thread pool in EventPool.

Version 0.0.8

2015-12-22

  • initial release