fix(build): address enableAndroidTest deprecation

This commit is contained in:
Harsh Shandilya 2023-11-26 21:39:40 +05:30
parent 8fa7b0b60f
commit 912b609ac8
No known key found for this signature in database

View file

@ -25,7 +25,7 @@ internal fun Project.configureSlimTests() {
extensions.findByType<LibraryAndroidComponentsExtension>()?.run {
beforeVariants(selector().withBuildType(BUILD_TYPE_RELEASE)) {
(it as HasUnitTestBuilder).enableUnitTest = false
it.enableAndroidTest = false
it.androidTest.enable = false
}
}
@ -37,7 +37,7 @@ internal fun Project.configureSlimTests() {
}
beforeVariants(selector().withFlavor(FlavorDimensions.FREE to ProductFlavors.NON_FREE)) {
(it as HasUnitTestBuilder).enableUnitTest = false
it.enableAndroidTest = false
it.androidTest.enable = false
}
}
}