[App] Disable TLSv1.3 requirement for SSLProvider.

This commit is contained in:
Kuba Szczodrzyński 2021-03-25 13:19:52 +01:00
parent ae6af77aef
commit 4045da7fc5

View File

@ -190,12 +190,18 @@ class App : MultiDexApplication(), Configuration.Provider, CoroutineScope {
withContext(Dispatchers.Default) { withContext(Dispatchers.Default) {
config.migrate(this@App) config.migrate(this@App)
SSLProvider.install(applicationContext, downloadIfNeeded = true, supportTls13 = true, onFinish = { SSLProvider.install(
buildHttp() applicationContext,
}, onError = { downloadIfNeeded = true,
Timber.e("Failed to install SSLProvider: $it") supportTls13 = false,
it.printStackTrace() onFinish = {
}) buildHttp()
},
onError = {
Timber.e("Failed to install SSLProvider: $it")
it.printStackTrace()
}
)
if (config.devModePassword != null) if (config.devModePassword != null)
checkDevModePassword() checkDevModePassword()