ursus
07/18/2021, 2:49 PMapplicationVariants.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