Skip to content

Commit

Permalink
chore(upgrade): upgrade version name(0.3.3->0.3.4) code(24->25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksgong committed Jul 31, 2016
1 parent ba44c26 commit d4a2529
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 6 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@

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

_2016-07-31_

#### 新接口

- 添加 `FileDownloader#clear`: 用于强制根据任务ID清理其在filedownloader中的数据。Closes #218

#### 性能与提高

- 提高实用性: 为 `FileDownloader#start(FileDownloader, boolean)` 添加返回值: 是否成功启动任务下载。Closes #215
- 提高实用性: `FileDownloader#pause` 暂停任务时,不再仅仅是暂停一个任务,而是暂停掉所有ID为指定ID的运行中的任务。

#### 修复

- 修复(初始化-CRASH): 修复初始化FileDownloader时,从`ActivityManager`获取到运行中进程信息为空时发生CRASH。Closes #210
- 修复(小概率-CRASH): 修复当FileDownloadService已经`onDestroy`后,还接收到`snapshot-message`时发生CRASH的情况。 Closes #213
- 修复(消息流准确性): 在真正启动下载时删除目标文件,以此保证当有相同任务正在下载时,获取下载状态,不会获取到已经下载完成的错误的状态。Closes #220
- 修复(启动线性下载): 收集未绑定的任务进行启动而非只是根据FileDownloadListener去收集任务,修复无法启动两个相同`FileDownloadListener`的队列。Closes #233
- 修复(清理Messenger): 在回调 结束的消息 的回调之前进行清理任务的Messenger,而非在回调之后清理,以此确保在回调方法中可以调用`BaseDownloadTask#reuse`。Closes #229

#### 其他

- 所依赖的okhttp从`3.3.1`升到`3.4.1`

## Version 0.3.3

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

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

_2016-07-31_

#### New Interfaces

- Add `FileDownloader#clear`: clear the data with the task id in the filedownloader database. Closes #218.

#### Enhancement

- Improve Practicability: Add return value to the method `FileDownloader#start(FileDownloadListener, boolean)` : Whether start tasks successfully. Closes #215.
- Improve Practicability: Pause tasks with the same download-id rather than just pause one task through there are more than one task in downloading.

#### Fix

- Fix(init-crash): Fix the crash about the list of running-app-process-info from `ActivityManager` is null when to init FileDownloader. Closes #210.
- Fix(minor-crash): Fix the NPE-crash when to execute receiving snapshot-message after FileDownloadService already onDestroy. Closes #213.
- Fix(message-keep-flow): Delete the target file before start downloading, ensure can't get the `completed` status when another same task is downloading. Closes #220
- Fix(start-serial): Assemble non-attached-tasks to start rather than assemble tasks just refer to FileDownloadListener, fix no possibility to start two queues with the same `FileDownloadListener`. Closes #223.
- Fix(free-messenger): Free the messenger of Task before call back 'over-message' to FileDownloadListener instead of after callback, ensure Task can be reused in FileDownloadListener callback method. Closes #229.

#### Others

- Upgrade dependency okhttp from `3.3.1` to `3.4.1`.


## Version 0.3.3

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

> [README DOC](https://github.com/lingochamp/FileDownloader/blob/master/README.md)
> 本引擎依赖okhttp 3.3.1
> 本引擎依赖okhttp 3.4.1
---

#### 版本迭代日志: [Change Log](https://github.com/lingochamp/FileDownloader/blob/master/CHANGELOG.md)

#### 英文文档: [Wiki](https://github.com/lingochamp/FileDownloader/wiki)

---

### 特点
Expand Down Expand Up @@ -61,7 +63,7 @@ Android 文件下载引擎,稳定、高效、简单易用
在项目中引用:

```
compile 'com.liulishuo.filedownloader:library:0.3.3'
compile 'com.liulishuo.filedownloader:library:0.3.4'
```

> 如果是eclipse引入jar包参考: [这里](https://github.com/lingochamp/FileDownloader/issues/212#issuecomment-232240415)
Expand Down Expand Up @@ -241,6 +243,7 @@ if (parallel) {
| pause(listener:FileDownloadListener) | 暂停启动相同监听器的任务
| pauseAll(void) | 暂停所有任务
| pause(downloadId) | 暂停downloadId的任务
| clear(downloadId, targetFilePath) | 强制清理ID为downloadId的任务在filedownloader中的数据
| getSoFar(downloadId) | 获得下载Id为downloadId的soFarBytes
| getTotal(downloadId) | 获得下载Id为downloadId的totalBytes
| bindService(void) | 主动启动下载进程(可事先调用该方法(可以不调用),保证第一次下载的时候没有启动进程的速度消耗)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Android multi-task file download engine.

> [中文文档](https://github.com/lingochamp/FileDownloader/blob/master/README-zh.md)
> This project dependency on [square/okhttp 3.3.1](https://github.com/square/okhttp)
> This project dependency on [square/okhttp 3.4.1](https://github.com/square/okhttp)
## DEMO

Expand All @@ -26,7 +26,7 @@ FileDownloader is installed by adding the following dependency to your build.gra

```
dependencies {
compile 'com.liulishuo.filedownloader:library:0.3.3'
compile 'com.liulishuo.filedownloader:library:0.3.4'
}
```

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.3.3
VERSION_CODE=24
VERSION_NAME=0.3.4
VERSION_CODE=25
BUILD_TOOLS_VERSION=23.0.1
COMPILE_SDK_VERSION=23

Expand Down

0 comments on commit d4a2529

Please sign in to comment.