maxkomarychev / react-native-ultimate-config

Config that works
MIT License
262 stars 31 forks source link

How to manage multiple ios google-service-plist while using react native ultimate config? #82

Open MWaqasHussain-dev opened 2 years ago

MWaqasHussain-dev commented 2 years ago

I have handled the multi flavor part (Like DEV, STAG, PROD) for both android and ios ....

but i am stuck with with multiple google infoPlist file.... as i have three flavors so there would be 3 Plist file of firebase.....

How to manage and connect them when pre-action run or any other alternative for DEV, STAG, PROD.. Any idea ?

michalpazur commented 2 years ago

What helped me is this great project. You can use .rnucrc.js file to copy files while changing the .env files. You can copy whatever you want, I use it to copy icons for different versions of the app as well as Firebase configuration files.

aymkin commented 2 years ago

@MWaqasHussain-dev pay attention to this file https://github.com/isilher/red-vs-blue/blob/master/.rnucrc.js

You can keep your different Google files somewhere in the project, let's say in folder white-label, and copy them to the ios or android folder during the env setup.

dawidchyrzynski commented 2 years ago

@MWaqasHussain-dev This may help: https://stackoverflow.com/a/50731611

quicksilverr commented 9 months ago

Hye @aymkin @michalpazur But during add the base file, do we check copy items if needed and select create groups? Or just check copy reference?