I rename my apks with current git commit hash, tha...
# gradle
u
I rename my apks with current git commit hash, that I currently run in configuration phase, and I learned its very expensive, so im trying to make it lazy
Copy code
applicationVariants.configureEach { variant ->
    variant.outputs.configureEach { output ->
        ...

        def generateNameTask = tasks.register("generateFooApkName${abiName.capitalize()}${variant.name.capitalize()}", GenerateApkName) {
            outputFile = file("apknane.txt")
        }
        outputFileName = generateNameTask.map { it.outputFile.get().asFile.text }
    }
}
I register a tasks which generates the name including the git hash in configuration phase But what happens is that the
outputFileName
is now .toString on the Provider, no the body of the lambda; which I guess is obvious Is there a way to make it play nice with Providers/Properties? I can't even find the javadoc for the outputFileName function