laoyuyu 4 years ago
parent 1c0765be02
commit 3679e0cb23
  1. 6
      Aria/src/main/java/com/arialyy/aria/core/common/ProxyHelper.java
  2. 1
      Aria/src/main/java/com/arialyy/aria/core/download/DownloadReceiver.java
  3. 1
      Aria/src/main/java/com/arialyy/aria/core/upload/UploadReceiver.java
  4. 2
      build.gradle

@ -18,11 +18,10 @@ package com.arialyy.aria.core.common;
import com.arialyy.annotations.TaskEnum; import com.arialyy.annotations.TaskEnum;
import com.arialyy.aria.core.download.DownloadGroupTaskListener; import com.arialyy.aria.core.download.DownloadGroupTaskListener;
import com.arialyy.aria.core.download.DownloadTaskListener; import com.arialyy.aria.core.download.DownloadTaskListener;
import com.arialyy.aria.core.scheduler.TaskInternalListenerInterface;
import com.arialyy.aria.core.scheduler.M3U8PeerTaskListener; import com.arialyy.aria.core.scheduler.M3U8PeerTaskListener;
import com.arialyy.aria.core.scheduler.SubTaskListener; import com.arialyy.aria.core.scheduler.SubTaskListener;
import com.arialyy.aria.core.scheduler.TaskInternalListenerInterface;
import com.arialyy.aria.core.upload.UploadTaskListener; import com.arialyy.aria.core.upload.UploadTaskListener;
import java.util.HashSet; import java.util.HashSet;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
@ -81,7 +80,8 @@ public class ProxyHelper {
return result; return result;
} }
result = checkProxyTypeByInterface(clazz); result = checkProxyTypeByInterface(clazz);
if (result != null) { if (result != null && !result.isEmpty()) {
mProxyCache.put(clazz.getName(), result);
return result; return result;
} }
result = checkProxyTypeByProxyClass(clazz); result = checkProxyTypeByProxyClass(clazz);

@ -175,6 +175,7 @@ public class DownloadReceiver extends AbsReceiver {
return; return;
} }
if (obj instanceof TaskInternalListenerInterface){ if (obj instanceof TaskInternalListenerInterface){
ProxyHelper.getInstance().checkProxyType(obj.getClass());
if (obj instanceof DownloadTaskListener){ if (obj instanceof DownloadTaskListener){
TaskSchedulers.getInstance().register(obj, TaskEnum.DOWNLOAD); TaskSchedulers.getInstance().register(obj, TaskEnum.DOWNLOAD);
} }

@ -272,6 +272,7 @@ public class UploadReceiver extends AbsReceiver {
return; return;
} }
if (obj instanceof TaskInternalListenerInterface){ if (obj instanceof TaskInternalListenerInterface){
ProxyHelper.getInstance().checkProxyType(obj.getClass());
if (obj instanceof UploadTaskListener){ if (obj instanceof UploadTaskListener){
TaskSchedulers.getInstance().register(obj, TaskEnum.UPLOAD); TaskSchedulers.getInstance().register(obj, TaskEnum.UPLOAD);
} }

@ -45,7 +45,7 @@ task clean(type: Delete) {
ext { ext {
versionCode = 390 versionCode = 390
versionName = '3.8.16-beta' versionName = '3.8.16-beta-1'
userOrg = 'arialyy' userOrg = 'arialyy'
groupId = 'com.arialyy.aria' groupId = 'com.arialyy.aria'
publishVersion = versionName publishVersion = versionName

Loading…
Cancel
Save