The application consists of 3 packages:
Presentation (Contains dependencies android API)
Data (On pure Java, without android dependencies, is responsible for working with the server)
Domain
The question is how to make it so that when building this (or another) version, the API address to which we refer changes.
In the first package, we can create buildVariants->productFlavors (we change applicationId and it will work).
But these build options do not affect the Data package. What to do?
Presentation(Имеет зависимость от Domain) src- main-java stage-java Domain(Имеет зависимость от Data) Data(На чистой джаве, нет зависимостей андроида) src- main-java-Const->www.adders.com stage-java-Const->www.stage.adderss.com When I change to Presentation productFravors , the Data module ignores this. How do I make the Data module going in different ways.