diff --git a/Aria/src/main/java/com/arialyy/aria/core/command/normal/ResumeAllCmd.java b/Aria/src/main/java/com/arialyy/aria/core/command/normal/ResumeAllCmd.java index 98708c73..b952b205 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/command/normal/ResumeAllCmd.java +++ b/Aria/src/main/java/com/arialyy/aria/core/command/normal/ResumeAllCmd.java @@ -1,6 +1,5 @@ package com.arialyy.aria.core.command.normal; -import android.util.Log; import com.arialyy.aria.core.AriaManager; import com.arialyy.aria.core.download.DownloadGroupTaskEntity; import com.arialyy.aria.core.download.DownloadTaskEntity; @@ -124,7 +123,7 @@ final class ResumeAllCmd extends AbsNormalCmd { */ private void resumeEntity(AbsTaskEntity te) { if (te instanceof DownloadTaskEntity) { - if (te.requestType == AbsTaskEntity.FTP) { + if (te.requestType == AbsTaskEntity.D_FTP || te.requestType == AbsTaskEntity.U_FTP) { te.urlEntity = CommonUtil.getFtpUrlInfo(te.getEntity().getKey()); } mQueue = DownloadTaskQueue.getInstance(); diff --git a/Aria/src/main/java/com/arialyy/aria/core/command/normal/StartCmd.java b/Aria/src/main/java/com/arialyy/aria/core/command/normal/StartCmd.java index ceaca4cf..1a7b3c18 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/command/normal/StartCmd.java +++ b/Aria/src/main/java/com/arialyy/aria/core/command/normal/StartCmd.java @@ -17,7 +17,6 @@ package com.arialyy.aria.core.command.normal; import android.text.TextUtils; -import android.util.Log; import com.arialyy.aria.core.AriaManager; import com.arialyy.aria.core.common.QueueMod; import com.arialyy.aria.core.download.DownloadGroupTaskEntity; @@ -130,7 +129,7 @@ class StartCmd extends AbsNormalCmd { break; case 3: List uEntity = - DbEntity.findDatas(UploadTaskEntity.class, "groupName=? and state=?", "", "3"); + DbEntity.findDatas(UploadTaskEntity.class, "state=?", "3"); if (uEntity != null && !uEntity.isEmpty()) { waitList.addAll(uEntity); } @@ -143,7 +142,7 @@ class StartCmd extends AbsNormalCmd { for (AbsTaskEntity te : waitList) { if (te.getEntity() == null) continue; if (te instanceof DownloadTaskEntity) { - if (te.requestType == AbsTaskEntity.FTP) { + if (te.requestType == AbsTaskEntity.D_FTP || te.requestType == AbsTaskEntity.U_FTP) { te.urlEntity = CommonUtil.getFtpUrlInfo(te.getEntity().getKey()); } mQueue = DownloadTaskQueue.getInstance(); diff --git a/Aria/src/main/java/com/arialyy/aria/core/common/AbsFileer.java b/Aria/src/main/java/com/arialyy/aria/core/common/AbsFileer.java index f22a81f1..616cdf88 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/common/AbsFileer.java +++ b/Aria/src/main/java/com/arialyy/aria/core/common/AbsFileer.java @@ -116,7 +116,7 @@ public abstract class AbsFileer { mContext = AriaManager.APP; mListener = new DownloadGroupListener(this, mOutHandler); switch (taskEntity.requestType) { - case AbsTaskEntity.HTTP: + case AbsTaskEntity.D_HTTP: mUtil = new DownloadGroupUtil(mListener, mTaskEntity); break; - case AbsTaskEntity.FTP_DIR: + case AbsTaskEntity.D_FTP_DIR: mUtil = new FtpDirDownloadUtil(mListener, mTaskEntity); break; } diff --git a/Aria/src/main/java/com/arialyy/aria/core/download/DownloadReceiver.java b/Aria/src/main/java/com/arialyy/aria/core/download/DownloadReceiver.java index 3f08a106..cd2a0c88 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/download/DownloadReceiver.java +++ b/Aria/src/main/java/com/arialyy/aria/core/download/DownloadReceiver.java @@ -68,12 +68,7 @@ public class DownloadReceiver extends AbsReceiver { * @param refreshInfo 是否刷新下载信息 */ public DownloadTarget load(DownloadEntity entity, boolean refreshInfo) { - CheckUtil.checkDownloadUrl(entity.getUrl()); - if (entity.getUrl().startsWith("ftp")) { - ALog.w(TAG, - "使用实体启动FTP下载,如果你的FTP服务器需要登录,那么你需要调用登录的接口,如:Aria.download(this).load(url).login(user, pw).start()"); - return new FtpDownloadTarget(entity, targetName, refreshInfo); - } + CheckUtil.checkDownloadEntity(entity); return new DownloadTarget(entity, targetName, refreshInfo); } @@ -93,7 +88,7 @@ public class DownloadReceiver extends AbsReceiver { * @param refreshInfo 是否刷新下载信息 */ public DownloadTarget load(@NonNull String url, boolean refreshInfo) { - CheckUtil.checkDownloadUrl(url); + CheckUtil.checkUrl(url); return new DownloadTarget(url, targetName, refreshInfo); } @@ -105,6 +100,28 @@ public class DownloadReceiver extends AbsReceiver { return new DownloadGroupTarget(urls, targetName); } + /** + * 使用下载实体执行FTP下载操作 + * + * @param entity 下载实体 + */ + public FtpDownloadTarget loadFtp(DownloadEntity entity) { + return loadFtp(entity, false); + } + + /** + * 使用下载实体执行下载操作 + * + * @param refreshInfo 是否刷新下载信息 + */ + public FtpDownloadTarget loadFtp(DownloadEntity entity, boolean refreshInfo) { + CheckUtil.checkDownloadEntity(entity); + if (!entity.getUrl().startsWith("ftp")) { + throw new IllegalArgumentException("非FTP请求不能使用该方法"); + } + return new FtpDownloadTarget(entity, targetName, refreshInfo); + } + /** * 加载ftp单任务下载地址 */ @@ -118,7 +135,7 @@ public class DownloadReceiver extends AbsReceiver { * @param refreshInfo 是否刷新下载信息 */ public FtpDownloadTarget loadFtp(@NonNull String url, boolean refreshInfo) { - CheckUtil.checkDownloadUrl(url); + CheckUtil.checkUrl(url); return new FtpDownloadTarget(url, targetName, refreshInfo); } @@ -136,7 +153,7 @@ public class DownloadReceiver extends AbsReceiver { * 加载ftp文件夹下载地址 */ public FtpDirDownloadTarget loadFtpDir(@NonNull String dirUrl) { - CheckUtil.checkDownloadUrl(dirUrl); + CheckUtil.checkUrl(dirUrl); return new FtpDirDownloadTarget(dirUrl, targetName); } @@ -192,7 +209,7 @@ public class DownloadReceiver extends AbsReceiver { * 通过下载链接获取下载实体 */ public DownloadEntity getDownloadEntity(String downloadUrl) { - CheckUtil.checkDownloadUrl(downloadUrl); + CheckUtil.checkUrl(downloadUrl); return DbEntity.findFirst(DownloadEntity.class, "url=? and isGroupChild='false'", downloadUrl); } @@ -200,7 +217,7 @@ public class DownloadReceiver extends AbsReceiver { * 通过下载链接获取保存在数据库的下载任务实体 */ public DownloadTaskEntity getDownloadTask(String downloadUrl) { - CheckUtil.checkDownloadUrl(downloadUrl); + CheckUtil.checkUrl(downloadUrl); DownloadEntity entity = getDownloadEntity(downloadUrl); if (entity == null || TextUtils.isEmpty(entity.getDownloadPath())) return null; return DbEntity.findFirst(DownloadTaskEntity.class, "key=? and isGroupTask='false'", diff --git a/Aria/src/main/java/com/arialyy/aria/core/download/FtpDirDownloadTarget.java b/Aria/src/main/java/com/arialyy/aria/core/download/FtpDirDownloadTarget.java index 26c9e4c6..8cb5fcb2 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/download/FtpDirDownloadTarget.java +++ b/Aria/src/main/java/com/arialyy/aria/core/download/FtpDirDownloadTarget.java @@ -39,7 +39,7 @@ public class FtpDirDownloadTarget if (mTaskEntity == null) { mTaskEntity = TEManager.getInstance().createTEntity(DownloadGroupTaskEntity.class, key); } - mTaskEntity.requestType = AbsTaskEntity.FTP_DIR; + mTaskEntity.requestType = AbsTaskEntity.D_FTP_DIR; mEntity = mTaskEntity.entity; } diff --git a/Aria/src/main/java/com/arialyy/aria/core/download/FtpDownloadTarget.java b/Aria/src/main/java/com/arialyy/aria/core/download/FtpDownloadTarget.java index 9d9a9927..ccc18455 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/download/FtpDownloadTarget.java +++ b/Aria/src/main/java/com/arialyy/aria/core/download/FtpDownloadTarget.java @@ -48,7 +48,7 @@ public class FtpDownloadTarget extends DownloadTarget { mEntity.setFileName(url.substring(lastIndex + 1, url.length())); mTaskEntity.urlEntity = CommonUtil.getFtpUrlInfo(url); mTaskEntity.refreshInfo = refreshInfo; - mTaskEntity.requestType = AbsTaskEntity.FTP; + mTaskEntity.requestType = AbsTaskEntity.D_FTP; } /** diff --git a/Aria/src/main/java/com/arialyy/aria/core/download/downloader/Downloader.java b/Aria/src/main/java/com/arialyy/aria/core/download/downloader/Downloader.java index 9d0c966b..145798b8 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/download/downloader/Downloader.java +++ b/Aria/src/main/java/com/arialyy/aria/core/download/downloader/Downloader.java @@ -91,10 +91,10 @@ class Downloader extends AbsFileer { @Override protected AbsThreadTask selectThreadTask(SubThreadConfig config) { switch (mTaskEntity.requestType) { - case AbsTaskEntity.FTP: - case AbsTaskEntity.FTP_DIR: + case AbsTaskEntity.D_FTP: + case AbsTaskEntity.D_FTP_DIR: return new FtpThreadTask(mConstance, (IDownloadListener) mListener, config); - case AbsTaskEntity.HTTP: + case AbsTaskEntity.D_HTTP: return new HttpThreadTask(mConstance, (IDownloadListener) mListener, config); } return null; diff --git a/Aria/src/main/java/com/arialyy/aria/core/download/downloader/FtpDirDownloadUtil.java b/Aria/src/main/java/com/arialyy/aria/core/download/downloader/FtpDirDownloadUtil.java index c939d53e..cba16bd5 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/download/downloader/FtpDirDownloadUtil.java +++ b/Aria/src/main/java/com/arialyy/aria/core/download/downloader/FtpDirDownloadUtil.java @@ -55,7 +55,7 @@ public class FtpDirDownloadUtil extends AbsGroupUtil { @Override public void onFail(String url, String errorMsg, boolean needRetry) { mListener.onFail(needRetry); - ErrorHelp.saveError("FTP_DIR", mGTEntity.getEntity(), "", errorMsg); + ErrorHelp.saveError("D_FTP_DIR", mGTEntity.getEntity(), "", errorMsg); } }).start(); } diff --git a/Aria/src/main/java/com/arialyy/aria/core/download/downloader/FtpThreadTask.java b/Aria/src/main/java/com/arialyy/aria/core/download/downloader/FtpThreadTask.java index b6de6697..cc34b746 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/download/downloader/FtpThreadTask.java +++ b/Aria/src/main/java/com/arialyy/aria/core/download/downloader/FtpThreadTask.java @@ -76,8 +76,9 @@ class FtpThreadTask extends AbsFtpThreadTask int len; while ((len = is.read(buffer)) != -1) { - if (STATE.isCancel) break; - if (STATE.isStop) break; + if (STATE.isCancel || STATE.isStop){ + break; + } if (mSleepTime > 0) Thread.sleep(mSleepTime); if (mChildCurrentLocation + len >= mConfig.END_LOCATION) { len = (int) (mConfig.END_LOCATION - mChildCurrentLocation); diff --git a/Aria/src/main/java/com/arialyy/aria/core/download/downloader/SimpleDownloadUtil.java b/Aria/src/main/java/com/arialyy/aria/core/download/downloader/SimpleDownloadUtil.java index a9d1600f..ee99b3a5 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/download/downloader/SimpleDownloadUtil.java +++ b/Aria/src/main/java/com/arialyy/aria/core/download/downloader/SimpleDownloadUtil.java @@ -25,7 +25,7 @@ import com.arialyy.aria.util.ErrorHelp; /** * Created by lyy on 2015/8/25. - * HTTP\FTP单任务下载工具 + * D_HTTP\FTP单任务下载工具 */ public class SimpleDownloadUtil implements IUtil, Runnable { private static final String TAG = "SimpleDownloadUtil"; @@ -92,7 +92,7 @@ public class SimpleDownloadUtil implements IUtil, Runnable { mListener.onPre(); if (mTaskEntity.getEntity().getFileSize() <= 1 || mTaskEntity.refreshInfo - || mTaskEntity.requestType == AbsTaskEntity.FTP) { + || mTaskEntity.requestType == AbsTaskEntity.D_FTP) { new Thread(createInfoThread()).start(); } else { mDownloader.start(); @@ -104,7 +104,7 @@ public class SimpleDownloadUtil implements IUtil, Runnable { */ private Runnable createInfoThread() { switch (mTaskEntity.requestType) { - case AbsTaskEntity.FTP: + case AbsTaskEntity.D_FTP: return new FtpFileInfoThread(mTaskEntity, new OnFileInfoCallback() { @Override public void onComplete(String url, int code) { mDownloader.start(); @@ -114,7 +114,7 @@ public class SimpleDownloadUtil implements IUtil, Runnable { failDownload(errorMsg, needRetry); } }); - case AbsTaskEntity.HTTP: + case AbsTaskEntity.D_HTTP: return new HttpFileInfoThread(mTaskEntity, new OnFileInfoCallback() { @Override public void onComplete(String url, int code) { mDownloader.start(); diff --git a/Aria/src/main/java/com/arialyy/aria/core/inf/AbsEntity.java b/Aria/src/main/java/com/arialyy/aria/core/inf/AbsEntity.java index 8d0a9a21..cfb731bc 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/inf/AbsEntity.java +++ b/Aria/src/main/java/com/arialyy/aria/core/inf/AbsEntity.java @@ -19,8 +19,6 @@ import android.os.Parcel; import android.os.Parcelable; import com.arialyy.aria.orm.DbEntity; import com.arialyy.aria.orm.Ignore; -import java.util.LinkedList; -import java.util.List; /** * Created by AriaL on 2017/6/29. @@ -162,6 +160,14 @@ public abstract class AbsEntity extends DbEntity implements IEntity, Parcelable */ public abstract String getKey(); + /** + * 实体驱动的下载任务类型 + * + * @return {@link AbsTaskEntity#D_FTP}、{@link AbsTaskEntity#D_FTP_DIR}、{@link + * AbsTaskEntity#U_HTTP}... + */ + public abstract int getTaskType(); + public AbsEntity() { } diff --git a/Aria/src/main/java/com/arialyy/aria/core/inf/AbsTaskEntity.java b/Aria/src/main/java/com/arialyy/aria/core/inf/AbsTaskEntity.java index 359e5b43..677cc509 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/inf/AbsTaskEntity.java +++ b/Aria/src/main/java/com/arialyy/aria/core/inf/AbsTaskEntity.java @@ -29,17 +29,30 @@ import java.util.Map; */ public abstract class AbsTaskEntity extends DbEntity { /** - * HTTP下载 + * HTTP单任务载 */ - public static final int HTTP = 0x11; + public static final int D_HTTP = 0x11; /** - * FTP当文件下载 + * HTTP任务组下载 */ - public static final int FTP = 0x12; + public static final int DG_HTTP = 0x12; + /** + * HTTP单文件上传 + */ + public static final int U_HTTP = 0xA1; + + /** + * FTP单文件下载 + */ + public static final int D_FTP = 0x13; /** * FTP文件夹下载,为避免登录过多,子任务由单线程进行处理 */ - public static final int FTP_DIR = 0x13; + public static final int D_FTP_DIR = 0x14; + /** + * FTP单文件上传 + */ + public static final int U_FTP = 0xA2; /** * Task实体对应的key @@ -68,9 +81,9 @@ public abstract class AbsTaskEntity extends DbEntity { /** * 请求类型 - * {@link AbsTaskEntity#HTTP}、{@link AbsTaskEntity#FTP}、{@link AbsTaskEntity#FTP_DIR} + * {@link AbsTaskEntity#D_HTTP}、{@link AbsTaskEntity#D_FTP}、{@link AbsTaskEntity#D_FTP_DIR}。。。 */ - public int requestType = HTTP; + public int requestType = D_HTTP; /** * http 请求头 diff --git a/Aria/src/main/java/com/arialyy/aria/core/inf/AbsUploadTarget.java b/Aria/src/main/java/com/arialyy/aria/core/inf/AbsUploadTarget.java index 74150386..6f19d2b1 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/inf/AbsUploadTarget.java +++ b/Aria/src/main/java/com/arialyy/aria/core/inf/AbsUploadTarget.java @@ -21,9 +21,6 @@ import com.arialyy.aria.core.upload.UploadEntity; import com.arialyy.aria.core.upload.UploadTask; import com.arialyy.aria.core.upload.UploadTaskEntity; import com.arialyy.aria.util.CheckUtil; -import com.arialyy.aria.util.CommonUtil; -import com.arialyy.aria.util.Regular; -import java.util.regex.Pattern; /** * Created by AriaL on 2017/6/29. @@ -38,7 +35,7 @@ public abstract class AbsUploadTarget { } private void initPath() throws UnsupportedEncodingException { - String url = mEntity.getUrl(); - String temp = url.substring(url.indexOf(port) + port.length(), url.length()); - dir = new String(temp.getBytes(charSet), SERVER_CHARSET); - remotePath = new String((temp + "/" + mEntity.getFileName()).getBytes(charSet), SERVER_CHARSET); + dir = new String(mTaskEntity.urlEntity.remotePath.getBytes(charSet), SERVER_CHARSET); + remotePath = new String( + (mTaskEntity.urlEntity.remotePath + "/" + mEntity.getFileName()).getBytes(charSet), + SERVER_CHARSET); } private void upload(final FTPClient client, final BufferedRandomAccessFile bis) diff --git a/Aria/src/main/java/com/arialyy/aria/core/upload/uploader/Uploader.java b/Aria/src/main/java/com/arialyy/aria/core/upload/uploader/Uploader.java index 8e1ff443..ecfa041a 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/upload/uploader/Uploader.java +++ b/Aria/src/main/java/com/arialyy/aria/core/upload/uploader/Uploader.java @@ -72,10 +72,9 @@ class Uploader extends AbsFileer { @Override protected AbsThreadTask selectThreadTask(SubThreadConfig config) { switch (mTaskEntity.requestType) { - case AbsTaskEntity.FTP: - case AbsTaskEntity.FTP_DIR: + case AbsTaskEntity.U_FTP: return new FtpThreadTask(mConstance, mListener, config); - case AbsTaskEntity.HTTP: + case AbsTaskEntity.U_HTTP: return new HttpThreadTask(mConstance, (IUploadListener) mListener, config); } return null; diff --git a/Aria/src/main/java/com/arialyy/aria/util/CheckUtil.java b/Aria/src/main/java/com/arialyy/aria/util/CheckUtil.java index 2f2d7353..93eed2b9 100644 --- a/Aria/src/main/java/com/arialyy/aria/util/CheckUtil.java +++ b/Aria/src/main/java/com/arialyy/aria/util/CheckUtil.java @@ -71,19 +71,32 @@ public class CheckUtil { } /** - * 检测下载链接是否为null + * 检查下载实体 */ - public static void checkDownloadUrl(String downloadUrl) { - if (TextUtils.isEmpty(downloadUrl)) throw new IllegalArgumentException("下载链接不能为null"); + public static void checkDownloadEntity(DownloadEntity entity) { + checkUrl(entity.getUrl()); + checkPath(entity.getDownloadPath()); } /** * 检测下载链接是否为null */ - public static void checkUploadUrl(String downloadUrl) { - if (TextUtils.isEmpty(downloadUrl)) throw new IllegalArgumentException("上传地址不能为null"); + public static void checkPath(String path) { + if (TextUtils.isEmpty(path)) { + throw new IllegalArgumentException("保存路径不能为null"); + } } + /** + * 检测下载链接是否为null + */ + public static void checkUrl(String url) { + if (TextUtils.isEmpty(url)) { + throw new IllegalArgumentException("下载链接不能为null"); + } else if (!url.startsWith("http") && !url.startsWith("ftp")) { + throw new IllegalArgumentException("url错误"); + } + } /** * 检测下载链接组是否为null @@ -107,9 +120,13 @@ public class CheckUtil { * 检测上传地址是否为null */ public static void checkUploadPath(String uploadPath) { - if (TextUtils.isEmpty(uploadPath)) throw new IllegalArgumentException("上传地址不能为null"); + if (TextUtils.isEmpty(uploadPath)) { + throw new IllegalArgumentException("上传地址不能为null"); + } File file = new File(uploadPath); - if (!file.exists()) throw new IllegalArgumentException("上传文件不存在"); + if (!file.exists()) { + throw new IllegalArgumentException("上传文件不存在"); + } } /** diff --git a/README.md b/README.md index cd4069e6..cffa3b82 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,10 @@ Aria有以下特点: [![Download](https://api.bintray.com/packages/arialyy/maven/AriaApi/images/download.svg)](https://bintray.com/arialyy/maven/AriaApi/_latestVersion) [![Download](https://api.bintray.com/packages/arialyy/maven/AriaCompiler/images/download.svg)](https://bintray.com/arialyy/maven/AriaCompiler/_latestVersion) ```java -compile 'com.arialyy.aria:aria-core:3.3.5' -annotationProcessor 'com.arialyy.aria:aria-compiler:3.3.5' +compile 'com.arialyy.aria:aria-core:3.3.6' +annotationProcessor 'com.arialyy.aria:aria-compiler:3.3.6' ``` +如果你使用的是kotlin,请使用kotlin官方提供的方法配置apt,[kotlin kapt官方配置传送门](https://www.kotlincn.net/docs/reference/kapt.html) *** ## 使用 diff --git a/app/src/main/java/com/arialyy/simple/download/FtpDownloadActivity.java b/app/src/main/java/com/arialyy/simple/download/FtpDownloadActivity.java index 5232e2aa..a1b70935 100644 --- a/app/src/main/java/com/arialyy/simple/download/FtpDownloadActivity.java +++ b/app/src/main/java/com/arialyy/simple/download/FtpDownloadActivity.java @@ -38,8 +38,8 @@ public class FtpDownloadActivity extends BaseActivity { private final String FILE_PATH = "/mnt/sdcard/Download/me.jpg"; - private final String URL = "ftp://172.18.104.49:21/upload/测试"; + private final String URL = "ftp://172.18.104.65:21/upload/测试"; @Override protected void init(Bundle savedInstanceState) { - setTile("FTP 文件上传"); + setTile("D_FTP 文件上传"); super.init(savedInstanceState); Aria.upload(this).register(); UploadEntity entity = Aria.upload(this).getUploadEntity(FILE_PATH); diff --git a/app/src/main/java/com/arialyy/simple/upload/HttpUploadActivity.java b/app/src/main/java/com/arialyy/simple/upload/HttpUploadActivity.java index 73d782db..6485ed54 100644 --- a/app/src/main/java/com/arialyy/simple/upload/HttpUploadActivity.java +++ b/app/src/main/java/com/arialyy/simple/upload/HttpUploadActivity.java @@ -42,7 +42,7 @@ public class HttpUploadActivity extends BaseActivity { } @Override protected void init(Bundle savedInstanceState) { - setTile("HTTP 上传"); + setTile("D_HTTP 上传"); super.init(savedInstanceState); Aria.upload(this).register(); } diff --git a/build.gradle b/build.gradle index 7b0671ce..dceeba05 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,7 @@ task clean(type: Delete) { ext { userOrg = 'arialyy' groupId = 'com.arialyy.aria' - publishVersion = '3.3.6_dev_2' + publishVersion = '3.3.6' // publishVersion = '1.0.3' //FTP插件 repoName='maven' desc = 'android 下载框架'