All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.neotech.plugin.rootcoverage.utilities.ProjectExtensions.kt Maven / Gradle / Ivy

Go to download

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")




© 2015 - 2024 Weber Informatics LLC | Privacy Policy