Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
49e753c
Configuration add request client
Oct 25, 2021
34ec73e
add HttpServerManager
Oct 27, 2021
ca44653
change test case
Nov 4, 2021
14c258f
change get http3 host
Nov 4, 2021
d06f0bf
merge
Nov 4, 2021
f50b492
change config
Nov 4, 2021
ad0b8d3
Merge branch 'develop' into http3
Nov 10, 2021
edbf5c6
change IRequestClient
Nov 10, 2021
fd3aa84
request client add clientid
Nov 10, 2021
9aa6b22
change transaction test case
Nov 10, 2021
9ae1012
change test case
Nov 10, 2021
617f373
change case
Nov 10, 2021
e1da31b
change case
Nov 10, 2021
9da1db8
Merge branch 'develop' of YangSen-qn:qiniu/android-sdk into http3
Nov 15, 2021
4324c80
change case
Nov 15, 2021
335cc21
add http server manager test case
Nov 16, 2021
4bc245e
server config add http3 logic
Nov 16, 2021
8b0ad76
change x-alt-svc parse
Nov 17, 2021
f0af7c5
build.gradle remove publish to local task
Nov 17, 2021
cb44fb8
http3 enable default to false
Nov 18, 2021
ef92a80
optimize request
Nov 18, 2021
d3aa558
chang IRequestClient api
Nov 22, 2021
3885d00
Merge branch 'master' of YangSen-qn:qiniu/android-sdk into http3
Dec 16, 2021
0943ff6
change version to 8.5.0
Dec 16, 2021
5f9aeea
change http3 freeze
Feb 10, 2022
a5266a5
Merge branch 'master' of YangSen-qn:qiniu/android-sdk into http3
Jul 20, 2022
196202b
change gradle
Jul 20, 2022
6f6f07c
change gradle
Jul 20, 2022
e9f6774
optimize use http3
Jul 21, 2022
9948c04
optimize caculate speed & get request server logic
Jul 26, 2022
5192960
optimize network stat update
Jul 26, 2022
df057d0
optimize http version chose logic
Jul 27, 2022
95b9dc8
optimize get upload server
Jul 28, 2022
f43df6a
UploadServerNetworkStatus: change isServerNetworkBetter
Aug 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#Changelog

## 8.5.0(2021-12-16)
* 可自定义 request client
* 增加 http3 相关重试逻辑
* 升级 HappyDns 依赖至 v2.0.0

## 8.4.4 (2022-06-02)
* 处理 Dns 预解析内存问题

Expand All @@ -14,7 +20,6 @@
* 优化
* SystemDns 解析:异步开线程池,降低高并发场景下对内存资源占用。


## 8.4.0(2021-12-07)
* 优化:
* DNS 预解析支持 DoH (DNS over HTTPS)
Expand Down
19 changes: 0 additions & 19 deletions QiNiu_Android.iml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ https://github.com/qiniudemo/qiniu-lab-android

| Qiniu SDK 版本 | 最低 Android版本 | 依赖库版本 |
|------------ |-----------------|------------------------|
| 8.5.0 | Android 4.0+ | okhttp 4+ |
| 8.4.* | Android 4.0+ | okhttp 4+ |
| 8.3.2 | Android 4.0+ | okhttp 4+ |
| 8.3.1 | Android 4.0+ | okhttp 4+ |
Expand All @@ -33,7 +34,7 @@ https://github.com/qiniudemo/qiniu-lab-android
| 7.0.7 | Android 2.2+ | android-async-http 1.4.8 |

### 注意
* 推荐使用最新版:8.4.4
* 推荐使用最新版:8.5.0
* 7.6.2 ~ 8.3.2 AndroidNetwork.getMobileDbm()可以获取手机信号强度,需要如下权限(API>=18时生效)
```
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
Expand Down
5 changes: 3 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import java.util.regex.Matcher
apply plugin: 'com.android.library'

def versionName() {
String config = 'library/src/main/java/com/qiniu/android/common/Constants.java'
String config = getProjectDir().getPath() + '/src/main/java/com/qiniu/android/common/Constants.java'
String fileContents = new File(config).text
Matcher myMatcher = fileContents =~ /VERSION = "(.+)";/
String version = myMatcher[0][1]
Expand Down Expand Up @@ -59,7 +59,8 @@ dependencies {
// implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'org.conscrypt:conscrypt-android:2.2.1'
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.13'

androidTestImplementation 'junit:junit:4.12'
// androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

Expand Down
106 changes: 0 additions & 106 deletions library/library.iml

This file was deleted.

12 changes: 3 additions & 9 deletions library/src/androidTest/java/com/qiniu/android/BaseTest.java
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
package com.qiniu.android;

import android.test.AndroidTestCase;

import com.qiniu.android.utils.LogUtil;

import android.test.AndroidTestCase;

import java.util.Date;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

/**
* Created by yangsen on 2020/5/26
*/
public class BaseTest extends AndroidTestCase {

@Override
protected void setUp() throws Exception {
super.setUp();
LogUtil.enableLog(true);
}
public class BaseTest extends AndroidTestCase{

private long maxWaitTimestamp = 0;

Expand Down
Loading