Skip to content

Commit

Permalink
chore(upgrade): upgrade version name(1.4.1->1.4.2) code(38->39)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksgong committed Mar 14, 2017
1 parent 1bd6bfc commit be5c8b3
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 5 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,23 @@

> [ Change log in english](https://github.com/lingochamp/FileDownloader/blob/master/CHANGELOG.md)
## Version 1.4.2

_2017-03-15_

#### 修复

- 修复(Same File Path): 避免多个问题同时对相同的文件写入,一旦存在另外一个正在运行中的任务与当前任务的文件存储路径一致,当前任务将会收到`PathConflictException`来拒绝启动。 Closes #471

#### New Interfaces

- 新增 `FileDownloadSerialQueue#getWaitingTaskCount`: 获取动态串行队列中正在等待启动的任务个数。Refs #345

## Version 1.4.1

_2017-02-03_

#### Fix
#### 修复

- 修复(高并发): 修复由于Messenger在已经收到结束的信息将Task对象赋值为Null以后依然收到其他消息,导致NPE的问题。 Closes #462
- 修复(`FileDownloadHttpException`): 修复由于在建立连接后无法取到请求头以至于遇到`FileDownloadHttpException`时发生`IllegalStateException`的问题。 Closes #458
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

> [中文迭代日志](https://github.com/lingochamp/FileDownloader/blob/master/CHANGELOG-ZH.md)
## Version 1.4.2

_2017-03-15_

#### Fix

- Fix(Same File Path): Avoid two tasks writing to the same file simultaneously, Once there is an another running task with the same target path to the current task's, the current task will receive the `PathConflictException` to refused start downloading. Closes #471

#### New Interfaces

- Add `FileDownloadSerialQueue#getWaitingTaskCount`: Get the count of tasks which is waiting on the serial-queue instance. Refs #345

## Version 1.4.1

_2017-02-03_
Expand Down
4 changes: 3 additions & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Android 文件下载引擎,稳定、高效、灵活、简单易用
在项目中引用:

```groovy
compile 'com.liulishuo.filedownloader:library:1.4.1'
compile 'com.liulishuo.filedownloader:library:1.4.2'
```

> 如果是eclipse引入jar包参考: [这里](https://github.com/lingochamp/FileDownloader/issues/212#issuecomment-232240415)
Expand Down Expand Up @@ -425,6 +425,8 @@ III. 异常处理
| `FileDownloadGiveUpRetryException` | 在请求返回的 response-header 中没有带有文件大小(content-length),并且不是流媒体(transfer-encoding)的情况下会抛出该异常;出现这个异常,将会忽略所有重试的机会(`BaseDownloadTask#setAutoRetryTimes`). 你可以通过在 `filedownloader.properties`中添加 `http.lenient=true` 来忽略这个异常,并且在该情况下,直接作为流媒体进行下载。
| `FileDownloadOutOfSpaceException` | 当将要下载的文件大小大于剩余磁盘大小时,会抛出这个异常。
| 其他 | 程序错误。
| `FileDownloadNetworkPolicyException` | 设置了`BaseDownloadTask#setWifiRequired(true)`,在下载过程中,一旦发现网络情况转为非Wifi环境,便会抛回这个异常
| `PathConflictException` | 当有一个正在下载的任务,它的存储路径与当前任务的存储路径完全一致,为了避免多个任务对同一个文件进行写入,当前任务便会抛回这个异常



Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FileDownloader is installed by adding the following dependency to your `build.gr

```groovy
dependencies {
compile 'com.liulishuo.filedownloader:library:1.4.1'
compile 'com.liulishuo.filedownloader:library:1.4.2'
}
```

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.4.1
VERSION_CODE=38
VERSION_NAME=1.4.2
VERSION_CODE=39
BUILD_TOOLS_VERSION=25.0.0
COMPILE_SDK_VERSION=25

Expand Down

0 comments on commit be5c8b3

Please sign in to comment.