feat: 引入 Conscrypt 解决 Android 8.1 TLS 握手失败
设备系统 conscrypt 版本过旧,连阿里云 OSS 的 HTTPS 握手被 reset。 引入 org.conscrypt:conscrypt-android:2.5.2 作为首选安全提供者, 在 Application.onCreate 中注册,所有网络请求自动使用现代 TLS。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -85,6 +85,9 @@ dependencies {
|
||||
implementation(libs.androidx.room.ktx)
|
||||
ksp(libs.androidx.room.compiler)
|
||||
|
||||
// TLS (解决 Android 8.1 连阿里云 OSS HTTPS 握手失败)
|
||||
implementation(libs.conscrypt)
|
||||
|
||||
// Network
|
||||
implementation(libs.retrofit)
|
||||
implementation(libs.retrofit.converter.gson)
|
||||
|
||||
Reference in New Issue
Block a user