Expand file tree Collapse file tree 5 files changed +31
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
> [ Change log in english] ( https://github.com/lingochamp/FileDownloader/blob/master/CHANGELOG.md )
4
4
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
+
5
18
## Version 1.6.5
6
19
7
20
_ 2017-09-11_
Original file line number Diff line number Diff line change 2
2
3
3
> [ 中文迭代日志] ( https://github.com/lingochamp/FileDownloader/blob/master/CHANGELOG-ZH.md )
4
4
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
+
5
18
## Version 1.6.5
6
19
7
20
_ 2017-09-11_
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ Android 文件下载引擎,稳定、高效、灵活、简单易用
60
60
在项目中引用:
61
61
62
62
``` groovy
63
- compile 'com.liulishuo.filedownloader:library:1.6.5 '
63
+ compile 'com.liulishuo.filedownloader:library:1.6.6 '
64
64
```
65
65
66
66
> 如果是eclipse引入jar包参考: [ 这里] ( https://github.com/lingochamp/FileDownloader/issues/212#issuecomment-232240415 )
@@ -256,7 +256,7 @@ if (parallel) {
256
256
| --- | --- | --- | --- | ---
257
257
| database | FileDownloadDatabase | DefaultDatabaseImpl、NoDatabaseImpl | DefaultDatabaseImpl | 传入定制化数据库组件,用于存储用于断点续传的数据
258
258
| connection | FileDownloadConnection | FileDownloadUrlConnection | FileDownloadUrlConnection | 传入定制化的网络连接组件,用于下载时建立网络连接
259
- | outputStreamCreator | FileDownloadOutputStream | FileDownloadRandomAccessFile、FileDownloadBufferedOutputStream、FileDownloadOkio | FileDownloadRandomAccessFile | 传入输出流组件,用于下载时写文件使用
259
+ | outputStreamCreator | FileDownloadOutputStream | FileDownloadRandomAccessFile | FileDownloadRandomAccessFile | 传入输出流组件,用于下载时写文件使用
260
260
| maxNetworkThreadCount | - | - | 3 | 传入创建下载引擎时,指定可用的下载线程个数
261
261
| ConnectionCountAdapter | ConnectionCountAdapter | DefaultConnectionCountAdapter | DefaultConnectionCountAdapter | 根据任务指定其线程数
262
262
| IdGenerator | IdGenerator | DefaultIdGenerator | DefaultIdGenerator | 自定义任务Id生成器
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ FileDownloader is installed by adding the following dependency to your `build.gr
26
26
27
27
``` groovy
28
28
dependencies {
29
- compile 'com.liulishuo.filedownloader:library:1.6.5 '
29
+ compile 'com.liulishuo.filedownloader:library:1.6.6 '
30
30
}
31
31
```
32
32
Original file line number Diff line number Diff line change 1
- VERSION_NAME =1.6.5
2
- VERSION_CODE =56
1
+ VERSION_NAME =1.6.6
2
+ VERSION_CODE =57
3
3
BUILD_TOOLS_VERSION =25.0.0
4
4
COMPILE_SDK_VERSION =25
5
5
0 commit comments