A plugin for Android Studio making it easier to select variants / flavors
Tired of this? | Try this! |
---|---|
This plugin replaces the variant selector in Android Studio with a popup that lets you select the flavors in a matrix instead of using drop down lists. It's much more efficient when working on large projects in Android Studio.
Here's what I didn't like about Android Studio's solution and why I chose to build this plugin:
*) While drop downs have to list A x B x C selections, where A, B and C are number of flavors per dimension, radio buttons can do with A + B + C
**) Anecdotal, I haven't investigated deeply.
Requirement: Android Studio 4.0 or newer.
Go to File - Settings - Plugins, Search for plugin "Build Variant Matrix Selector"
Optionally download and install from disk from either Jetbrains or Gitlab
Go to File - Settings - Keymap - map a key to the action "Select Build Variant by Matrix". Start clicking the button after a proect has loaded, simple as that!
Thants to PandoraMedia's variant-helper-plugin for inspiration