diff --git a/CHANGELOG-ZH.md b/CHANGELOG-ZH.md index 2036eaa8..376b1ecc 100644 --- a/CHANGELOG-ZH.md +++ b/CHANGELOG-ZH.md @@ -2,6 +2,14 @@ > [ Change log in english](https://github.com/lingochamp/FileDownloader/blob/master/CHANGELOG.md) +## Version 1.0.2 + +_2016-09-06_ + +#### 修复 + +- 修复: 服务还没有连接上时,启动的'队列任务'被放在等待队列,当服务连接上以后,FileDownloader尝试重启这些等待队列中的任务,但是抛了`IllegalStateException`的Bug。 Closes #307 . + ## Version 1.0.1 _2016-09-05_ @@ -10,11 +18,11 @@ _2016-09-05_ > 如果你之前有使用现在已经被申明弃用的方法`BaseDownloadTask#ready()`, 只需要简单的将它迁移为:`BaseDownloadTask#asInQueueTask():InQueueTask`并且调用`InQueueTask#enqueue()`。 -- 添加`BaseDownloadTask#asInQueueTask():InQueueTask`并申明弃用`BaseDownloadTask#ready()`: 申明当前任务是队列任务,并且可以通过`InQueueTask#enqueue()`将当前任务放入全局队列以便于启动队列任务的时候,能被队列收编执行。`InQueueTask#enqueue()`中的操作与`BaseDownloadTask#ready()`相同, 我们通过这个方式封装`ready()`是为了让你更加清晰的了解: 只有当前任务是队列任务,才需要调用该方法;如果当前任务不是队列任务,而却调用了这个方法,你将会收到一个异常(具体异常的原因可以移步到`DownloadTask#start`报的异常信息进行了解). +- 添加`BaseDownloadTask#asInQueueTask():InQueueTask`并申明弃用`BaseDownloadTask#ready()`: 申明当前任务是队列任务,并且可以通过`InQueueTask#enqueue()`将当前任务放入全局队列以便于启动队列任务的时候,能被队列收编执行。`InQueueTask#enqueue()`中的操作与`BaseDownloadTask#ready()`相同, 我们通过这个方式封装`ready()`是为了让你更加清晰的了解: 只有当前任务是队列任务,才需要调用该方法;如果当前任务不是队列任务,而却调用了这个方法,你将会收到一个异常(具体异常的原因可以移步到`DownloadTask#start`报的异常信息进行了解)。 #### 修复 -- 修复: 当有使用相同`listener`对象的多个孤立任务与队列任务在不同的线程中同时被启动时(后),有可能会遇到IllegalStateException异常的问题. Closes #282 . +- 修复: 当有使用相同`listener`对象的多个孤立任务与队列任务在不同的线程中同时被启动时(后),有可能会遇到IllegalStateException异常的问题。 Closes #282 . ## Version 1.0.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2269e1ed..fdbe76df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ > [中文迭代日志](https://github.com/lingochamp/FileDownloader/blob/master/CHANGELOG-ZH.md) +## Version 1.0.2 + +_2016-09-06_ + +#### Fix + +- Fix: When the service didn't connected and now it is connected and FileDownloader try to restart the 'queue-task's which in the waiting-service-connect list but occur an `IllegalStateException`. Closes #307 . + ## Version 1.0.1 _2016-09-05_ diff --git a/README-zh.md b/README-zh.md index d5f3faee..4730f912 100644 --- a/README-zh.md +++ b/README-zh.md @@ -63,7 +63,7 @@ Android 文件下载引擎,稳定、高效、简单易用 在项目中引用: ``` -compile 'com.liulishuo.filedownloader:library:1.0.1' +compile 'com.liulishuo.filedownloader:library:1.0.2' ``` > 如果是eclipse引入jar包参考: [这里](https://github.com/lingochamp/FileDownloader/issues/212#issuecomment-232240415) diff --git a/README.md b/README.md index 1376d39d..2087fc72 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.0.1' + compile 'com.liulishuo.filedownloader:library:1.0.2' } ``` diff --git a/gradle.properties b/gradle.properties index cff8d880..91cbc20b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ -VERSION_NAME=1.0.1 -VERSION_CODE=28 +VERSION_NAME=1.0.2 +VERSION_CODE=29 BUILD_TOOLS_VERSION=24.0.2 COMPILE_SDK_VERSION=24