3.7.1
This commit is contained in:
@@ -20,6 +20,7 @@ import com.arialyy.aria.core.common.AbsNormalTarget;
|
|||||||
import com.arialyy.aria.core.common.HttpOption;
|
import com.arialyy.aria.core.common.HttpOption;
|
||||||
import com.arialyy.aria.core.inf.Suggest;
|
import com.arialyy.aria.core.inf.Suggest;
|
||||||
import com.arialyy.aria.core.wrapper.AbsTaskWrapper;
|
import com.arialyy.aria.core.wrapper.AbsTaskWrapper;
|
||||||
|
import com.arialyy.aria.util.ALog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by lyy on 2017/2/28.
|
* Created by lyy on 2017/2/28.
|
||||||
@@ -57,6 +58,10 @@ public class HttpNormalTarget extends AbsNormalTarget<HttpNormalTarget> {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override public void resume() {
|
||||||
|
ALog.e(TAG, "http上传任务没有恢复功能");
|
||||||
|
}
|
||||||
|
|
||||||
@Override public boolean isRunning() {
|
@Override public boolean isRunning() {
|
||||||
return mConfigHandler.isRunning();
|
return mConfigHandler.isRunning();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,10 @@
|
|||||||
- fix bug https://github.com/AriaLyy/Aria/issues/454
|
- fix bug https://github.com/AriaLyy/Aria/issues/454
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/467
|
- fix bug https://github.com/AriaLyy/Aria/issues/467
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/459
|
- fix bug https://github.com/AriaLyy/Aria/issues/459
|
||||||
|
- fix bug https://github.com/AriaLyy/Aria/issues/487
|
||||||
|
- fix bug https://github.com/AriaLyy/Aria/issues/483
|
||||||
|
- fix bug https://github.com/AriaLyy/Aria/issues/482
|
||||||
|
- fix bug https://github.com/AriaLyy/Aria/issues/473
|
||||||
- 移除隐藏api的反射 https://github.com/AriaLyy/Aria/issues/456
|
- 移除隐藏api的反射 https://github.com/AriaLyy/Aria/issues/456
|
||||||
- 新增ftp免证书登陆功能h ttps://github.com/AriaLyy/Aria/issues/455
|
- 新增ftp免证书登陆功能h ttps://github.com/AriaLyy/Aria/issues/455
|
||||||
- 适配androidX
|
- 适配androidX
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ public class NormalLoader extends AbsLoader {
|
|||||||
((IDLoadListener) mListener).onPostPre(getEntity().getFileSize());
|
((IDLoadListener) mListener).onPostPre(getEntity().getFileSize());
|
||||||
}
|
}
|
||||||
File file = new File(getEntity().getFilePath());
|
File file = new File(getEntity().getFilePath());
|
||||||
if (!file.getParentFile().exists()) {
|
if (file.getParentFile() != null && !file.getParentFile().exists()) {
|
||||||
file.getParentFile().mkdirs();
|
file.getParentFile().mkdirs();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
45
README.md
45
README.md
@@ -43,23 +43,30 @@ Aria有以下特点:
|
|||||||

|

|
||||||
|
|
||||||
## 引入库
|
## 引入库
|
||||||
[](https://bintray.com/arialyy/maven/AriaApi/_latestVersion)
|
[](https://github.com/AriaLyy/Aria/blob/master/LICENSE)
|
||||||
[](https://bintray.com/arialyy/maven/AriaCompiler/_latestVersion)
|
[](https://github.com/AriaLyy/Aria)
|
||||||
|
[](https://github.com/AriaLyy/Aria)
|
||||||
|
[](https://github.com/AriaLyy/Aria)
|
||||||
|
[](https://github.com/AriaLyy/Aria)
|
||||||
|
|
||||||
```java
|
```java
|
||||||
compile 'com.arialyy.aria:aria-core:3.6.6'
|
implementation 'com.arialyy.aria:core:3.7.1'
|
||||||
annotationProcessor 'com.arialyy.aria:aria-compiler:3.6.6'
|
annotationProcessor 'com.arialyy.aria:compiler:3.7.1'
|
||||||
|
implementation 'com.arialyy.aria:ftpComponent:3.7.1' # 如果需要使用ftp,请增加该组件
|
||||||
|
implementation 'com.arialyy.aria:m3u8Component:3.7.1' # 如果需要使用m3u8下载功能,请增加该组件
|
||||||
```
|
```
|
||||||
如果出现android support依赖错误,请将 `compile 'com.arialyy.aria:aria-core:<last-version>'`替换为
|
如果出现android support依赖错误,请将 `compile 'com.arialyy.aria:aria-core:<last-version>'`替换为
|
||||||
```
|
```
|
||||||
api('com.arialyy.aria:aria-core:<last-version>'){
|
api('com.arialyy.aria:aria-core:<last-version>'){
|
||||||
exclude group: 'com.android.support'
|
exclude group: 'androidx.appcompat.app'
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
如果你使用的是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)
|
||||||
|
|
||||||
__⚠️注意:3.5.4以下版本升级时,需要更新[配置文件](https://aria.laoyuyu.me/aria_doc/start/config.html)!!__
|
__⚠️注意:3.5.4以下版本升级时,需要更新[配置文件](https://aria.laoyuyu.me/aria_doc/start/config.html)!!__
|
||||||
|
|
||||||
|
__⚠️注意:3.7 以上版本已经适配了AndroidX__
|
||||||
|
|
||||||
***
|
***
|
||||||
## 使用
|
## 使用
|
||||||
由于Aria涉及到文件和网络的操作,因此需要你在manifest文件中添加以下权限,如果你希望在6.0以上的系统中使用Aria,那么你需要动态向安卓系统申请文件系统读写权限,[如何使用安卓系统权限](https://developer.android.com/training/permissions/index.html?hl=zh-cn)
|
由于Aria涉及到文件和网络的操作,因此需要你在manifest文件中添加以下权限,如果你希望在6.0以上的系统中使用Aria,那么你需要动态向安卓系统申请文件系统读写权限,[如何使用安卓系统权限](https://developer.android.com/training/permissions/index.html?hl=zh-cn)
|
||||||
@@ -126,17 +133,27 @@ protected void onCreate(Bundle savedInstanceState) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### [文档地址](https://aria.laoyuyu.me/aria_doc/)
|
||||||
|
|
||||||
|
|
||||||
### 版本日志
|
### 版本日志
|
||||||
+ v_3.6.6
|
+ v_3.7
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/426
|
- fix bug https://github.com/AriaLyy/Aria/issues/450
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/429
|
- fix bug https://github.com/AriaLyy/Aria/issues/466
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/428
|
- fix bug https://github.com/AriaLyy/Aria/issues/454
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/427
|
- fix bug https://github.com/AriaLyy/Aria/issues/467
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/431
|
- fix bug https://github.com/AriaLyy/Aria/issues/459
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/441
|
- fix bug https://github.com/AriaLyy/Aria/issues/487
|
||||||
- 修复普通下载任务、组合任务共享执行队列、缓存池的问题
|
- fix bug https://github.com/AriaLyy/Aria/issues/483
|
||||||
- 修复组合任务启动失败时,`DownloadGroupEntity`的状态变为执行中的问题
|
- fix bug https://github.com/AriaLyy/Aria/issues/482
|
||||||
|
- fix bug https://github.com/AriaLyy/Aria/issues/473
|
||||||
|
- 移除隐藏api的反射 https://github.com/AriaLyy/Aria/issues/456
|
||||||
|
- 新增ftp免证书登陆功能h ttps://github.com/AriaLyy/Aria/issues/455
|
||||||
|
- 适配androidX
|
||||||
|
- 修复组合任务,恢复下载,会出现进度显示为0的问题
|
||||||
|
- m3u8点播下载新增创建ts索引功能
|
||||||
|
- 修复多任务的m3u8点播下载时,一个任务调用`jumpIndex`,其它m3u8任务也会自动调用`jumpIndex`的问题
|
||||||
|
- 添加权限检查
|
||||||
|
|
||||||
[更多版本记录](https://github.com/AriaLyy/Aria/blob/master/DEV_LOG.md)
|
[更多版本记录](https://github.com/AriaLyy/Aria/blob/master/DEV_LOG.md)
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ task clean(type: Delete) {
|
|||||||
|
|
||||||
ext {
|
ext {
|
||||||
versionCode = 371
|
versionCode = 371
|
||||||
versionName = '3.7_pre_2'
|
versionName = '3.7.1'
|
||||||
userOrg = 'arialyy'
|
userOrg = 'arialyy'
|
||||||
groupId = 'com.arialyy.aria'
|
groupId = 'com.arialyy.aria'
|
||||||
publishVersion = versionName
|
publishVersion = versionName
|
||||||
|
|||||||
Reference in New Issue
Block a user