We have an android app for which we have separate firebase projects for each country. Earlier, we had a separate apk for each country and the firebase projects were pre-configured for each project.
The main projects were the same but only the backend and firebase projects were different for the sake of some data compliance issues.
Now, we are working on merging all those projects into a single apk so that the backend and firebase projects will be selected based on the user's login country code.
On playstore, there is a single application that users install. When the user logs in using his phone number, Based on his country dial code, the android app will select the firebase project related to the user's country code.
Currently, the android app is using a single firebase project which is preconfigured in the configuration of the apk. My question is whether it is possible to change the android project on run time or do we always have to preconfigure the firebase project in the android project?