Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91daecd039 | ||
|
|
297cc99f2b | ||
|
|
f5f8e9b528 | ||
|
|
94c3e8bb58 |
39
.github/ISSUE_TEMPLATE/Custom.md
vendored
39
.github/ISSUE_TEMPLATE/Custom.md
vendored
@@ -1,35 +1,26 @@
|
|||||||
---
|
---
|
||||||
name: 问题描述
|
name: 问题描述
|
||||||
about: 请详细描述你遇到的问题
|
about: 提交问题前,请先阅读文档和搜索issue
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- 请详细描述以下信息,即使是一个简单的bug,没有充足的信息,作者却需要花费大量的时间去查找可能的原因!! -->
|
<!-- 提交问题前,请先阅读文档和搜索相应问题的issue -->
|
||||||
|
|
||||||
## 预期行为
|
|
||||||
|
|
||||||
|
|
||||||
## 当前行为
|
|
||||||
|
|
||||||
|
|
||||||
## 可能的解决方案
|
|
||||||
<!-- 不是强制性的,针对该错误的修复/原因的建议-->
|
|
||||||
|
|
||||||
|
|
||||||
## 重现步骤
|
|
||||||
<!-- 请提供明确的步骤 -->
|
|
||||||
|
|
||||||
1.
|
|
||||||
2.
|
|
||||||
3.
|
|
||||||
4.
|
|
||||||
|
|
||||||
|
|
||||||
## 错误日志
|
|
||||||
|
|
||||||
|
|
||||||
## 版本
|
## 版本
|
||||||
* 框架版本
|
* 框架版本
|
||||||
|
|
||||||
* 系统版本
|
* 系统版本
|
||||||
|
|
||||||
|
## 错误日志
|
||||||
|
<!-- 请提供详细的错误日志 -->
|
||||||
|
|
||||||
|
|
||||||
|
## 重现步骤
|
||||||
|
<!-- 请提供明确的步骤 -->
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
3.
|
||||||
|
4.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -98,9 +98,6 @@ import java.util.concurrent.ConcurrentHashMap;
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static AriaManager getInstance() {
|
public static AriaManager getInstance() {
|
||||||
if (INSTANCE == null) {
|
|
||||||
throw new NullPointerException("请使用AriaManager.init(context)初始化管理器");
|
|
||||||
}
|
|
||||||
return INSTANCE;
|
return INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
## 开发日志
|
## 开发日志
|
||||||
|
+ v_3.7.9 (2019/11/28)
|
||||||
|
- fix bug https://github.com/AriaLyy/Aria/issues/537
|
||||||
+ v_3.7.8 (2019/11/28)
|
+ v_3.7.8 (2019/11/28)
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/526
|
- fix bug https://github.com/AriaLyy/Aria/issues/526
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/533
|
- fix bug https://github.com/AriaLyy/Aria/issues/533
|
||||||
|
|||||||
26
README.md
26
README.md
@@ -44,16 +44,16 @@ Aria有以下特点:
|
|||||||
|
|
||||||
## 引入库
|
## 引入库
|
||||||
[](https://github.com/AriaLyy/Aria/blob/master/LICENSE)
|
[](https://github.com/AriaLyy/Aria/blob/master/LICENSE)
|
||||||
[](https://github.com/AriaLyy/Aria)
|
[](https://github.com/AriaLyy/Aria)
|
||||||
[](https://github.com/AriaLyy/Aria)
|
[](https://github.com/AriaLyy/Aria)
|
||||||
[](https://github.com/AriaLyy/Aria)
|
[](https://github.com/AriaLyy/Aria)
|
||||||
[](https://github.com/AriaLyy/Aria)
|
[](https://github.com/AriaLyy/Aria)
|
||||||
|
|
||||||
```java
|
```java
|
||||||
implementation 'com.arialyy.aria:core:3.7.8'
|
implementation 'com.arialyy.aria:core:3.7.9'
|
||||||
annotationProcessor 'com.arialyy.aria:compiler:3.7.8'
|
annotationProcessor 'com.arialyy.aria:compiler:3.7.9'
|
||||||
implementation 'com.arialyy.aria:ftpComponent:3.7.8' # 如果需要使用ftp,请增加该组件
|
implementation 'com.arialyy.aria:ftpComponent:3.7.9' # 如果需要使用ftp,请增加该组件
|
||||||
implementation 'com.arialyy.aria:m3u8Component:3.7.8' # 如果需要使用m3u8下载功能,请增加该组件
|
implementation 'com.arialyy.aria:m3u8Component:3.7.9' # 如果需要使用m3u8下载功能,请增加该组件
|
||||||
```
|
```
|
||||||
如果出现android support依赖错误,请将 `compile 'com.arialyy.aria:core:<last-version>'`替换为
|
如果出现android support依赖错误,请将 `compile 'com.arialyy.aria:core:<last-version>'`替换为
|
||||||
```
|
```
|
||||||
@@ -137,14 +137,8 @@ protected void onCreate(Bundle savedInstanceState) {
|
|||||||
|
|
||||||
|
|
||||||
### 版本日志
|
### 版本日志
|
||||||
+ v_3.7.8 (2019/11/28)
|
+ v_3.7.9 (2019/11/28)
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/526
|
- fix bug https://github.com/AriaLyy/Aria/issues/537
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/533
|
|
||||||
- fix bug https://github.com/AriaLyy/Aria/issues/535
|
|
||||||
- 修复ftp无法完成下载的问题
|
|
||||||
- 修复一个非分块模式下,调用`updateUrl(newUrl)`后无法恢复下载的问题
|
|
||||||
- 增加立即恢复任务的接口,正常来说,当执行队列满时,调用恢复任务接口,只能将任务放到缓存队列中。如果希望调用恢复接口,马上进入执行队列,需要调用`resume(true)`这个重载方法。
|
|
||||||
- 增加M3U8加密密钥的下载地址转换器 https://github.com/AriaLyy/Aria/issues/522
|
|
||||||
|
|
||||||
[更多版本记录](https://github.com/AriaLyy/Aria/blob/master/DEV_LOG.md)
|
[更多版本记录](https://github.com/AriaLyy/Aria/blob/master/DEV_LOG.md)
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,8 @@ dependencies {
|
|||||||
implementation project(':M3U8Component')
|
implementation project(':M3U8Component')
|
||||||
implementation project(':FtpComponent')
|
implementation project(':FtpComponent')
|
||||||
implementation project(path: ':AriaAnnotations')
|
implementation project(path: ':AriaAnnotations')
|
||||||
|
|
||||||
|
debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class BaseApplication extends Application {
|
|||||||
super.onCreate();
|
super.onCreate();
|
||||||
INSTANCE = this;
|
INSTANCE = this;
|
||||||
AbsFrame.init(this);
|
AbsFrame.init(this);
|
||||||
Aria.init(this);
|
//Aria.init(this);
|
||||||
if (BuildConfig.DEBUG) {
|
if (BuildConfig.DEBUG) {
|
||||||
//StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
|
//StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
|
||||||
// .detectAll()
|
// .detectAll()
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ public class M3U8LiveDLoadActivity extends BaseActivity<ActivityM3u8LiveBinding>
|
|||||||
private String mFilePath;
|
private String mFilePath;
|
||||||
private M3U8LiveModule mModule;
|
private M3U8LiveModule mModule;
|
||||||
private DownloadEntity mEntity;
|
private DownloadEntity mEntity;
|
||||||
|
private long mTaskId;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void init(Bundle savedInstanceState) {
|
protected void init(Bundle savedInstanceState) {
|
||||||
@@ -63,6 +64,7 @@ public class M3U8LiveDLoadActivity extends BaseActivity<ActivityM3u8LiveBinding>
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mEntity = entity;
|
mEntity = entity;
|
||||||
|
mTaskId = mEntity.getId();
|
||||||
getBinding().setStateStr(getString(R.string.start));
|
getBinding().setStateStr(getString(R.string.start));
|
||||||
getBinding().setUrl(entity.getUrl());
|
getBinding().setUrl(entity.getUrl());
|
||||||
getBinding().setFilePath(entity.getFilePath());
|
getBinding().setFilePath(entity.getFilePath());
|
||||||
@@ -213,22 +215,23 @@ public class M3U8LiveDLoadActivity extends BaseActivity<ActivityM3u8LiveBinding>
|
|||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
switch (view.getId()) {
|
switch (view.getId()) {
|
||||||
case R.id.start:
|
case R.id.start:
|
||||||
if (Aria.download(this).load(mEntity.getId()).isRunning()) {
|
if (Aria.download(this).load(mTaskId).isRunning()) {
|
||||||
Aria.download(this).load(mEntity.getId()).stop();
|
Aria.download(this).load(mEntity.getId()).stop();
|
||||||
} else {
|
} else {
|
||||||
startD();
|
startD();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case R.id.cancel:
|
case R.id.cancel:
|
||||||
if (AppUtil.chekEntityValid(mEntity)) {
|
if (mTaskId != -1){
|
||||||
Aria.download(this).load(mEntity.getId()).cancel(true);
|
Aria.download(this).load(mEntity.getId()).cancel(true);
|
||||||
|
mTaskId = -1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startD() {
|
private void startD() {
|
||||||
Aria.download(M3U8LiveDLoadActivity.this)
|
mTaskId = Aria.download(M3U8LiveDLoadActivity.this)
|
||||||
.load(mUrl)
|
.load(mUrl)
|
||||||
.setFilePath(mFilePath, true)
|
.setFilePath(mFilePath, true)
|
||||||
.m3u8LiveOption(getLiveoption())
|
.m3u8LiveOption(getLiveoption())
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ task clean(type: Delete) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
versionCode = 378
|
versionCode = 379
|
||||||
versionName = '3.7.8'
|
versionName = '3.7.9'
|
||||||
userOrg = 'arialyy'
|
userOrg = 'arialyy'
|
||||||
groupId = 'com.arialyy.aria'
|
groupId = 'com.arialyy.aria'
|
||||||
publishVersion = versionName
|
publishVersion = versionName
|
||||||
|
|||||||
Reference in New Issue
Block a user