Have QA task use debug variants.

This commit is contained in:
Greyson Parrelli
2026-05-27 15:12:11 -04:00
committed by Michelle Tang
parent 5fd8101180
commit 0907898105
+3 -4
View File
@@ -79,8 +79,8 @@ tasks.register("qa") {
// Wire up QA dependencies after all projects are evaluated
gradle.projectsEvaluated {
val appTestTask = tasks.findByPath(":Signal-Android:testPlayProdReleaseUnitTest")!!
val appLintTask = tasks.findByPath(":Signal-Android:lintPlayProdRelease")!!
val appTestTask = tasks.findByPath(":Signal-Android:testPlayProdDebugUnitTest")!!
val appLintTask = tasks.findByPath(":Signal-Android:lintPlayProdDebug")!!
val appCompileInstrumentationTask = tasks.findByPath(":Signal-Android:compilePlayProdDebugAndroidTestSources")
tasks.named("qa") {
@@ -102,8 +102,7 @@ gradle.projectsEvaluated {
// Library module tasks
subprojects.filter { it.name != "Signal-Android" }.forEach { subproject ->
val testTask = subproject.tasks.findByName("testDebugUnitTest")
?: subproject.tasks.findByName("test")
val testTask = subproject.tasks.findByName("testDebugUnitTest") ?: subproject.tasks.findByName("test")
testTask?.let { dependsOn(it) }
subproject.tasks.findByName("lintDebug")?.let { dependsOn(it) }