Skip to content

Instantly share code, notes, and snippets.

@igorepst
Last active June 12, 2021 02:48
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorepst/091a9c16d08c1981b3ac to your computer and use it in GitHub Desktop.
Save igorepst/091a9c16d08c1981b3ac to your computer and use it in GitHub Desktop.
Gradle: Copy Proguard's mapping.txt to save it
android {
applicationVariants.all { variant ->
if (variant.getBuildType().isMinifyEnabled()) {
variant.assemble.doLast{
copy {
from variant.mappingFile
into "${rootDir}/mappings"
rename { String fileName ->
"mapping-${variant.name}.txt"
}
}
}
}
}
}
@igorepst
Copy link
Author

igorepst commented Jul 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment