I have a requirement to implement an option to switch in between the build variant dynamically, so tried to find the way but no luck.
Please edit your question and explain, in detail, what "switch in between the build variant dynamically" means.
CommonsWare