Is there a way to insert 'versionName' AFTER 'flavorName' for an Android artifact without resorting to a 'variants.all' block? -


there several threads addressing ways insert 'versionname' final .apk file name.

to wit:

android/gradle: include version name flavor in apk file name

how set versionname in apk filename using gradle?

most of these methods involve using "applicationvariants.all { variant ->" construct, i'm looking "cleaner" method rely upon built-in mechanisms file name creation.

for example, when add flavors, built-in mechanism adds flavor name artifact name.

the second link above 'versionname' modifying 'defaultconfig' with:

"setproperty("archivesbasename", "mycompany-myappname-$versionname")" 

but not put version name after flavor, 1 expect/desire.

is there way insert 'versionname' after flavor name without resorting 'variants.all' block?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -