This commit is contained in:
kunfei committed 2023-02-16 10:03:14 +08:00
1 parent 598186b54c
commit 0a7101463c
2 files changed
+2 -3

No files matched your search

@@ -39,7 +39,7 @@ val cronetEngine: ExperimentalCronetEngine? by lazy {
val engine = builder.build()
DebugLog.d("Cronet Version:", engine.versionString)
return@lazy engine
} catch (e: UnsatisfiedLinkError) {
} catch (e: Throwable) {
AppLog.put("初始化cronetEngine出错", e)
return@lazy null
}
@@ -71,8 +71,7 @@ val okHttpClient: OkHttpClient by lazy {
if (!AppConst.isPlayChannel && AppConfig.isCronet) {
if (Cronet.loader?.install() == true) {
Cronet.interceptor?.let {
//崩溃
//builder.addInterceptor(it)
builder.addInterceptor(it)
}
}
}