diff --git a/CHANGELOG-ZH.md b/CHANGELOG-ZH.md index c6e37195..0eeac775 100644 --- a/CHANGELOG-ZH.md +++ b/CHANGELOG-ZH.md @@ -2,6 +2,24 @@ > [ Change log in english](https://github.com/lingochamp/FileDownloader/blob/master/CHANGELOG.md) +## Version 1.5.6 + +_2017-06-18_ + +#### 修复 + +- 修复(crash): 修复当调用`findRunningTaskIdBySameTempPath`的同时请求了暂停可能导致NPE奔溃的问题。 Closes #613 +- 修复(crash): 修复返回状态是`206`并且它的ETAG发生变化时导致`IllegalArgumentException`错误奔溃的问题。 Closes #612 +- 修复(crash): 修复当用户请求下载需要Wifi并当前不是Wifi环境时,出现`FileDownloadNetworkPolicyException`未处理导致奔溃的问题。 感谢 @tao +- 修复(crash): 修复当用户直接从`v1.4.3`升级到`v1.5.2`并且在一些其他综合因素下(具体可以参见 #610 ) 初始化数据库时出现`IllegalStateException`错误奔溃的问题。Closes #610 +- 修复(crash): 修复当回调流已经结束当时与此同时刚好出现错误或下载完成或暂停,小概率会出现`IllegalStateException`奔溃的问题。 +- 修复(no-response): 修复在接收到`connected`回调之后,多线程下载建立连接,此时在检验连接与数据获取连接期间服务端数据发生错误或变更导致启动下载后没有响应的问题。 + +#### 性能与提高 + +- 提高实用性: 当父级目录创建失败时直接回调`error`。 Closes #542 +- 提高实用性: 处理了返回状态是`416`的情况。 Refs #612 + ## Version 1.5.5 _2017-06-12_ diff --git a/CHANGELOG.md b/CHANGELOG.md index fcee5242..bf2ed659 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,24 @@ > [中文迭代日志](https://github.com/lingochamp/FileDownloader/blob/master/CHANGELOG-ZH.md) +## Version 1.5.6 + +_2017-06-18_ + +#### Fix + +- Fix(crash): fix raise NPE crash when require paused a task and invoking `findRunningTaskIdBySameTempPath` at the same time. Closes #613 +- Fix(crash): fix raise `IllegalArgumentException` when response code is 206 and its ETAG is changed. Closes #612 +- Fix(crash): fix raise `FileDownloadNetworkPolicyException` unhandled exception, when user enable wifi-required but no wifi-state. Thanks @tao +- Fix(crash): fix raise `IllegalStateException` when user upgrades from `v1.4.3` or older version to `v1.5.2` or newer version directly and some more conditions, more detail please move to #610 +- Fix(crash): fix some small probability case raise `IllegalStateException` when callback-flow has been final but occurring completed/error at the same time. +- Fix(no-response): fix no-response after start download and receive connected callback because the resource state has been changed during the connection of verification and connections of fetch data. + +#### Enhancement + +- Improve Practicability: callback `error` directly when create the parent directory failed. Closes #542 +- Improve Practicability: handle the case of response code is `416`. Closes #612 + ## Version 1.5.5 _2017-06-12_ diff --git a/README-zh.md b/README-zh.md index 1c430f8e..cb6decee 100644 --- a/README-zh.md +++ b/README-zh.md @@ -60,7 +60,7 @@ Android 文件下载引擎,稳定、高效、灵活、简单易用 在项目中引用: ```groovy -compile 'com.liulishuo.filedownloader:library:1.5.5' +compile 'com.liulishuo.filedownloader:library:1.5.6' ``` > 如果是eclipse引入jar包参考: [这里](https://github.com/lingochamp/FileDownloader/issues/212#issuecomment-232240415) diff --git a/README.md b/README.md index 81217c96..1f21cd8d 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ FileDownloader is installed by adding the following dependency to your `build.gr ```groovy dependencies { - compile 'com.liulishuo.filedownloader:library:1.5.5' + compile 'com.liulishuo.filedownloader:library:1.5.6' } ``` diff --git a/gradle.properties b/gradle.properties index ef1aaafe..de328a8f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ -VERSION_NAME=1.5.5 -VERSION_CODE=46 +VERSION_NAME=1.5.6 +VERSION_CODE=47 BUILD_TOOLS_VERSION=25.0.0 COMPILE_SDK_VERSION=25