diff --git a/app/build.gradle b/app/build.gradle index 5973d4c..87b145c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -108,7 +108,7 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.preference:preference:1.2.0' implementation 'com.google.android.material:material:1.7.0' - implementation 'com.squareup.okhttp3:okhttp:3.14.9' + implementation 'com.squareup.okhttp3:okhttp:4.10.0' implementation 'com.elvishew:xlog:1.11.0' implementation files('libs/BaiduLBS_Android.jar') testImplementation 'junit:junit:4.13.2' diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index fe38d35..7b5310c 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -22,4 +22,10 @@ -keep class com.baidu.** {*;} -keep class vi.com.** {*;} -keep class com.baidu.vi.** {*;} --dontwarn com.baidu.** \ No newline at end of file +-dontwarn com.baidu.** + +# OkHttp platform used only on JVM and when Conscrypt and other security providers are available. +-dontwarn okhttp3.internal.platform.** +-dontwarn org.conscrypt.** +-dontwarn org.bouncycastle.** +-dontwarn org.openjsse.** \ No newline at end of file