|
|
@ -29,8 +29,9 @@ Aria有以下特点: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 下载 |
|
|
|
## 下载 |
|
|
|
[![Download](https://api.bintray.com/packages/arialyy/maven/AriaApi/images/download.svg)](https://bintray.com/arialyy/maven/AriaApi/_latestVersion) |
|
|
|
[![Core](https://api.bintray.com/packages/arialyy/maven/AriaApi/images/download.svg)](https://bintray.com/arialyy/maven/AriaApi/_latestVersion) |
|
|
|
[![Download](https://api.bintray.com/packages/arialyy/maven/AriaCompiler/images/download.svg)](https://bintray.com/arialyy/maven/AriaCompiler/_latestVersion) |
|
|
|
[![Compiler](https://api.bintray.com/packages/arialyy/maven/AriaCompiler/images/download.svg)](https://bintray.com/arialyy/maven/AriaCompiler/_latestVersion) |
|
|
|
|
|
|
|
|
|
|
|
```java |
|
|
|
```java |
|
|
|
compile 'com.arialyy.aria:aria-core:3.5.2' |
|
|
|
compile 'com.arialyy.aria:aria-core:3.5.2' |
|
|
|
annotationProcessor 'com.arialyy.aria:aria-compiler:3.5.2' |
|
|
|
annotationProcessor 'com.arialyy.aria:aria-compiler:3.5.2' |
|
|
@ -101,27 +102,22 @@ protected void onCreate(Bundle savedInstanceState) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 版本日志 |
|
|
|
### 版本日志 |
|
|
|
+ v_3.5.2 |
|
|
|
+ v_3.5.3(2018/12/23) |
|
|
|
- 添加Serializable接口支持 https://github.com/AriaLyy/Aria/issues/320 |
|
|
|
- 修复ftps不能加载默认证书的bug https://github.com/AriaLyy/Aria/issues/334 |
|
|
|
- 失败回调增加错误原因 https://github.com/AriaLyy/Aria/issues/310 |
|
|
|
- 优化注解性能,移除不必要的判断代码 |
|
|
|
``` |
|
|
|
- 增加广播支持,详情见:http://aria.laoyuyu.me/aria_doc/api/use_broadcast.html |
|
|
|
@Download.onTaskFail void taskFail(DownloadTask task, Exception e) { |
|
|
|
- 增加get参数支持 |
|
|
|
e.getMessage(); |
|
|
|
```java |
|
|
|
... |
|
|
|
Aria.download(SingleTaskActivity.this) |
|
|
|
} |
|
|
|
.load(DOWNLOAD_URL) // url 必须是主体url,也就是?前面的内容 |
|
|
|
|
|
|
|
.setFilePath(path, true) |
|
|
|
|
|
|
|
.asGet() |
|
|
|
|
|
|
|
.setParams(params) // 设置参数 |
|
|
|
|
|
|
|
.start(); |
|
|
|
``` |
|
|
|
``` |
|
|
|
- fix bug https://github.com/AriaLyy/Aria/issues/322 |
|
|
|
- fix bug https://github.com/AriaLyy/Aria/issues/335 |
|
|
|
- 新增201 重定向支持 https://github.com/AriaLyy/Aria/issues/318 |
|
|
|
- 新增进度百分比保存 https://github.com/AriaLyy/Aria/issues/336 |
|
|
|
- 修复使用`useServerFileName(true)`中含有`"`导致的文件后缀名错误问题 |
|
|
|
- fix bug https://github.com/AriaLyy/Aria/issues/335 |
|
|
|
- 优化logcat日志提示 |
|
|
|
|
|
|
|
- 修改下载线程的优先级为`Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);` |
|
|
|
|
|
|
|
- fix bug https://github.com/AriaLyy/Aria/issues/319 |
|
|
|
|
|
|
|
- 修复分卡下载失败的问题 https://github.com/AriaLyy/Aria/issues/326 |
|
|
|
|
|
|
|
- 初始化Aria时会将所有数据库状态为下载中的任务改为已停止,防止应用被kill后,任务状态错误 |
|
|
|
|
|
|
|
- 初始化时自动判断文件是否被删除,文件被删除的任务将自动重置默认值 |
|
|
|
|
|
|
|
- 修复刷新url后,文件无法删除的 bug |
|
|
|
|
|
|
|
- fix bug https://github.com/AriaLyy/Aria/issues/309 |
|
|
|
|
|
|
|
- 优化配置文件的读取 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[更多版本记录](https://github.com/AriaLyy/Aria/blob/master/DEV_LOG.md) |
|
|
|
[更多版本记录](https://github.com/AriaLyy/Aria/blob/master/DEV_LOG.md) |
|
|
|
|
|
|
|
|
|
|
|