|
|
|
@ -23,11 +23,12 @@ import org.gradle.kotlin.dsl.getByType
|
|
|
|
|
class AndroidApplicationJacocoConventionPlugin : Plugin<Project> {
|
|
|
|
|
override fun apply(target: Project) {
|
|
|
|
|
with(target) {
|
|
|
|
|
pluginManager.withPlugin("com.android.application") {
|
|
|
|
|
pluginManager.apply("org.gradle.jacoco")
|
|
|
|
|
val extension = extensions.getByType<ApplicationAndroidComponentsExtension>()
|
|
|
|
|
configureJacoco(extension)
|
|
|
|
|
with(pluginManager) {
|
|
|
|
|
apply("org.gradle.jacoco")
|
|
|
|
|
apply("com.android.application")
|
|
|
|
|
}
|
|
|
|
|
val extension = extensions.getByType<ApplicationAndroidComponentsExtension>()
|
|
|
|
|
configureJacoco(extension)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|