org.neotech.plugin.rootcoverage.utilities.ProjectExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-root-coverage-plugin Show documentation
Show all versions of android-root-coverage-plugin Show documentation
A Gradle plugin for easy generation of combined code coverage reports for Android projects with multiple modules.
The newest version!
package org.neotech.plugin.rootcoverage.utilities
import org.gradle.api.Project
import org.gradle.api.file.Directory
import org.gradle.api.file.RegularFile
import org.gradle.api.provider.Provider
import java.io.File
/**
* Returns the output report file composed from the given [fileName] as a [RegularFile].
*/
internal fun Project.getReportOutputFile(fileName: String): Provider =
layout.buildDirectory.file("reports/$fileName")
/**
* Returns the output report path composed from the given [directory] as a [Directory].
*/
internal fun Project.getReportOutputDir(directory: String): Provider =
layout.buildDirectory.dir("reports/$directory")