If you are already flavoring then no need to provide extra string field in your gradle. Just follow simple steps to get the build details:
For build variant : BuildConfig.FLAVOR
For build version code : BuildConfig.VERSION_CODE
For build version name : BuildConfig.VERSION_NAME