I am able to auto rename my apk files in gradle.build using
setProperty("archivesBaseName", "MyAppName-$versionName")
Is there a similar method to automatically append the proguard mapping folder name with the version number?
Currently, the folder defaults to
...\app\build\outputs\mapping\release or debug
I am wondering if it is possible to create the mapping folders to something like release-1.0.1
or debug-1.0.1
.
Following¹ will rename
mapping.txt
tomapping-release-1.0.1.txt
in the same folder.In the module
build.gradle
file:You may also use
variant.versionCode
or other options in the file name.Hope this helps.