I want to add the version code as a suffix of versionNameSuffix. Currently, I have:

    debug {
        versionNameSuffix ".debug"
    }

How can I have something like:

    debug {
        versionNameSuffix ".debug.versionCode"
    }

My version code is based on the productFlavors:

    productFlavors {
        free {
            versionCode 123
        }
    }

@Resolution: I move versionCode out from productFlavors to root level and use the accepted anwser to inject versionCode in versionNameSuffix

Related posts

Recent Viewed