0

I am making an application in Kotlin where, there is a dropDown menu with my pre-made build variant like QA, PROD & DEBUG.

I want to change my build variant based on a selection from DropDown.

Due to some restrictions, I can't share my code. Any link for a sample would be appreciable

Phil Dukhov
  • 67,741
  • 15
  • 184
  • 220
coder_baba
  • 447
  • 3
  • 21
  • You can check on this link https://stackoverflow.com/questions/58430212/how-to-set-the-build-variant-programmatically-at-runtime-in-android-studio – user2659769 Apr 11 '22 at 09:08
  • Define "programatically"... Did you mean from command line?(check gradle documentation) or inside android app(not possible)? – Selvin Apr 11 '22 at 09:14
  • @Selvin means I want to perform an app like QA or debug selection behavior. when the user selects menu from drop down. – coder_baba Apr 11 '22 at 09:20
  • make 4th app which would run one of the other 3 app .. as obviously 3 build variant creates 3 different apps - (but each variant should have different app id) – Selvin Apr 11 '22 at 09:22

0 Answers0