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:
dongliang
2026-05-07 13:04:55 +09:30
parent 9f7a0a5c1e
commit bb489140f8
3 changed files with 19 additions and 5 deletions

View File

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