1
0
mirror of https://github.com/square/okhttp.git synced 2025-08-08 23:42:08 +03:00

Fix OpenJSSE build (#6657)

This commit is contained in:
Yuri Schimke
2021-06-01 18:08:51 +10:00
committed by GitHub
parent d875f472be
commit 71427d373b
3 changed files with 18 additions and 4 deletions

View File

@@ -208,6 +208,8 @@ open class PlatformRule @JvmOverloads constructor(
fun isBouncyCastle() = getPlatformSystemProperty() == BOUNCYCASTLE_PROPERTY
fun isOpenJsse() = getPlatformSystemProperty() == OPENJSSE_PROPERTY
fun isGraalVMImage() = TestUtil.isGraalVmImage
fun hasHttp2Support() = !isJdk8()
@@ -240,6 +242,10 @@ open class PlatformRule @JvmOverloads constructor(
assumeTrue(getPlatformSystemProperty() == BOUNCYCASTLE_PROPERTY)
}
fun assumeOpenJsse() {
assumeTrue(getPlatformSystemProperty() == OPENJSSE_PROPERTY)
}
fun assumeHttp2Support() {
assumeTrue(getPlatformSystemProperty() != JDK8_PROPERTY)
}
@@ -283,6 +289,10 @@ open class PlatformRule @JvmOverloads constructor(
assumeTrue(getPlatformSystemProperty() != BOUNCYCASTLE_PROPERTY)
}
fun assumeNotOpenJsse() {
assumeTrue(getPlatformSystemProperty() != OPENJSSE_PROPERTY)
}
fun assumeNotHttp2Support() {
assumeTrue(getPlatformSystemProperty() == JDK8_PROPERTY)
}