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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user