is there way auto-copy proguard mapping files (selected) target apk directory in android studio, every time live build finishes?
this solution copy generated mapping.txt {targetdir}/mapping/ {targetdir} target apk dir. (this solution add date in txt filename.)
edit build.gradle of app module, update android task:
android { ... // usual stuff applicationvariants.all { variant -> variant.outputs.each { output -> if (variant.getbuildtype().isminifyenabled()) { variant.assemble.dolast{ copy { variant.mappingfile output.outputfile.parent + "/mapping" rename { string filename -> "mapping-${variant.name}-${new date().format('yyyy_mm_dd')}.txt" } } } } } } }
Comments
Post a Comment