I have 2 product flavors:
productFlavors {
first{}
second{}
}
and I have a class Http
with constant value like on screen:
My problem is:
If I have set build first
, I want Http
class with CODE = 2000
but if I have set build second
I want Http
class with CODE = 1000
I have seen such a project which looked like : repo(first) and after change build repo(second) and class http was different depending on the current build, but can't replicate it :/