I have some constants which I would like to vary according to BuildType
of Gradle. Among them are the URL's of the API's that I use in my app, which can be of production, homologation and development. For example:
I've read documentation , and now I've tried solutions from here and from here . But none worked.
What is the correct configuration of 'build.gradle' so I do not have to manually change my constants according to the environment.