Last active
June 12, 2021 02:48
-
-
Save igorepst/091a9c16d08c1981b3ac to your computer and use it in GitHub Desktop.
Gradle: Copy Proguard's 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 -> | |
if (variant.getBuildType().isMinifyEnabled()) { | |
variant.assemble.doLast{ | |
copy { | |
from variant.mappingFile | |
into "${rootDir}/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
See How to change the proguard mapping file name in gradle for Android project