From 2c2700e0db1a5cdc03ad887d2f72a0fc00e609d8 Mon Sep 17 00:00:00 2001 From: Jacksgong Date: Mon, 4 Jan 2016 18:31:42 +0800 Subject: [PATCH] upgrade version code(5->6) name(0.1.2 -> 0.1.3) --- CHANGELOG-ZH.md | 32 ++++++++++++++++++++++++++++++++ CHANGELOG.md | 26 +++++++++++++++++--------- README-zh.md | 4 ++-- README.md | 4 ++-- gradle.properties | 4 ++-- 5 files changed, 55 insertions(+), 15 deletions(-) create mode 100644 CHANGELOG-ZH.md diff --git a/CHANGELOG-ZH.md b/CHANGELOG-ZH.md new file mode 100644 index 00000000..f95914a9 --- /dev/null +++ b/CHANGELOG-ZH.md @@ -0,0 +1,32 @@ +# Change log + +### Version 0.1.3 + +- 不再受到1.99G限制;如果是大于1.99G的文件,请使用`FileDownloadLargeFileListener`作为监听器,使用对应的`getLargeFileSoFarBytes()`与`getLargeFileTotalBytes()`接口 +- 性能优化: 部分接口跨进程通信不受binder thread 阻塞。 +- 依赖okhttp,从2.7.0 升到2.7.1 + +### Version 0.1.2 + +- 优化线程消化能力 +- 修复大队列任务暂停可能部分无效的问题 +- 修复大队列并行下载时一定概率下载已经完成回调囤积延后回调的问题 + +### Version 0.1.1 + +- event线程区分敏捷线程池与其他线程池,减少资源冗余强制、内部稳定性以及消化能力与性能, +- 添加自动重试接口,新增用户指定如果失败自动重试的次数 + +### Version 0.1.0 + +- FileDownloadStatus 由`int`改为`byte`,该参数会频繁的在IPC时被拷贝 +- 优化串行or并行任务时,筛选task在准备数据时就筛选好,减少冗余操作,更加安全 +- 优化串行任务执行保证使用更可靠的方式 + +### Version 0.0.9 + +- 将调用start(启动任务)抛独立线程处理,其中的线程是通过共享非下载进程EventPool中的线程池(可并行8个线程) + +### Version 0.0.8 + +- initial release \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 91238975..d883b293 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,25 +1,33 @@ # Change log +> [中文迭代日志](https://github.com/lingochamp/FileDownloader/blob/master/CHANGELOG-ZH.md) + +### Version 0.1.3 + +- 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 -- 优化线程消化能力 -- 修复大队列任务暂停可能部分无效的问题 -- 修复大队列并行下载时一定概率下载已经完成回调囤积延后回调的问题 +- Optimize thread digestion([map](https://github.com/lingochamp/FileDownloader/raw/master/art/filedownload_sample_description.png). +- 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 -- event线程区分敏捷线程池与其他线程池,减少资源冗余强制、内部稳定性以及消化能力与性能, -- 添加自动重试接口,新增用户指定如果失败自动重试的次数 +- Optimization of internal performance, according to the time split thread pool. +- Add auto retry feature. ### Version 0.1.0 -- FileDownloadStatus 由`int`改为`byte`,该参数会频繁的在IPC时被拷贝 -- 优化串行or并行任务时,筛选task在准备数据时就筛选好,减少冗余操作,更加安全 -- 优化串行任务执行保证使用更可靠的方式 +- 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 -- 将调用start(启动任务)抛独立线程处理,其中的线程是通过共享非下载进程EventPool中的线程池(可并行8个线程) +- The start operation into independent thread processing, sharing thread pool in EventPool. ### Version 0.0.8 diff --git a/README-zh.md b/README-zh.md index 30359efa..5be85f6d 100644 --- a/README-zh.md +++ b/README-zh.md @@ -22,7 +22,7 @@ Android 文件下载引擎,稳定、高效、简单易用 #### 需要注意 -- 为了绝大多数使用性能考虑,目前下载引擎目前受限于int可表示的范围,而我们的回调`total`与`so far`以byte为单位回调,因此最大只能表示到`2^31-1`=2_147_483_647 = 1.99GB(ps: 如果有更大的文件下载需求,提issue,我们会进行一些巧妙的优化,利用负值区间?根据大小走特殊通道传输?) +- 当下载的文件大小可能大于1.99GB(2^31-1`=2_147_483_647 = 1.99GB`)的时候, 请使用`FileDownloadLargeFileListener`而不是`FileDownloadListener`(同理使用`getLargeFileSofarBytes()`与`getLargeFileTotalBytes()`) - 暂停: paused, 恢复: 直接调用start,默认就是断点续传 #### 使用okHttp并使用其中的一些默认属性 @@ -43,7 +43,7 @@ Android 文件下载引擎,稳定、高效、简单易用 在项目中引用: ``` -compile 'com.liulishuo.filedownloader:library:0.1.2' +compile 'com.liulishuo.filedownloader:library:0.1.3' ``` #### 全局初始化在`Application.onCreate`中 diff --git a/README.md b/README.md index 5a7e8b2b..74e49ec1 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ FileDownloader is installed by adding the following dependency to your build.gra ``` dependencies { - compile 'com.liulishuo.filedownloader:library:0.1.2' + compile 'com.liulishuo.filedownloader:library:0.1.3' } ``` @@ -246,7 +246,7 @@ blockComplete -> completed ## Attention -- For the vast majority of the use of performance considerations, limited to the range of int, FileDownloader engine maximum support for the download file size does not exceed 1.99G(`2^31-1=2_147_483_647`) +- Using `FileDownloadLargeFileListener` instance instead of `FileDownloadListener`, when file size maybe greater than 1.99G(`2^31-1=2_147_483_647`)(The same use: `getLargeFileSoFarBytes()` and `getLargeFileTotalBytes()`). - Default by okhttp: retryOnConnectionFailure: Unreachable IP addresses/Stale pooled connections/Unreachable proxy servers - Default by okhttp: connection/read/write time out 10s diff --git a/gradle.properties b/gradle.properties index 2a04b036..001d7d5e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ -VERSION_NAME=0.1.2 -VERSION_CODE=5 +VERSION_NAME=0.1.3 +VERSION_CODE=6 BUILD_TOOLS_VERSION=23.0.1 COMPILE_SDK_VERSION=23