build-logic: configure SlimTests correctly
This commit is contained in:
parent
52cba5864d
commit
7d03924de6
3 changed files with 3 additions and 5 deletions
|
@ -6,7 +6,6 @@
|
|||
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
|
||||
import flavors.FlavorDimensions
|
||||
import flavors.ProductFlavors
|
||||
import flavors.configureSlimTests
|
||||
import org.gradle.kotlin.dsl.configure
|
||||
import signing.configureBuildSigning
|
||||
|
||||
|
@ -60,6 +59,5 @@ extensions.configure<BaseAppModuleExtension> {
|
|||
register(ProductFlavors.NON_FREE) {}
|
||||
}
|
||||
|
||||
project.configureSlimTests()
|
||||
project.configureBuildSigning()
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
|
||||
import com.android.build.gradle.TestedExtension
|
||||
import flavors.configureSlimTests
|
||||
|
||||
extensions.configure<TestedExtension> {
|
||||
setCompileSdkVersion(31)
|
||||
|
@ -36,4 +37,6 @@ extensions.configure<TestedExtension> {
|
|||
animationsDisabled = true
|
||||
unitTests.isReturnDefaultValues = true
|
||||
}
|
||||
|
||||
configureSlimTests()
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-only
|
||||
*/
|
||||
|
||||
import flavors.configureSlimTests
|
||||
import org.gradle.kotlin.dsl.provideDelegate
|
||||
import org.gradle.plugins.signing.SigningExtension
|
||||
|
||||
|
@ -13,8 +12,6 @@ plugins {
|
|||
}
|
||||
|
||||
afterEvaluate {
|
||||
project.configureSlimTests()
|
||||
|
||||
extensions.configure<SigningExtension> {
|
||||
val signingKey: String? by project
|
||||
val signingPassword: String? by project
|
||||
|
|
Loading…
Reference in a new issue