React native firebase different project per schema

Viewed 16

Ι am trying to add a 2nd firebase project in my app when building on staging environment. I am using react-native-config and on android it was simple, I added the 2nd google-services.json on a staging folder and the 1st one on a production folder and it works fine when I build either production or staging with this in my build.gradle

productFlavors {
        production {}
        staging {}
}

On iOS I have 1 target, 4 schemas, 2 configurations enter image description here enter image description here

I want on my 2 schemas to have the production firebase and on the other 2 my staging firebase.

I found some guides like this, but this uses the staging config when building the app on simulator, even if I build the production schema.

0 Answers
Related