aboutsummaryrefslogtreecommitdiff
path: root/build-logic
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2024-02-24 00:31:17 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2024-02-24 01:30:53 +0530
commitcd0a6381060aae859cb66f03edf64fc5ecbafffe (patch)
tree990bd8f532a5109b2183fe4923172726f8e7b3cc /build-logic
parent9ba9d1625f9f0b8a3f778a615dea1250b2378c94 (diff)
fix(deps): go back to AGP 8.3.x
Diffstat (limited to 'build-logic')
-rw-r--r--build-logic/src/main/kotlin/app/passwordstore/gradle/flavors/SlimTests.kt5
1 files changed, 3 insertions, 2 deletions
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 5588f621..7a3928c0 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
@@ -19,13 +19,14 @@ import org.gradle.kotlin.dsl.findByType
* Examples: `./gradlew test -PslimTests` will run unit tests for `nonFreeDebug` and `debug` build
* variants in Android App and Library projects, and all tests in JVM projects.
*/
+@Suppress("UnstableApiUsage")
internal fun Project.configureSlimTests() {
if (providers.gradleProperty(SLIM_TESTS_PROPERTY).isPresent) {
// Disable unit test tasks on the release build type for Android Library projects
extensions.findByType<LibraryAndroidComponentsExtension>()?.run {
beforeVariants(selector().withBuildType(BUILD_TYPE_RELEASE)) {
(it as HasUnitTestBuilder).enableUnitTest = false
- it.enableAndroidTest = true
+ it.androidTest.enable = false
}
}
@@ -37,7 +38,7 @@ internal fun Project.configureSlimTests() {
}
beforeVariants(selector().withFlavor(FlavorDimensions.FREE to ProductFlavors.NON_FREE)) {
(it as HasUnitTestBuilder).enableUnitTest = false
- it.enableAndroidTest = true
+ it.androidTest.enable = false
}
}
}