Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildTypes {
- applicationVariants.all { variant ->
- def oldFile = variant.outputs.outputFile.get(0)
- def newFile = new File(
- oldFile.parent,
- oldFile.name.replace(".apk", "-" + defaultConfig.versionName + ".apk"))
- variant.outputs.outputFile.set(0, newFile)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement