pull/631/head 3.8.6
laoyuyu 5 years ago
parent 604fb91800
commit 472006ef61
  1. 1
      DEV_LOG.md
  2. 17
      HttpComponent/src/main/java/com/arialyy/aria/http/download/HttpDFileInfoTask.java
  3. 37
      README.md
  4. 4
      build.gradle

@ -4,6 +4,7 @@
- fix bug https://github.com/AriaLyy/Aria/issues/579#issuecomment-586665035 - fix bug https://github.com/AriaLyy/Aria/issues/579#issuecomment-586665035
- fix bug https://github.com/AriaLyy/Aria/issues/610 - fix bug https://github.com/AriaLyy/Aria/issues/610
- fix bug https://github.com/AriaLyy/Aria/issues/614 - fix bug https://github.com/AriaLyy/Aria/issues/614
- 增加文件名适配器(感谢小伙伴[DaveBoy](https://github.com/DaveBoy)的PR)
- 优化异常提示 - 优化异常提示
+ v_3.8.5 (2020/1/18) + v_3.8.5 (2020/1/18)
- fix bug https://github.com/AriaLyy/Aria/issues/599 - fix bug https://github.com/AriaLyy/Aria/issues/599

@ -91,7 +91,7 @@ final class HttpDFileInfoTask implements IInfoTask, Runnable {
if (conn != null) { if (conn != null) {
try { try {
InputStream is = conn.getInputStream(); InputStream is = conn.getInputStream();
if (is != null){ if (is != null) {
is.close(); is.close();
} }
} catch (IOException e) { } catch (IOException e) {
@ -158,15 +158,16 @@ final class HttpDFileInfoTask implements IInfoTask, Runnable {
if (!TextUtils.isEmpty(disposition)) { if (!TextUtils.isEmpty(disposition)) {
mEntity.setDisposition(CommonUtil.encryptBASE64(disposition)); mEntity.setDisposition(CommonUtil.encryptBASE64(disposition));
handleContentDisposition(disposition); handleContentDisposition(disposition);
} else{ } else {
if(taskOption.getFileNameAdapter()!=null) { if (taskOption.getFileNameAdapter() != null) {
String newName =taskOption.getFileNameAdapter().handleFileName(headers,mEntity.getKey()); String newName =
taskOption.getFileNameAdapter().handleFileName(headers, mEntity.getKey());
mEntity.setServerFileName(newName); mEntity.setServerFileName(newName);
renameFile(newName); renameFile(newName);
}else if(conn.getHeaderField("Content-Type")!=null){ } else if (conn.getHeaderField("Content-Type") != null) {
String contentType=conn.getHeaderField("Content-Type"); String contentType = conn.getHeaderField("Content-Type");
String type=contentType.substring(contentType.indexOf(File.separator)+1); String type = contentType.substring(contentType.indexOf(File.separator) + 1);
String newName =mEntity.getFileName()+File.separator+type; String newName = String.format("%s.%s", mEntity.getFileName(), type);
mEntity.setServerFileName(newName); mEntity.setServerFileName(newName);
renameFile(newName); renameFile(newName);
} }

@ -45,19 +45,19 @@ Aria有以下特点:
## 引入库 ## 引入库
[![license](http://img.shields.io/badge/license-Apache2.0-brightgreen.svg?style=flat)](https://github.com/AriaLyy/Aria/blob/master/LICENSE) [![license](http://img.shields.io/badge/license-Apache2.0-brightgreen.svg?style=flat)](https://github.com/AriaLyy/Aria/blob/master/LICENSE)
[![Core](https://img.shields.io/badge/Core-3.8.5-blue)](https://github.com/AriaLyy/Aria) [![Core](https://img.shields.io/badge/Core-3.8.6-blue)](https://github.com/AriaLyy/Aria)
[![Compiler](https://img.shields.io/badge/Compiler-3.8.5-blue)](https://github.com/AriaLyy/Aria) [![Compiler](https://img.shields.io/badge/Compiler-3.8.6-blue)](https://github.com/AriaLyy/Aria)
[![FtpComponent](https://img.shields.io/badge/FtpComponent-3.8.5-orange)](https://github.com/AriaLyy/Aria) [![FtpComponent](https://img.shields.io/badge/FtpComponent-3.8.6-orange)](https://github.com/AriaLyy/Aria)
[![FtpComponent](https://img.shields.io/badge/SFtpComponent-3.8.5-orange)](https://github.com/AriaLyy/Aria) [![FtpComponent](https://img.shields.io/badge/SFtpComponent-3.8.6-orange)](https://github.com/AriaLyy/Aria)
[![M3U8Component](https://img.shields.io/badge/M3U8Component-3.8.5-orange)](https://github.com/AriaLyy/Aria) [![M3U8Component](https://img.shields.io/badge/M3U8Component-3.8.6-orange)](https://github.com/AriaLyy/Aria)
```java ```java
implementation 'com.arialyy.aria:core:3.8.5' implementation 'com.arialyy.aria:core:3.8.6'
annotationProcessor 'com.arialyy.aria:compiler:3.8.5' annotationProcessor 'com.arialyy.aria:compiler:3.8.6'
implementation 'com.arialyy.aria:ftpComponent:3.8.5' # 如果需要使用ftp,请增加该组件 implementation 'com.arialyy.aria:ftpComponent:3.8.6' # 如果需要使用ftp,请增加该组件
implementation 'com.arialyy.aria:sftpComponent:3.8.5' # 如果需要使用ftp,请增加该组件 implementation 'com.arialyy.aria:sftpComponent:3.8.6' # 如果需要使用ftp,请增加该组件
implementation 'com.arialyy.aria:m3u8Component:3.8.5' # 如果需要使用m3u8下载功能,请增加该组件 implementation 'com.arialyy.aria:m3u8Component:3.8.6' # 如果需要使用m3u8下载功能,请增加该组件
``` ```
如果你使用的是kotlin,请使用kotlin官方提供的方法配置apt,[kotlin kapt官方配置传送门](https://www.kotlincn.net/docs/reference/kapt.html) 如果你使用的是kotlin,请使用kotlin官方提供的方法配置apt,[kotlin kapt官方配置传送门](https://www.kotlincn.net/docs/reference/kapt.html)
@ -138,11 +138,13 @@ protected void onCreate(Bundle savedInstanceState) {
### 版本日志 ### 版本日志
+ v_3.8.5 (2020/1/18) + v_3.8.6 (2020/2/18)
- fix bug https://github.com/AriaLyy/Aria/issues/599 - fix bug https://github.com/AriaLyy/Aria/issues/608
- 增加密钥url转换器的参数 https://github.com/AriaLyy/Aria/issues/603 - fix bug https://github.com/AriaLyy/Aria/issues/579#issuecomment-586665035
- 增加sftp,文件上传、下载功能,[sftp下载](https://aria.laoyuyu.me/aria_doc/download/sftp_normal.html),[sftp上传](https://aria.laoyuyu.me/aria_doc/upload/sftp_normal.html) - fix bug https://github.com/AriaLyy/Aria/issues/610
- 使用零拷贝技术,优化了合并分块的效率 - fix bug https://github.com/AriaLyy/Aria/issues/614
- 增加文件名适配器(感谢小伙伴[DaveBoy](https://github.com/DaveBoy)的PR)
- 优化异常提示
[更多版本记录](https://github.com/AriaLyy/Aria/blob/master/DEV_LOG.md) [更多版本记录](https://github.com/AriaLyy/Aria/blob/master/DEV_LOG.md)
@ -161,6 +163,11 @@ protected void onCreate(Bundle savedInstanceState) {
``` ```
## 感谢
感谢小伙伴们提供的PR ``^_^`
[DaveBoy](https://github.com/DaveBoy)
[liuxiaowei](https://github.com/liuxiaowei)
## 其他 ## 其他
有任何问题,可以在[issues](https://github.com/AriaLyy/Aria/issues)给我留言反馈。</br> 有任何问题,可以在[issues](https://github.com/AriaLyy/Aria/issues)给我留言反馈。</br>
在提交问题前,希望你已经查看过[wiki](https://aria.laoyuyu.me/aria_doc/)或搜索过[issues](https://github.com/AriaLyy/Aria/issues)。</br> 在提交问题前,希望你已经查看过[wiki](https://aria.laoyuyu.me/aria_doc/)或搜索过[issues](https://github.com/AriaLyy/Aria/issues)。</br>

@ -44,8 +44,8 @@ task clean(type: Delete) {
} }
ext { ext {
versionCode = 385 versionCode = 386
versionName = '3.8.5' versionName = '3.8.6'
userOrg = 'arialyy' userOrg = 'arialyy'
groupId = 'com.arialyy.aria' groupId = 'com.arialyy.aria'
publishVersion = versionName publishVersion = versionName

Loading…
Cancel
Save