Created
January 12, 2016 05:29
-
-
Save ruijun/d573f98b5bf975c45646 to your computer and use it in GitHub Desktop.
copy proguard mapping.txt to save it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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