Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. buildTypes {
  2. applicationVariants.all { variant ->
  3. def oldFile = variant.outputs.outputFile.get(0)
  4. def newFile = new File(
  5. oldFile.parent,
  6. oldFile.name.replace(".apk", "-" + defaultConfig.versionName + ".apk"))
  7.  
  8. variant.outputs.outputFile.set(0, newFile)
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement