Skip to content

Instantly share code, notes, and snippets.

@meoyawn
Created July 15, 2015 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meoyawn/f906bba1e470f414dcda to your computer and use it in GitHub Desktop.
Save meoyawn/f906bba1e470f414dcda to your computer and use it in GitHub Desktop.
task migrateMipmap << {
fileTree('src').include('**/res/drawable*/ic_launcher.png').each { icon ->
final p = file(icon.parent.replaceAll("drawable", "mipmap"))
p.mkdirs()
final dest = new File(p, icon.name)
icon.renameTo(dest)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment