[Refactor]: Replace enableAndroidTest with androidTest.enable (#1274)

This is because enableAndroidTest is deprecated.

Fixes #1272
pull/1837/head
sanao 9 months ago committed by GitHub
parent 07780d1d42
commit 25fddec5ab

@ -30,6 +30,6 @@ import org.gradle.api.Project
internal fun LibraryAndroidComponentsExtension.disableUnnecessaryAndroidTests(
project: Project,
) = beforeVariants {
it.enableAndroidTest = it.enableAndroidTest
it.androidTest.enable = it.androidTest.enable
&& project.projectDir.resolve("src/androidTest").exists()
}

Loading…
Cancel
Save