Skip to content
Permalink
Browse files

fix bug #537

  • Loading branch information
AriaLyy committed Nov 28, 2019
1 parent ee5ee6e commit 297cc99f2b01e696c4316c49503480b0ba21b75b
@@ -98,9 +98,6 @@ private AriaManager(Context context) {
}

public static AriaManager getInstance() {
if (INSTANCE == null) {
throw new NullPointerException("请使用AriaManager.init(context)初始化管理器");
}
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)
- fix bug https://github.com/AriaLyy/Aria/issues/526
- fix bug https://github.com/AriaLyy/Aria/issues/533
@@ -44,16 +44,16 @@ Aria有以下特点:

## 引入库
[![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.7.8-blue)](https://github.com/AriaLyy/Aria)
[![Compiler](https://img.shields.io/badge/Compiler-3.7.8-blue)](https://github.com/AriaLyy/Aria)
[![FtpComponent](https://img.shields.io/badge/FtpComponent-3.7.8-orange)](https://github.com/AriaLyy/Aria)
[![M3U8Component](https://img.shields.io/badge/M3U8Component-3.7.8-orange)](https://github.com/AriaLyy/Aria)
[![Core](https://img.shields.io/badge/Core-3.7.9-blue)](https://github.com/AriaLyy/Aria)
[![Compiler](https://img.shields.io/badge/Compiler-3.7.9-blue)](https://github.com/AriaLyy/Aria)
[![FtpComponent](https://img.shields.io/badge/FtpComponent-3.7.9-orange)](https://github.com/AriaLyy/Aria)
[![M3U8Component](https://img.shields.io/badge/M3U8Component-3.7.9-orange)](https://github.com/AriaLyy/Aria)

```java
implementation 'com.arialyy.aria:core:3.7.8'
annotationProcessor 'com.arialyy.aria:compiler:3.7.8'
implementation 'com.arialyy.aria:ftpComponent:3.7.8' # 如果需要使用ftp,请增加该组件
implementation 'com.arialyy.aria:m3u8Component:3.7.8' # 如果需要使用m3u8下载功能,请增加该组件
implementation 'com.arialyy.aria:core:3.7.9'
annotationProcessor 'com.arialyy.aria:compiler:3.7.9'
implementation 'com.arialyy.aria:ftpComponent:3.7.9' # 如果需要使用ftp,请增加该组件
implementation 'com.arialyy.aria:m3u8Component:3.7.9' # 如果需要使用m3u8下载功能,请增加该组件
```
如果出现android support依赖错误,请将 `compile 'com.arialyy.aria:core:<last-version>'`替换为
```
@@ -137,15 +137,9 @@ protected void onCreate(Bundle savedInstanceState) {


### 版本日志
+ v_3.7.8 (2019/11/28)
- 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/535
- 修复ftp无法完成下载的问题
- 修复一个非分块模式下,调用`updateUrl(newUrl)`后无法恢复下载的问题
- 增加立即恢复任务的接口,正常来说,当执行队列满时,调用恢复任务接口,只能将任务放到缓存队列中。如果希望调用恢复接口,马上进入执行队列,需要调用`resume(true)`这个重载方法。
- 增加M3U8加密密钥的下载地址转换器 https://github.com/AriaLyy/Aria/issues/522

+ v_3.7.9 (2019/11/28)
- fix bug https://github.com/AriaLyy/Aria/issues/537

[更多版本记录](https://github.com/AriaLyy/Aria/blob/master/DEV_LOG.md)

## 混淆配置
@@ -72,6 +72,8 @@ dependencies {
implementation project(':M3U8Component')
implementation project(':FtpComponent')
implementation project(path: ':AriaAnnotations')

debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
}
repositories {
mavenCentral()
@@ -34,7 +34,7 @@
super.onCreate();
INSTANCE = this;
AbsFrame.init(this);
Aria.init(this);
//Aria.init(this);
if (BuildConfig.DEBUG) {
//StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
// .detectAll()
@@ -49,6 +49,7 @@
private String mFilePath;
private M3U8LiveModule mModule;
private DownloadEntity mEntity;
private long mTaskId;

@Override
protected void init(Bundle savedInstanceState) {
@@ -63,6 +64,7 @@ protected void init(Bundle savedInstanceState) {
return;
}
mEntity = entity;
mTaskId = mEntity.getId();
getBinding().setStateStr(getString(R.string.start));
getBinding().setUrl(entity.getUrl());
getBinding().setFilePath(entity.getFilePath());
@@ -213,22 +215,23 @@ protected int setLayoutId() {
public void onClick(View view) {
switch (view.getId()) {
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();
} else {
startD();
}
break;
case R.id.cancel:
if (AppUtil.chekEntityValid(mEntity)) {
if (mTaskId != -1){
Aria.download(this).load(mEntity.getId()).cancel(true);
mTaskId = -1;
}
break;
}
}

private void startD() {
Aria.download(M3U8LiveDLoadActivity.this)
mTaskId = Aria.download(M3U8LiveDLoadActivity.this)
.load(mUrl)
.setFilePath(mFilePath, true)
.m3u8LiveOption(getLiveoption())
@@ -44,8 +44,8 @@ task clean(type: Delete) {
}

ext {
versionCode = 378
versionName = '3.7.8'
versionCode = 379
versionName = '3.7.9'
userOrg = 'arialyy'
groupId = 'com.arialyy.aria'
publishVersion = versionName

0 comments on commit 297cc99

Please sign in to comment.
You can’t perform that action at this time.