Skip to content

Commit

Permalink
chore: upgrade version name(1.6.5->1.6.6) code(56->57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksgong committed Sep 29, 2017
1 parent 024b4bc commit bb3697a
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 5 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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

_2017-09-29_

#### 修复

- 修复(文件完整性): 只有在确保缓存已经完全固化到本地文件了才更新数据库的进度,防止在该次暂停时固化失败,然后数据库更新了进度,导致下一次断点续传的时候(使用预分配策略的情况下),本地已经下载的文件的进度与数据库记录的进度实际不一致,导致最后下载完成了文件不完整的问题。 Closes #745
- 修复(清理): 修复调用`FileDownloader#clearAllTaskData`并没有清理连接表的问题。 Closes #754

#### 性能与提高

- 提高性能: 使用`BufferedOutputStream`来优化默认输出流,现在虚拟机内的缓存大小为8192字节。

## Version 1.6.5

_2017-09-11_
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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

_2017-09-29_

#### Fix

- Fix(file-integrality): update the process to database only if all buffers on output-stream or system has been flush and sync to device successfully to avoid resume on the wrong point raise complete file not integrality. Closes #745
- Fix(clear): fix `FileDownloader#clearAllTaskData` not clear connection table. Closes #754

#### Enhancement

- Import Performance: optimize the default output-stream with buffered-output-stream, now the VM buffers length is 8192 bytes.

## Version 1.6.5

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

```groovy
compile 'com.liulishuo.filedownloader:library:1.6.5'
compile 'com.liulishuo.filedownloader:library:1.6.6'
```

> 如果是eclipse引入jar包参考: [这里](https://github.com/lingochamp/FileDownloader/issues/212#issuecomment-232240415)
Expand Down Expand Up @@ -256,7 +256,7 @@ if (parallel) {
| --- | --- | --- | --- | ---
| database | FileDownloadDatabase | DefaultDatabaseImpl、NoDatabaseImpl | DefaultDatabaseImpl | 传入定制化数据库组件,用于存储用于断点续传的数据
| connection | FileDownloadConnection | FileDownloadUrlConnection | FileDownloadUrlConnection | 传入定制化的网络连接组件,用于下载时建立网络连接
| outputStreamCreator | FileDownloadOutputStream | FileDownloadRandomAccessFile、FileDownloadBufferedOutputStream、FileDownloadOkio | FileDownloadRandomAccessFile | 传入输出流组件,用于下载时写文件使用
| outputStreamCreator | FileDownloadOutputStream | FileDownloadRandomAccessFile | FileDownloadRandomAccessFile | 传入输出流组件,用于下载时写文件使用
| maxNetworkThreadCount | - | - | 3 | 传入创建下载引擎时,指定可用的下载线程个数
| ConnectionCountAdapter | ConnectionCountAdapter | DefaultConnectionCountAdapter | DefaultConnectionCountAdapter | 根据任务指定其线程数
| IdGenerator | IdGenerator | DefaultIdGenerator | DefaultIdGenerator | 自定义任务Id生成器
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ FileDownloader is installed by adding the following dependency to your `build.gr

```groovy
dependencies {
compile 'com.liulishuo.filedownloader:library:1.6.5'
compile 'com.liulishuo.filedownloader:library:1.6.6'
}
```

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.6.5
VERSION_CODE=56
VERSION_NAME=1.6.6
VERSION_CODE=57
BUILD_TOOLS_VERSION=25.0.0
COMPILE_SDK_VERSION=25

Expand Down

0 comments on commit bb3697a

Please sign in to comment.