From 53559ac1dbda32a9a4420eeed134cb7fb091cd42 Mon Sep 17 00:00:00 2001 From: AriaLyy <511455842@qq.com> Date: Thu, 12 Jan 2017 11:12:26 +0800 Subject: [PATCH 1/2] readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8ad1b810..2e061261 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,7 @@ Aria支持https下载,如果你希望使用自己的ca证书,那么你需要 ### https证书配置 + 将你的证书导入`assets`目录 + 调用以下代码配置ca证书相关信息 + ```java /** * 设置CA证书信息 From 8de93e93d6180871d61a4f7dc9d7c9faf487046d Mon Sep 17 00:00:00 2001 From: AriaLyy <511455842@qq.com> Date: Thu, 12 Jan 2017 11:21:08 +0800 Subject: [PATCH 2/2] bug fix --- Aria/src/main/java/com/arialyy/aria/util/SSLContextUtil.java | 4 ++++ README.md | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Aria/src/main/java/com/arialyy/aria/util/SSLContextUtil.java b/Aria/src/main/java/com/arialyy/aria/util/SSLContextUtil.java index 6ab8f3dc..b17da02e 100644 --- a/Aria/src/main/java/com/arialyy/aria/util/SSLContextUtil.java +++ b/Aria/src/main/java/com/arialyy/aria/util/SSLContextUtil.java @@ -1,5 +1,6 @@ package com.arialyy.aria.util; +import android.text.TextUtils; import com.arialyy.aria.core.DownloadManager; import java.io.BufferedInputStream; import java.io.FileInputStream; @@ -37,6 +38,9 @@ public class SSLContextUtil { * @param caPath 保存在assets目录下的CA证书完整路径 */ public static SSLContext getSSLContext(String caAlias, String caPath) { + if (TextUtils.isEmpty(caAlias) || TextUtils.isEmpty(caPath)){ + return null; + } // Load CAs from an InputStream // (could be from a resource or ByteArrayInputStream or ...) CertificateFactory cf = null; diff --git a/README.md b/README.md index 2e061261..ddc19c92 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Aria,致力于让下载傻瓜化
## 下载 [![Download](https://api.bintray.com/packages/arialyy/maven/Aria/images/download.svg)](https://bintray.com/arialyy/maven/Aria/_latestVersion)
```java -compile 'com.arialyy.aria:Aria:2.3.9' +compile 'com.arialyy.aria:Aria:2.4.0' ``` ## 示例 @@ -134,7 +134,7 @@ Aria支持https下载,如果你希望使用自己的ca证书,那么你需要 *** ## 开发日志 - + v_2.3.9 支持https链接下载 + + v_2.4.0 支持https链接下载 + v_2.3.8 修复数据错乱的bug、添加fragment支持 + v_2.3.6 添加dialog、popupWindow支持 + v_2.3.3