I'm looking for a way to include the git branch name into my android apk file name upon building it.
I would like to name my apk file "ProjectName-git branchname.apk, automatically upon building it. "
Example: "MyTestProject-master.apk"
I've searched online and read the gradle docs but can't find a reference to how to include the branch name into the output file name.
I know how to use gradle to construct a file name, generally speaking. I'm specifically asking about the git branch reference.