From 5c944a5ee13ec538dfd00584e1f6372c088f517e Mon Sep 17 00:00:00 2001 From: ag2s20150909 Date: Wed, 25 Aug 2021 22:05:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DGoogle=E7=89=88=E7=9A=84crone?= =?UTF-8?q?t=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 4 +++- .../main/java/io/legado/app/help/http/cronet/CronetLoader.kt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 7ba7112af..40bc89367 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -182,7 +182,9 @@ dependencies { //网络 implementation('com.squareup.okhttp3:okhttp:4.9.1') - compileOnly("com.google.android.gms:play-services-cronet:17.0.1"){ exclude(group: "org.chromium.net") } + compileOnly('com.google.android.gms:play-services-cronet:17.0.1'){ + exclude(group: "org.chromium.net") + } googleImplementation("com.google.android.gms:play-services-cronet:17.0.1") appImplementation(fileTree(dir: 'cronetlib', include: ['*.jar', '*.aar'])) diff --git a/app/src/main/java/io/legado/app/help/http/cronet/CronetLoader.kt b/app/src/main/java/io/legado/app/help/http/cronet/CronetLoader.kt index 2402c08bd..52926162f 100644 --- a/app/src/main/java/io/legado/app/help/http/cronet/CronetLoader.kt +++ b/app/src/main/java/io/legado/app/help/http/cronet/CronetLoader.kt @@ -24,7 +24,7 @@ object CronetLoader : CronetEngine.Builder.LibraryLoader() { //https://storage.googleapis.com/chromium-cronet/android/92.0.4515.127/Release/cronet/libs/arm64-v8a/libcronet.92.0.4515.159.so //https://cdn.jsdelivr.net/gh/ag2s20150909/cronet-repo@92.0.4515.127/cronet/92.0.4515.127/arm64-v8a/libcronet.92.0.4515.159.so.js private const val TAG = "CronetLoader" - private const val soVersion: String = "92.0.4515.159" + private const val soVersion = "92.0.4515.159" private const val soName = "libcronet.$soVersion.so" private val soUrl: String private val md5Url: String