How can Variant Outputs be manipulated using the Android Gradle Plugin 3.0.0+? : <p>The latest version (3.0.0) of the Android Plugin for Gradle has broken its API for manipulating <a href="https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#variant_api" rel="noreferrer">Variant Outputs</a>. This API was used for manipulating files creating during builds (such as AndroidManifest.xml), and has been removed to improve configuration times.</p>

<p>What new APIs are available to manipulate Variant Outputs, and how do they differ to the 2.X APIs?</p>
