Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bb3697a

Browse files
committedSep 29, 2017
chore: upgrade version name(1.6.5->1.6.6) code(56->57)
1 parent 024b4bc commit bb3697a

File tree

5 files changed

+31
-5
lines changed

5 files changed

+31
-5
lines changed
 

‎CHANGELOG-ZH.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
> [ Change log in english](https://github.com/lingochamp/FileDownloader/blob/master/CHANGELOG.md)
44
5+
## Version 1.6.6
6+
7+
_2017-09-29_
8+
9+
#### 修复
10+
11+
- 修复(文件完整性): 只有在确保缓存已经完全固化到本地文件了才更新数据库的进度,防止在该次暂停时固化失败,然后数据库更新了进度,导致下一次断点续传的时候(使用预分配策略的情况下),本地已经下载的文件的进度与数据库记录的进度实际不一致,导致最后下载完成了文件不完整的问题。 Closes #745
12+
- 修复(清理): 修复调用`FileDownloader#clearAllTaskData`并没有清理连接表的问题。 Closes #754
13+
14+
#### 性能与提高
15+
16+
- 提高性能: 使用`BufferedOutputStream`来优化默认输出流,现在虚拟机内的缓存大小为8192字节。
17+
518
## Version 1.6.5
619

720
_2017-09-11_

‎CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
> [中文迭代日志](https://github.com/lingochamp/FileDownloader/blob/master/CHANGELOG-ZH.md)
44
5+
## Version 1.6.6
6+
7+
_2017-09-29_
8+
9+
#### Fix
10+
11+
- 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
12+
- Fix(clear): fix `FileDownloader#clearAllTaskData` not clear connection table. Closes #754
13+
14+
#### Enhancement
15+
16+
- Import Performance: optimize the default output-stream with buffered-output-stream, now the VM buffers length is 8192 bytes.
17+
518
## Version 1.6.5
619

720
_2017-09-11_

‎README-zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Android 文件下载引擎,稳定、高效、灵活、简单易用
6060
在项目中引用:
6161

6262
```groovy
63-
compile 'com.liulishuo.filedownloader:library:1.6.5'
63+
compile 'com.liulishuo.filedownloader:library:1.6.6'
6464
```
6565

6666
> 如果是eclipse引入jar包参考: [这里](https://github.com/lingochamp/FileDownloader/issues/212#issuecomment-232240415)
@@ -256,7 +256,7 @@ if (parallel) {
256256
| --- | --- | --- | --- | ---
257257
| database | FileDownloadDatabase | DefaultDatabaseImpl、NoDatabaseImpl | DefaultDatabaseImpl | 传入定制化数据库组件,用于存储用于断点续传的数据
258258
| connection | FileDownloadConnection | FileDownloadUrlConnection | FileDownloadUrlConnection | 传入定制化的网络连接组件,用于下载时建立网络连接
259-
| outputStreamCreator | FileDownloadOutputStream | FileDownloadRandomAccessFile、FileDownloadBufferedOutputStream、FileDownloadOkio | FileDownloadRandomAccessFile | 传入输出流组件,用于下载时写文件使用
259+
| outputStreamCreator | FileDownloadOutputStream | FileDownloadRandomAccessFile | FileDownloadRandomAccessFile | 传入输出流组件,用于下载时写文件使用
260260
| maxNetworkThreadCount | - | - | 3 | 传入创建下载引擎时,指定可用的下载线程个数
261261
| ConnectionCountAdapter | ConnectionCountAdapter | DefaultConnectionCountAdapter | DefaultConnectionCountAdapter | 根据任务指定其线程数
262262
| IdGenerator | IdGenerator | DefaultIdGenerator | DefaultIdGenerator | 自定义任务Id生成器

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ FileDownloader is installed by adding the following dependency to your `build.gr
2626

2727
```groovy
2828
dependencies {
29-
compile 'com.liulishuo.filedownloader:library:1.6.5'
29+
compile 'com.liulishuo.filedownloader:library:1.6.6'
3030
}
3131
```
3232

‎gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
VERSION_NAME=1.6.5
2-
VERSION_CODE=56
1+
VERSION_NAME=1.6.6
2+
VERSION_CODE=57
33
BUILD_TOOLS_VERSION=25.0.0
44
COMPILE_SDK_VERSION=25
55

0 commit comments

Comments
 (0)
Failed to load comments.