Skip to content

Commit

Permalink
chore(upgrade): upgrade version name(1.2.2->1.3.0) code(34->35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksgong committed Oct 31, 2016
1 parent 57bd8bb commit da6707a
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 4 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@

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

_2016-10-31_

#### 新接口

- 新增 `FileDownloadSerialQueue`: 便于动态管理串行执行的队列。 Closes #345.
- 移除 `FileDownloadListener`类中的`callback`方法, 并且新增`FileDownloadListener#isInvalid`方法,用于告知FileDownloader该监听器是否已经无效,不再接收任何消息。
- 新增 `FileDownloader#clearAllTaskData`: 清空`filedownloader`数据库中的所有数据。 Closes #361.

#### 性能与提高

- 提高实用性(`FileDownloadListener#blackCompleted`): 确保`blockCompleted`回调可以接收任何的`Exception`。 Closes #369.
- 提高实用性(service-not-connected): 在service-not-connected-helper中输出提示与原因, 这样当你调用有些需要确保下载服务已经连接上的方式,但下载服务没有连接上时,不但在`Logcat`中可以收到原因,还能收到提示。

#### 修复

- 修复(reuse): 修复调用`BaseDownloadTask#pause`之后短时间内调用`BaseDownloadTask#reuse`方法,可能会抛出异常的问题。 Closes #329.

## Version 1.2.2

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

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

_2016-10-31_

#### New Interfaces

- Add `FileDownloadSerialQueue`: Easy to dynamically manage tasks and tasks in the queue will automatically start download one by one. Closes #345.
- Remove the `callback` method in the `FileDownloadListener` class, besides adding the `FileDownloadListener#isInvalid` method to tell the FileDownloader whether the listener has already invalidated, which means it can't receive any messages.
- Add `FileDownloader#clearAllTaskData`: Clear all data in the `filedownloader` database. Closes #361

#### Enhancement

- Improve Practicability(`FileDownloadListener#blackCompleted`): Ensure the `blockCompleted` callback method can accept any `Exception`. Closes #369.
- Improve Practicability(service-not-connected): Print the tips with the cause in service-not-connected-helper, in this way, when you invoke some methods need the FileDownload service has already connected but not yet, FileDownloader will not only print causes in the `Logcat` but also print the tips.

#### Fix

- Fix(reuse): fix `BaseDownloadTask#reuse` is called shortly after the call to `BaseDownloadTask#pause` may raise an exception. Closes #329.

## Version 1.2.2

_2016-10-15_
Expand Down
5 changes: 4 additions & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Android 文件下载引擎,稳定、高效、简单易用
在项目中引用:

```groovy
compile 'com.liulishuo.filedownloader:library:1.2.2'
compile 'com.liulishuo.filedownloader:library:1.3.0'
```

> 如果是eclipse引入jar包参考: [这里](https://github.com/lingochamp/FileDownloader/issues/212#issuecomment-232240415)
Expand Down Expand Up @@ -228,6 +228,8 @@ if (parallel) {
// FileDownloader.getImpl().create(url).setSyncCallback(true)
// );
}

// 串行任务动态管理也可以使用FileDownloadSerialQueue。
```

#### 全局接口说明(`FileDownloader`)
Expand Down Expand Up @@ -263,6 +265,7 @@ if (parallel) {
| setTaskCompleted(url:String, path:String, totalBytes:long) | 用于告诉FileDownloader引擎,以指定Url与Path的任务已经通过其他方式(非FileDownloader)下载完成
| setTaskCompleted(taskAtomList:List<FileDownloadTaskAtom>) | 用于告诉FileDownloader引擎,指定的一系列的任务都已经通过其他方式(非FileDownloader)下载完成
| setMaxNetworkThreadCount(int) | 设置最大并行下载的数目(网络下载线程数), [1,12]
| clearAllTaskData() | 清空`filedownloader`数据库中的所有数据

#### 定制化组件接口说明(`InitCustomMaker`)

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.gr

```groovy
dependencies {
compile 'com.liulishuo.filedownloader:library:1.2.2'
compile 'com.liulishuo.filedownloader:library:1.3.0'
}
```

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=1.2.2
VERSION_CODE=34
VERSION_NAME=1.3.0
VERSION_CODE=35
BUILD_TOOLS_VERSION=24.0.2
COMPILE_SDK_VERSION=24

Expand Down

0 comments on commit da6707a

Please sign in to comment.