From c877497756bb48bd8eb6a607c01a5d18efc271d1 Mon Sep 17 00:00:00 2001 From: Ash Date: Mon, 8 Aug 2022 21:23:57 +0800 Subject: [PATCH] Cancel TLSv1.3 support pre Android10 --- app/build.gradle | 3 ++- app/src/main/java/me/ash/reader/RYApp.kt | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3ee323e..bacc863 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -113,7 +113,8 @@ dependencies { implementation("io.coil-kt:coil-svg:$coil") implementation("io.coil-kt:coil-gif:$coil") - implementation 'org.conscrypt:conscrypt-android:2.5.2' + // Cancel TLSv1.3 support pre Android10 + // implementation 'org.conscrypt:conscrypt-android:2.5.2' // https://square.github.io/okhttp/changelogs/changelog/ implementation "com.squareup.okhttp3:okhttp:$okhttp" diff --git a/app/src/main/java/me/ash/reader/RYApp.kt b/app/src/main/java/me/ash/reader/RYApp.kt index 66d8b36..a2601b5 100644 --- a/app/src/main/java/me/ash/reader/RYApp.kt +++ b/app/src/main/java/me/ash/reader/RYApp.kt @@ -18,8 +18,6 @@ import me.ash.reader.data.source.RYDatabase import me.ash.reader.data.source.RYNetworkDataSource import me.ash.reader.ui.ext.* import okhttp3.OkHttpClient -import org.conscrypt.Conscrypt -import java.security.Security import javax.inject.Inject /** @@ -34,7 +32,8 @@ class RYApp : Application(), Configuration.Provider { * Install Conscrypt to handle TLSv1.3 pre Android10. */ init { - Security.insertProviderAt(Conscrypt.newProvider(), 1) + // Cancel TLSv1.3 support pre Android10 + // Security.insertProviderAt(Conscrypt.newProvider(), 1) } @Inject