getBuildConfigValue

fun getBuildConfigValue(packageName: String?, fieldName: String): Any?

Gets a field from the project's BuildConfig. This is useful when, for example, flavors are used at the project level to set custom fields.

Return

The value of the field, or null if the field is not found.

Parameters

fieldName

The name of the field-to-access