Skip to content

Commit

Permalink
upgrade version code(5->6) name(0.1.2 -> 0.1.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksgong committed Jan 4, 2016
1 parent d9609f8 commit 2c2700e
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 15 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG-ZH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Change log

### Version 0.1.3

- 不再受到1.99G限制;如果是大于1.99G的文件,请使用`FileDownloadLargeFileListener`作为监听器,使用对应的`getLargeFileSoFarBytes()``getLargeFileTotalBytes()`接口
- 性能优化: 部分接口跨进程通信不受binder thread 阻塞。
- 依赖okhttp,从2.7.0 升到2.7.1

### Version 0.1.2

- 优化线程消化能力
- 修复大队列任务暂停可能部分无效的问题
- 修复大队列并行下载时一定概率下载已经完成回调囤积延后回调的问题

### Version 0.1.1

- event线程区分敏捷线程池与其他线程池,减少资源冗余强制、内部稳定性以及消化能力与性能,
- 添加自动重试接口,新增用户指定如果失败自动重试的次数

### Version 0.1.0

- FileDownloadStatus 由`int`改为`byte`,该参数会频繁的在IPC时被拷贝
- 优化串行or并行任务时,筛选task在准备数据时就筛选好,减少冗余操作,更加安全
- 优化串行任务执行保证使用更可靠的方式

### Version 0.0.9

- 将调用start(启动任务)抛独立线程处理,其中的线程是通过共享非下载进程EventPool中的线程池(可并行8个线程)

### Version 0.0.8

- initial release
26 changes: 17 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
# Change log

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

- Enhancement: no longer subject to the upper bound of 1.99G, add `FileDownloadLargeFileListener`, `getLargeFileSoFarBytes()`,`getLargeFileTotalBytes()`.
- Performance optimization: some ipc transaction just need one-way call(async), not block(sync).
- Upgrade dependency okhttp from 2.7.0 to 2.7.1.

### Version 0.1.2

- 优化线程消化能力
- 修复大队列任务暂停可能部分无效的问题
- 修复大队列并行下载时一定概率下载已经完成回调囤积延后回调的问题
- Optimize thread digestion([map](https://github.com/lingochamp/FileDownloader/raw/master/art/filedownload_sample_description.png).
- Fix: may `pause()` invalid in large queue task.
- Fix: large queue task parallel download, may download has been completed but the callback

### Version 0.1.1

- event线程区分敏捷线程池与其他线程池,减少资源冗余强制、内部稳定性以及消化能力与性能,
- 添加自动重试接口,新增用户指定如果失败自动重试的次数
- Optimization of internal performance, according to the time split thread pool.
- Add auto retry feature.

### Version 0.1.0

- FileDownloadStatus`int`改为`byte`,该参数会频繁的在IPC时被拷贝
- 优化串行or并行任务时,筛选task在准备数据时就筛选好,减少冗余操作,更加安全
- 优化串行任务执行保证使用更可靠的方式
- The `FileDownloadStatus` parameter type is changed from `int` to `byte`, which is frequently copied in IPC.
- Optimization of multi task queue filtering time.
- Optimizing serial task execution mechanism.

### Version 0.0.9

- 将调用start(启动任务)抛独立线程处理,其中的线程是通过共享非下载进程EventPool中的线程池(可并行8个线程)
- The start operation into independent thread processing, sharing thread pool in EventPool.

### Version 0.0.8

Expand Down
4 changes: 2 additions & 2 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Android 文件下载引擎,稳定、高效、简单易用

#### 需要注意

- 为了绝大多数使用性能考虑,目前下载引擎目前受限于int可表示的范围,而我们的回调`total``so far`以byte为单位回调,因此最大只能表示到`2^31-1`=2_147_483_647 = 1.99GB(ps: 如果有更大的文件下载需求,提issue,我们会进行一些巧妙的优化,利用负值区间?根据大小走特殊通道传输?)
- 当下载的文件大小可能大于1.99GB(2^31-1`=2_147_483_647 = 1.99GB`)的时候, 请使用`FileDownloadLargeFileListener`而不是`FileDownloadListener`(同理使用`getLargeFileSofarBytes()``getLargeFileTotalBytes()`)
- 暂停: paused, 恢复: 直接调用start,默认就是断点续传

#### 使用okHttp并使用其中的一些默认属性
Expand All @@ -43,7 +43,7 @@ Android 文件下载引擎,稳定、高效、简单易用
在项目中引用:

```
compile 'com.liulishuo.filedownloader:library:0.1.2'
compile 'com.liulishuo.filedownloader:library:0.1.3'
```

#### 全局初始化在`Application.onCreate`
Expand Down
4 changes: 2 additions & 2 deletions 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.gra

```
dependencies {
compile 'com.liulishuo.filedownloader:library:0.1.2'
compile 'com.liulishuo.filedownloader:library:0.1.3'
}
```

Expand Down Expand Up @@ -246,7 +246,7 @@ blockComplete -> completed

## Attention

- For the vast majority of the use of performance considerations, limited to the range of int, FileDownloader engine maximum support for the download file size does not exceed 1.99G(`2^31-1=2_147_483_647`)
- Using `FileDownloadLargeFileListener` instance instead of `FileDownloadListener`, when file size maybe greater than 1.99G(`2^31-1=2_147_483_647`)(The same use: `getLargeFileSoFarBytes()` and `getLargeFileTotalBytes()`).
- Default by okhttp: retryOnConnectionFailure: Unreachable IP addresses/Stale pooled connections/Unreachable proxy servers
- Default by okhttp: connection/read/write time out 10s

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=0.1.2
VERSION_CODE=5
VERSION_NAME=0.1.3
VERSION_CODE=6
BUILD_TOOLS_VERSION=23.0.1
COMPILE_SDK_VERSION=23

Expand Down

0 comments on commit 2c2700e

Please sign in to comment.