From 912b609ac80f4d0fc40ca8f3a3ac250d57f9abf8 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 26 Nov 2023 21:39:40 +0530 Subject: fix(build): address `enableAndroidTest` deprecation --- .../src/main/kotlin/app/passwordstore/gradle/flavors/SlimTests.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build-logic') diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/flavors/SlimTests.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/flavors/SlimTests.kt index 5fd681f3..ece42f92 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/flavors/SlimTests.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/flavors/SlimTests.kt @@ -25,7 +25,7 @@ internal fun Project.configureSlimTests() { extensions.findByType()?.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 } } } -- cgit v1.2.3