Cancel TLSv1.3 support pre Android10

This commit is contained in:
Ash 2022-08-08 21:23:57 +08:00
parent 4d6e36dc6b
commit c877497756
2 changed files with 4 additions and 4 deletions

View File

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

View File

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