Skip to content

Commit

Permalink
chore(upgrade): upgrade version name(0.2.4->0.2.5) code(15->16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksgong committed Apr 19, 2016
1 parent 1570c87 commit be3ffd7
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

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

_2016-04-19_

#### 新接口

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

## Version 0.2.4

_2016-04-18_
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

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

_2016-04-19_

#### New Interfaces

- Add `FileDownloader#setTaskCompleted`: Used to telling the FileDownloader Engine that the task with the url and the path has already completed downloading by other ways(not by FileDownloader Engine).
- Support the configuration `download.max-network-thread-count` in `filedownloader.properties`: The maximum network thread count for downloading simultaneously, default is 3. Closes #116.

## Version 0.2.4

_2016-04-18_
Expand Down
4 changes: 3 additions & 1 deletion 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.4'
compile 'com.liulishuo.filedownloader:library:0.2.5'
```

#### 全局初始化在`Application.onCreate`
Expand Down Expand Up @@ -251,6 +251,7 @@ if (parallel) {
| isEnabledAvoidDropFrame(void) | 是否开启了 避免掉帧处理。默认是开启的
| startForeground(id:int, notification:Notification) | 设置FileDownloadService为前台模式,保证用户从最近应用列表移除应用以后下载服务不会被杀
| stopForeground(removeNotification:boolean) | 取消FileDownloadService的前台模式
| setTaskCompleted(url:String, path:String, totalBytes:long) | 用于告诉FileDownloader引擎,以指定Url与Path的任务已经通过其他方式(非FileDownloader)下载完成


#### Task接口说明
Expand Down Expand Up @@ -383,6 +384,7 @@ blockComplete -> completed
| process.non-separate | FileDownloadService 默认是运行在独立进程':filedownloader'上的, 如果你想要FileDownloadService共享并运行在主进程上, 将该关键字参数设置为`true` | false
| download.min-progress-step | 最小缓冲大小,用于判定是否是时候将缓冲区中进度同步到数据库,以及是否是时候要确保下缓存区的数据都已经写文件。值越小,更新会越频繁,下载速度会越慢,但是应对进程被无法预料的情况杀死时会更加安全 | 65536
| download.min-progress-time | 最小缓冲时间,用于判定是否是时候将缓冲区中进度同步到数据库,以及是否是时候要确保下缓存区的数据都已经写文件。值越小,更新会越频繁,下载速度会越慢,但是应对进程被无法预料的情况杀死时会更加安全 | 2000
| download.max-network-thread-count | 用于同时下载的最大网络线程数, 区间[1, 12] | 3


III. 异常处理
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.4'
compile 'com.liulishuo.filedownloader:library:0.2.5'
}
```

Expand Down
1 change: 0 additions & 1 deletion filedownloader.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ download.min-progress-step=65536
# Default 2000, which follow the value in com.android.providers.downloads.Constants.
download.min-progress-time=2000


# The maximum network thread count for downloading simultaneously.
#
# FileDownloader is designed to download 3 files simultaneously as maximum size as default, and the
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.4
VERSION_CODE=15
VERSION_NAME=0.2.5
VERSION_CODE=16
BUILD_TOOLS_VERSION=23.0.1
COMPILE_SDK_VERSION=23

Expand Down

0 comments on commit be3ffd7

Please sign in to comment.