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.txttomapping-release-1.0.1.txtin the same folder.In the module
build.gradlefile:You may also use
variant.versionCodeor other options in the file name.Hope this helps.