Skip to content

Instantly share code, notes, and snippets.

@ruijun
Created January 12, 2016 05:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruijun/d573f98b5bf975c45646 to your computer and use it in GitHub Desktop.
Save ruijun/d573f98b5bf975c45646 to your computer and use it in GitHub Desktop.
copy proguard mapping.txt to save it
android {
applicationVariants.all { variant ->
variant.outputs.each { output ->
if (variant.getBuildType().isMinifyEnabled()) {
variant.assemble.doLast{
copy {
from variant.mappingFile
into "${projectDir}/mappings"
rename { String fileName ->
"mapping-${variant.name}.txt"
}
}
}
}
}
......
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment