/variant-helper-plugin

Source for the Build Variant Quick-Selector plugin for Android Studio

Primary LanguageKotlinApache License 2.0Apache-2.0

Introduction

The Build Variant Quick-Selector Android Studio plugin helps make changing your selected Build Variant much simpler when your project has multiple Build Flavor and/or Build Type relationships.

How to install?

The plugin is published under the JetBrains Plugins Repository (see here) and can be installed following these simple steps:

  1. Open Settings menu (Ctrl Alt S).
  2. Access Plugins section.
  3. Click Browse repositories... button.
  4. Search for Build Variant Quick-Selector and click Install button.

How do I use it?

This plugin adds a new Switch All Build Variants... menu action right after Select Build Variant... in the Build menu.

  • Also accessible via Command + Shift + V
  • Finds common variant scopes for all modules
  • Select a fully-qualified variant name for each type listed
  • Wait for any Gradle sync to complete

Menu location of command

Variant selection dialog

The plugin invokes the same updates as a single variant change from the Build Variants tool window.