We are developing an Android app that will target different markets (countries).
The scope of this question is to answer 2 things:
- How to easily configure and switch a "global" parameter (e.g. the country which this "variant" of this app will target) within the app that will be used across the whole code base, e.g. a backend API endpoint. In other words, there are 20+ backend APIs depending on the variant being released.
- How to easily build these 20+ different apps, changing the package name for each and taking into account the unique global parameter above while building each.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…