I wish to rename my apk from gradle. I have the following lines inside build
applicationVariants.all { variant ->
def file = variant.outputFile
def filename = file.name.replace("SomeXXX", "SomeYYY")
variant.outputFile = new File(file.parent, filename)
}
This successfully renames the apks but not the unaligned apks. Please someone throw some light on this.