How to apply plugin based on build type (Android)

Well, these are some uses cases:

1)These plugins are for crash reporting, so I don’t need them to be applied all the time (ex: I don’t need them for my daily local builds because I’m not going to track the crash on those builds, they are for development propose, no for sharing or tracking the crashes).

2)One of the benefits of this chance will be reducing the compilation time (because we need Gradle to apply these plugin), among others.

  1. I just want to apply one of those crash reporting (not both).

Said that, I think I would be useful in some cases to be able to have the chance to apply plugin just for some build types.