Sep 13, 2017
Add some flavor to your application - product flavors configuration.
In the course of writing Android application, it often happens that we have to build more than one application from the same code base. During the development process, these are the most common versions supported in different environments - test and production. In addition, we sometimes need a free and paid version - another 2 versions of the application. I have recently met the issue of creating another instance of an existing application that covers nearly 95% of the functionality. Creating a completely new project on the basis of the previous one would not be a good solution because some of the modifications or improvements would have to be done twice. You can do it differently - you can use product flavors. In this post, I would like to show you how to efficiently create multiple flavors in different dimensions as well as manage source sets efficiently.