From be3ffd74a126ec76aa5983310ef988575bacfb7c Mon Sep 17 00:00:00 2001 From: Jacksgong Date: Tue, 19 Apr 2016 13:51:04 +0800 Subject: [PATCH] chore(upgrade): upgrade version name(0.2.4->0.2.5) code(15->16) --- CHANGELOG-ZH.md | 9 +++++++++ CHANGELOG.md | 9 +++++++++ README-zh.md | 4 +++- README.md | 2 +- filedownloader.properties | 1 - gradle.properties | 4 ++-- 6 files changed, 24 insertions(+), 5 deletions(-) diff --git a/CHANGELOG-ZH.md b/CHANGELOG-ZH.md index 816f3450..46623685 100644 --- a/CHANGELOG-ZH.md +++ b/CHANGELOG-ZH.md @@ -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_ diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ccae43f..09fe393a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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_ diff --git a/README-zh.md b/README-zh.md index 2ce746f1..fd22b6df 100644 --- a/README-zh.md +++ b/README-zh.md @@ -60,7 +60,7 @@ Android 文件下载引擎,稳定、高效、简单易用 在项目中引用: ``` -compile 'com.liulishuo.filedownloader:library:0.2.4' +compile 'com.liulishuo.filedownloader:library:0.2.5' ``` #### 全局初始化在`Application.onCreate`中 @@ -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接口说明 @@ -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. 异常处理 diff --git a/README.md b/README.md index a4f73ded..0b19ba54 100644 --- a/README.md +++ b/README.md @@ -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' } ``` diff --git a/filedownloader.properties b/filedownloader.properties index 3c4f7a44..2c988a63 100644 --- a/filedownloader.properties +++ b/filedownloader.properties @@ -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 diff --git a/gradle.properties b/gradle.properties index 65e8fca2..fcd4200b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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