There are two product flavors:
productFlavors { demo { ... } full { ... } } and two build types:
buildTypes { release { ... } debug { ... } } Proceeding from the existing product flavors and build types, there are four build versions:
demoRelease demoDebug fullRelease fullDebug Is it possible for each of the four build options in AndroidManifest.xml to prescribe different values for some attributes? If possible, how? Using manifest placeholders or something else?
For example, there are four API keys for some service, and depending on the specific build version in AndroidManifest.xml, you need to insert your own key.
Now I have this implemented using a separate strings.xml for each build option, but I would like to write API keys somewhere in one file and not create a bunch of additional files .
Interested in something like this solution (in the first part of the answer).