[build] Fix build sync when ENABLE_ANDROID_INSTRUMENTED_TESTS is false

This commit is contained in:
Him188 2023-05-27 16:00:22 +01:00
parent 3dfe86bbe0
commit e89d245ca0
No known key found for this signature in database
GPG Key ID: BA439CDDCF652375

View File

@ -91,7 +91,7 @@ object BinaryCompatibilityConfigurator {
)
} else {
tasks.findByName("apiBuild")?.dependsOn(
if (targetName.contains("android")) {
if (targetName.contains("android") && ENABLE_ANDROID_INSTRUMENTED_TESTS) {
project.tasks.getByName("bundleDebugAar")
} else {
project.tasks.getByName("${targetName}Jar")