I\'d like to get the build variant during runtime, is this possible without any extra config or code?
You can try with
getPackageName();
it will return what you've defined in build.gradle
productFlavours{ flavour1{ applicationId 'com.example.package.flavour1' } flavour2{ applicationId 'com.example.package.flavour2' } }