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
Post a Comment