Rollback JVM 8 target support on Android
This commit is contained in:
+4
-6
@@ -276,13 +276,11 @@ class CodegenTestsOnAndroidGenerator private constructor(private val pathManager
|
|||||||
if (fullFileText.contains("@file:JvmPackageName(")) continue
|
if (fullFileText.contains("@file:JvmPackageName(")) continue
|
||||||
// TODO: Support jvm assertions
|
// TODO: Support jvm assertions
|
||||||
if (fullFileText.contains("// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm")) continue
|
if (fullFileText.contains("// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm")) continue
|
||||||
val targets = InTextDirectivesUtils.findLinesWithPrefixesRemoved(fullFileText, "// JVM_TARGET:")
|
|
||||||
.also { it.remove(JvmTarget.JVM_1_6.description) }
|
|
||||||
|
|
||||||
val isJvm8Target =
|
// TODO: support JVM 8 test with D8
|
||||||
if (targets.isEmpty()) false
|
if (fullFileText.contains("// JVM_TARGET")) continue
|
||||||
else if (targets.contains(JvmTarget.JVM_1_8.description) && targets.size == 1) true
|
|
||||||
else continue //TODO: support other targets on Android
|
val isJvm8Target = false
|
||||||
|
|
||||||
// TODO: support SKIP_JDK6 on new platforms
|
// TODO: support SKIP_JDK6 on new platforms
|
||||||
if (fullFileText.contains("// SKIP_JDK6")) continue
|
if (fullFileText.contains("// SKIP_JDK6")) continue
|
||||||
|
|||||||
Reference in New Issue
Block a user