[build] Fix android binary validator

This commit is contained in:
Karlatemp 2023-07-11 02:22:54 +08:00
parent 1903d10333
commit 64f4f8c208
No known key found for this signature in database
GPG Key ID: BA173CA2B9956C59

View File

@ -70,7 +70,7 @@ object BinaryCompatibilityConfigurator {
project.path, project.path,
listOfNotNull( listOfNotNull(
if (targetName == null) "classes/kotlin/main" else "classes/kotlin/$targetName/main", if (targetName == null) "classes/kotlin/main" else "classes/kotlin/$targetName/main",
if (targetName?.contains("android") == true) "tmp/kotlin-classes/debug" else "" if (targetName?.contains("android") == true && project.usingAndroidInstrumentedTests) "tmp/kotlin-classes/debug" else ""
) )
) )
) )