Skip to content

Commit 7f69934

Browse files
author
jordanqin
committed
update qcloud sdk to 1.5.63
1 parent cffad67 commit 7f69934

File tree

10 files changed

+37
-6
lines changed

10 files changed

+37
-6
lines changed

QCloudFoundation/foundation/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
minSdkVersion 15
88
targetSdkVersion 28
99

10-
versionCode 10563
11-
versionName "1.5.63"
10+
versionCode 10564
11+
versionName "1.5.64"
1212

1313
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1414

QCloudFoundation/foundation/src/main/java/com/tencent/qcloud/core/http/interceptor/TrafficControlInterceptor.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,10 @@ public Response intercept(Chain chain) throws IOException {
206206
}
207207
QCloudLogger.i(HTTP_LOG_TAG, " %s begin to execute", request);
208208
IOException e;
209+
Response response = null;
209210
try {
210211
long startNs = System.nanoTime();
211-
Response response = processRequest(chain, request);
212+
response = processRequest(chain, request);
212213
// because we want to calculate the whole task duration, including downloading procedure,
213214
// we put download operation here
214215
if (task.isDownloadTask()) {
@@ -242,6 +243,10 @@ public Response intercept(Chain chain) throws IOException {
242243
strategy.reportException(request, e);
243244
}
244245
}
246+
//解决okhttp 3.14 以上版本报错 cannot make a new request because the previous response is still open: please call response.close()
247+
if (response != null && response.body() != null) {
248+
response.close();
249+
}
245250
throw e;
246251
}
247252

QCloudFoundation/qcloud-track/consumer-rules.pro

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,30 @@
33
# beacon
44
-keep class com.tencent**qimei.** { *;}
55
-keep class com.tencent.qmsp.oaid2.** {*;}
6-
-keep class com.tencent.beacon.** { *;}
6+
-keep class com.tencent.beacon.** { *;}
7+
8+
# R8
9+
-dontwarn com.tencent.beacon.event.open.BeaconConfig$Builder
10+
-dontwarn com.tencent.beacon.event.open.BeaconConfig
11+
-dontwarn com.tencent.beacon.event.open.BeaconEvent$Builder
12+
-dontwarn com.tencent.beacon.event.open.BeaconEvent
13+
-dontwarn com.tencent.beacon.event.open.BeaconReport
14+
-dontwarn com.tencent.beacon.event.open.EventResult
15+
-dontwarn com.tencent.beacon.event.open.EventType
16+
17+
-dontwarn com.tencent.qimei.sdk.IQimeiSDK
18+
-dontwarn com.tencent.qimei.sdk.QimeiSDK
19+
-dontwarn com.tencent.qimei.strategy.terminal.ITerminalStrategy
20+
-dontwarn com.tencent.qimei.codez.FalconSdk
21+
-dontwarn com.tencent.qimei.codez.IFalconSdk
22+
-dontwarn com.tencent.qimei.codez.shell.UserInfoType
23+
-dontwarn com.tencent.smtt.export.external.extension.interfaces.IX5WebViewExtension
24+
-dontwarn com.tencent.smtt.sdk.WebSettings
25+
-dontwarn com.tencent.smtt.sdk.WebView
26+
-dontwarn com.tencent.smtt.sdk.WebViewClient
27+
28+
-dontwarn com.tencentcloudapi.cls.android.producer.AsyncProducerClient
29+
-dontwarn com.tencentcloudapi.cls.android.producer.AsyncProducerConfig
30+
-dontwarn com.tencentcloudapi.cls.android.producer.Callback
31+
-dontwarn com.tencentcloudapi.cls.android.producer.common.LogItem
32+
-dontwarn com.tencentcloudapi.cls.android.producer.errors.ProducerException
Binary file not shown.
Binary file not shown.
-1.15 KB
Binary file not shown.
1.13 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

QCloudFoundation/qcloud-track/src/androidTest/java/com/tencent/qcloud/track/ClsCosDataInputTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void init() {
3535

3636
ClsTrackService clsTrackService = new ClsTrackService();
3737
// clsTrackService.init(appContext, "9ab664b4-f657-4ef9-8b8c-305b819e477d", "ap-guangzhou.cls.tencentcs.com");
38-
clsTrackService.init(appContext, "f8140102-7b5b-4f50-9667-4611a2e23aea", "ap-guangzhou.cls.tencentcs.com");
38+
clsTrackService.init(appContext, "d4bb2a4f-99a0-4b42-960b-87249b0f6c33", "ap-guangzhou.cls.tencentcs.com");
3939
// 临时秘钥
4040
// clsTrackService.setCredentialProvider(new MyClsLifecycleCredentialProvider());
4141
// 固定秘钥
@@ -62,7 +62,7 @@ public void inputData() {
6262
// 每隔100s上报一次上传、下载、其他基础接口
6363
while (true) {
6464
try {
65-
Thread.sleep(100000);
65+
Thread.sleep(10000);
6666
} catch (InterruptedException e) {
6767
e.printStackTrace();
6868
}

0 commit comments

Comments
 (0)