修复Google版的cronet编译

pull/1273/head
ag2s20150909 3 years ago
parent 9683d7d16f
commit 5c944a5ee1
  1. 4
      app/build.gradle
  2. 2
      app/src/main/java/io/legado/app/help/http/cronet/CronetLoader.kt

@ -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']))

@ -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

Loading…
Cancel
Save