onVariants

abstract fun onVariants(callback: (AndroidVariant) -> Unit)

Allows for registration of a callback to be called with variant instances. This can be used to modify compilation behaviour of a given variant at configuration time.