Merge branch 'master' into v_3.0
This commit is contained in:
@ -23,8 +23,8 @@ dependencies {
|
|||||||
compile fileTree(include: ['*.jar'], dir: 'libs')
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
testCompile 'junit:junit:4.12'
|
testCompile 'junit:junit:4.12'
|
||||||
compile 'com.android.support:appcompat-v7:23.1.1'
|
compile 'com.android.support:appcompat-v7:23.1.1'
|
||||||
// compile project(':AriaCompiler')
|
compile project(':AriaCompiler')
|
||||||
compile project(':AriaAnnotations')
|
// compile project(':AriaAnnotations')
|
||||||
}
|
}
|
||||||
//apply from: 'jcenter.gradle'
|
//apply from: 'jcenter.gradle'
|
||||||
|
|
||||||
|
@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2016 AriaLyy(https://github.com/AriaLyy/Aria)
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
package com.arialyy.aria.core.scheduler;
|
||||||
|
|
||||||
|
import com.arialyy.aria.core.inf.ITask;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by Aria.Lao on 2017/6/7.
|
||||||
|
*/
|
||||||
|
public class AbsSchedulerListener<TASK extends ITask> implements ISchedulerListener<TASK> {
|
||||||
|
@Override public void onPre(TASK task) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override public void onTaskPre(TASK task) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override public void onTaskResume(TASK task) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override public void onTaskStart(TASK task) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override public void onTaskStop(TASK task) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override public void onTaskCancel(TASK task) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override public void onTaskFail(TASK task) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override public void onTaskComplete(TASK task) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override public void onTaskRunning(TASK task) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onNoSupportBreakPoint(TASK task) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setListener(Object obj) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -10,6 +10,7 @@ Aria有以下特点:
|
|||||||
- [一句代码加可以获取当前的下载速度](#常用接口)
|
- [一句代码加可以获取当前的下载速度](#常用接口)
|
||||||
- [一句代码就可以动态设置最大下载数](#代码中设置参数)
|
- [一句代码就可以动态设置最大下载数](#代码中设置参数)
|
||||||
- [通过修改配置文件很容易就能修改下载线程数](#配置文件设置参数)
|
- [通过修改配置文件很容易就能修改下载线程数](#配置文件设置参数)
|
||||||
|
- [优先下载某一个任务](#常用接口)
|
||||||
+ 支持https地址下载
|
+ 支持https地址下载
|
||||||
- 在配置文件中很容易就可以设置CA证书的信息
|
- 在配置文件中很容易就可以设置CA证书的信息
|
||||||
+ 支持300、301、302重定向下载链接下载
|
+ 支持300、301、302重定向下载链接下载
|
||||||
@ -298,7 +299,7 @@ Aria.download(this).load(DOWNLOAD_URL).setDownloadPath(PATH).setHighestPriority(
|
|||||||
***
|
***
|
||||||
|
|
||||||
## 后续版本开发规划
|
## 后续版本开发规划
|
||||||
* ~~下载任务可以设置优先级~~
|
* ~~http、scoket断点上传~~
|
||||||
* ~~实现上传队列调度功能~~
|
* ~~实现上传队列调度功能~~
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user