Git tag plugin custom app version name

I want to use the git tag in my workflow, it works with the version number, however i would like to use my Android version name $ANDROID_VERSION_NAME I have the following gradle setup

def appVersionCode = System.getenv(Config.BITRISE_BUILD_NUMBER_VARIABLE)
        def appVersionName = String.format("%s.%s.%s", VERSION_CODE, 
VERSION_CODE_MINOR, appVersionCode) // VERSION_CODE= 1, VERSION_CODE_MINOR=0

    applicationId "com.test.aaa"
    minSdkVersion Config.ANDROID_MIN_VERSION
    targetSdkVersion Config.ANDROID_TARGET_VERSION
    versionCode appVersionCode 
    versionName appVersionName

If I use $ANDROID_VERSION_NAME from bitrise, the string “output” is appVersionName instead something like 1.0.37, how I can read this? I would like to have the control in the gradle instead bitrise for versioning.
Any help? Thanks a lot!

Hi @zenyagami
Thank you for reaching out to Bitrise Support.
You would be able to use the git tag plugin with “$ANDROID_VERSION_NAME” by writing a script in the Script Step in Bitrise.

Thanks
Chaitanya

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.