Nilzor / build-variant-matrix

Build Variant Matrix Selector - shows Dimensions and Flavors as rows and columns in a table
Apache License 2.0
37 stars 5 forks source link

Build Variant Matrix Selector

A plugin for Android Studio making it easier to select variants / flavors

Introduction

Tired of this? Try this!
Android Studios way This plugin

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.

Installation

Requirement: Android Studio 4.0 or newer.

Go to File - Settings - Plugins, Search for plugin "Build Variant Matrix Selector"

image

Optionally download and install from disk from either Jetbrains or Gitlab

Usage

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!

Known limitations

Acknowledgements

Thants to PandoraMedia's variant-helper-plugin for inspiration