Adding a BuildConfig field in Kotlin This sample shows how to add a field in the BuildConfig class for which the value is known at configuration time. The added field is used in the MainActivity.kt file.