build-logic: configure SlimTests correctly

This commit is contained in:
Harsh Shandilya 2021-12-03 12:56:55 +05:30
parent 52cba5864d
commit 7d03924de6
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
3 changed files with 3 additions and 5 deletions

View file

@ -6,7 +6,6 @@
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
import flavors.FlavorDimensions import flavors.FlavorDimensions
import flavors.ProductFlavors import flavors.ProductFlavors
import flavors.configureSlimTests
import org.gradle.kotlin.dsl.configure import org.gradle.kotlin.dsl.configure
import signing.configureBuildSigning import signing.configureBuildSigning
@ -60,6 +59,5 @@ extensions.configure<BaseAppModuleExtension> {
register(ProductFlavors.NON_FREE) {} register(ProductFlavors.NON_FREE) {}
} }
project.configureSlimTests()
project.configureBuildSigning() project.configureBuildSigning()
} }

View file

@ -4,6 +4,7 @@
*/ */
import com.android.build.gradle.TestedExtension import com.android.build.gradle.TestedExtension
import flavors.configureSlimTests
extensions.configure<TestedExtension> { extensions.configure<TestedExtension> {
setCompileSdkVersion(31) setCompileSdkVersion(31)
@ -36,4 +37,6 @@ extensions.configure<TestedExtension> {
animationsDisabled = true animationsDisabled = true
unitTests.isReturnDefaultValues = true unitTests.isReturnDefaultValues = true
} }
configureSlimTests()
} }

View file

@ -3,7 +3,6 @@
* SPDX-License-Identifier: GPL-3.0-only * SPDX-License-Identifier: GPL-3.0-only
*/ */
import flavors.configureSlimTests
import org.gradle.kotlin.dsl.provideDelegate import org.gradle.kotlin.dsl.provideDelegate
import org.gradle.plugins.signing.SigningExtension import org.gradle.plugins.signing.SigningExtension
@ -13,8 +12,6 @@ plugins {
} }
afterEvaluate { afterEvaluate {
project.configureSlimTests()
extensions.configure<SigningExtension> { extensions.configure<SigningExtension> {
val signingKey: String? by project val signingKey: String? by project
val signingPassword: String? by project val signingPassword: String? by project