Skip to content

Commit

Permalink
chore: upgrade version name(1.5.3->1.5.4) code(44-45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksgong committed Jun 11, 2017
1 parent 0c129b3 commit 4969f56
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 5 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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

_2017-06-11_

#### 新接口

- 通过`IdGenerator`支持了定制下载任务id生成器。 Closes #224

#### 性能与提高

- 提高实用性: 将`FileDownloadModel`的维护从`FileDownloadDatabase`中解藕,让`FileDownloadDatabase`只关心数据库相关操作。
- 提高实用性: 将数据库初始化的维护工作从默认的数据库实现中解藕出来,让定制的数据库也能够被采用相同机制维护到。

## Version 1.5.3

_2017-06-08_
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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

_2017-06-11_

#### New Interfaces

- Support customizing the download task identify generator through `IdGenerator`. Closes #224

#### Enhancement

- Improve Practicability: Decoupling the filedownload-database with filedownload-model, let filedownload-database only care about database operation.
- Improve Practicability: Decoupling the database initial-maintain from the filedownload-database default implementation to let the customized database can be maintained.

## Version 1.5.3

_2017-06-08_
Expand Down
3 changes: 2 additions & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Android 文件下载引擎,稳定、高效、灵活、简单易用
在项目中引用:

```groovy
compile 'com.liulishuo.filedownloader:library:1.5.3'
compile 'com.liulishuo.filedownloader:library:1.5.4'
```

> 如果是eclipse引入jar包参考: [这里](https://github.com/lingochamp/FileDownloader/issues/212#issuecomment-232240415)
Expand Down Expand Up @@ -271,6 +271,7 @@ if (parallel) {
| outputStreamCreator | FileDownloadOutputStream | FileDownloadRandomAccessFile、FileDownloadBufferedOutputStream、FileDownloadOkio | FileDownloadRandomAccessFile | 传入输出流组件,用于下载时写文件使用
| maxNetworkThreadCount | - | - | 3 | 传入创建下载引擎时,指定可用的下载线程个数
| ConnectionCountAdapter | ConnectionCountAdapter | DefaultConnectionCountAdapter | DefaultConnectionCountAdapter | 根据任务指定其线程数
| IdGenerator | IdGenerator | DefaultIdGenerator | DefaultIdGenerator | 自定义任务Id生成器

> 如果你希望Okhttp作为你的网络连接组件,可以使用[这个库](https://github.com/Jacksgong/filedownloader-okhttp3-connection)
Expand Down
7 changes: 5 additions & 2 deletions 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.5.3'
compile 'com.liulishuo.filedownloader:library:1.5.4'
}
```

Expand All @@ -40,6 +40,7 @@ From now on, FileDownloader support following components to be customized by you
| OutputStream | [FileDownloadOutputStream][FileDownloadOutputStream-java-link] | [FileDownloadRandomAccessFile][FileDownloadRandomAccessFile-java-link]
| Database | [FileDownloadDatabase][FileDownloadDatabase-java-link] | [DefaultDatabaseImpl][DefaultDatabaseImpl-java-link]
| ConnectionCountAdapter | [ConnectionCountAdapter][ConnectionCountAdapter-java-link] | [DefaultConnectionCountAdapter][DefaultConnectionCountAdapter-java-link]
| IdGenerator | [IdGenerator][IdGenerator-java-link] | [DefaultIdGenerator][DefaultIdGenerator-java-link]

> If you want to use okhttp as your connection component, the simplest way is [this repo](https://github.com/Jacksgong/filedownloader-okhttp3-connection).
Expand Down Expand Up @@ -102,5 +103,7 @@ limitations under the License.
[DefaultDatabaseImpl-java-link]: https://github.com/lingochamp/FileDownloader/blob/master/library/src/main/java/com/liulishuo/filedownloader/services/DefaultDatabaseImpl.java
[FileDownloadOutputStream-java-link]: https://github.com/lingochamp/FileDownloader/blob/master/library/src/main/java/com/liulishuo/filedownloader/stream/FileDownloadOutputStream.java
[FileDownloadRandomAccessFile-java-link]: https://github.com/lingochamp/FileDownloader/blob/master/library/src/main/java/com/liulishuo/filedownloader/stream/FileDownloadRandomAccessFile.java
[ConnectionCountAdapter-java-link]: https://github.com/lingochamp/FileDownloader/blob/master/library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadHelper.java#L54
[ConnectionCountAdapter-java-link]: https://github.com/lingochamp/FileDownloader/blob/master/library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadHelper.java#L100
[DefaultConnectionCountAdapter-java-link]: https://github.com/lingochamp/FileDownloader/blob/master/library/src/main/java/com/liulishuo/filedownloader/connection/DefaultConnectionCountAdapter.java
[IdGenerator-java-link]: https://github.com/lingochamp/FileDownloader/blob/master/library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadHelper.java#L55
[DefaultIdGenerator-java-link]: https://github.com/lingochamp/FileDownloader/blob/master/library/src/main/java/com/liulishuo/filedownloader/services/DefaultIdGenerator.java
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.5.3
VERSION_CODE=44
VERSION_NAME=1.5.5
VERSION_CODE=45
BUILD_TOOLS_VERSION=25.0.0
COMPILE_SDK_VERSION=25

Expand Down

0 comments on commit 4969f56

Please sign in to comment.