1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-14 07:22:20 +03:00

Handle NoClassDefFoundError for Conscrypt (#5763)

This commit is contained in:
Yuri Schimke
2020-02-01 07:11:26 -08:00
committed by GitHub
parent 672e765cc8
commit 9e1a3da9ba

View File

@@ -108,6 +108,8 @@ class ConscryptPlatform private constructor() : Platform() {
Conscrypt.isAvailable() && atLeastVersion(2, 1, 0) -> true
else -> false
}
} catch (e: NoClassDefFoundError) {
false
} catch (e: ClassNotFoundException) {
false
}