Use configureEach

Co-authored-by: Simon Marquis <contact@simon-marquis.fr>
ja/coverage_agp
Jose Alcérreca 8 months ago committed by GitHub
parent f003321220
commit 8094ba7f0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -24,9 +24,9 @@ class AndroidApplicationJacocoConventionPlugin : Plugin<Project> {
with(target) {
val androidExtension = extensions.getByType<BaseAppModuleExtension>()
androidExtension.buildTypes.forEach { buildType ->
buildType.enableAndroidTestCoverage = true
buildType.enableUnitTestCoverage = true
androidExtension.buildTypes.configureEach {
enableAndroidTestCoverage = true
enableUnitTestCoverage = true
}
}
}

Loading…
Cancel
Save