Skip to content

Commit

Permalink
chore(upgrade): upgrade version name(0.2.5->0.2.6) code(16->17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksgong committed Apr 19, 2016
1 parent fc0b38d commit d1a1970
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 7 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,26 @@

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

_2016-04-20_

#### 新接口

- 调整: 将原本需要在根目录创建的 `filedownloader.properties` ,改为到 模块的 `assets` 目录下, 如 `/demo/src/main/assets/filedownloader.properties`

#### 修复

- 修复 `filedownloader.properties` 中的参数不起作用的bug。 Closes #117.

## Version 0.2.5

_2016-04-19_

#### 新接口

- 添加 `FileDownloader#setTaskCompleted`: 用于告诉FileDownloader引擎,以指定Url与Path的任务已经通过其他方式(非FileDownloader)下载完成。
- 支持 新的配置参数`download.max-network-thread-count``filedownloader.properties`: 同时下载的最大网络线程数,默认值是3. Closes #116.
- 支持 新的配置参数`download.max-network-thread-count``filedownloader.properties`: 同时下载的最大网络线程数,默认值是3 Closes #116.

## Version 0.2.4

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 0.2.6

_2016-04-20_

#### New Interfaces

- Adjust: Change the location of the `filedownloader.properties` ,no more in the root directory of project, instead below the `assets` of a module, for example `/demo/src/main/assets/filedownloader.properties`.

#### Fix

- Fix: `filedownloader.properties` not work. Closes #117.

## Version 0.2.5

_2016-04-19_
Expand Down
6 changes: 3 additions & 3 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Android 文件下载引擎,稳定、高效、简单易用
在项目中引用:

```
compile 'com.liulishuo.filedownloader:library:0.2.5'
compile 'com.liulishuo.filedownloader:library:0.2.6'
```

#### 全局初始化在`Application.onCreate`
Expand Down Expand Up @@ -374,14 +374,14 @@ blockComplete -> completed
#### `filedownloader.properties`

> 如果你需要使用'filedownloader.properties'却在项目根目录下没有找到该文件,可以直接在项目根目录下直接创建一个以'filedownloader.properties'作为文件名的文件即可
> 如果你需要定制化FileDownloader,可以在你的项目模块的`assets` 目录下添加 'filedownloader.properties' 文件(如 `/demo/src/main/assets/filedownloader.properties`),然后添加以下可选相关配置
> 格式: `keyword=value`
| 关键字 | 描述 | 默认值
| --- | --- | ---
| http.lenient | 如果你遇到了: 'can't know the size of the download file, and its Transfer-Encoding is not Chunked either', 但是你想要忽略类似的返回头不规范的错误,直接将该关键字参数设置为`true`即可,我们将会将其作为`chunck`进行处理 | false
| process.non-separate | FileDownloadService 默认是运行在独立进程':filedownloader'上的, 如果你想要FileDownloadService共享并运行在主进程上, 将该关键字参数设置为`true` | false
| process.non-separate | FileDownloadService 默认是运行在独立进程':filedownloader'上的, 如果你想要FileDownloadService共享并运行在主进程上, 将该关键字参数设置为`true`,可以有效减少IPC产生的I/O | false
| download.min-progress-step | 最小缓冲大小,用于判定是否是时候将缓冲区中进度同步到数据库,以及是否是时候要确保下缓存区的数据都已经写文件。值越小,更新会越频繁,下载速度会越慢,但是应对进程被无法预料的情况杀死时会更加安全 | 65536
| download.min-progress-time | 最小缓冲时间,用于判定是否是时候将缓冲区中进度同步到数据库,以及是否是时候要确保下缓存区的数据都已经写文件。值越小,更新会越频繁,下载速度会越慢,但是应对进程被无法预料的情况杀死时会更加安全 | 2000
| download.max-network-thread-count | 用于同时下载的最大网络线程数, 区间[1, 12] | 3
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.gra

```
dependencies {
compile 'com.liulishuo.filedownloader:library:0.2.5'
compile 'com.liulishuo.filedownloader:library:0.2.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=0.2.5
VERSION_CODE=16
VERSION_NAME=0.2.6
VERSION_CODE=17
BUILD_TOOLS_VERSION=23.0.1
COMPILE_SDK_VERSION=23

Expand Down

0 comments on commit d1a1970

Please sign in to comment.