react-native-ultimate-config icon indicating copy to clipboard operation
react-native-ultimate-config copied to clipboard

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

Open MWaqasHussain-dev opened this issue 3 years ago • 4 comments

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 ?

MWaqasHussain-dev avatar Feb 03 '22 13:02 MWaqasHussain-dev

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.

michalpazur avatar Jun 15 '22 17:06 michalpazur

@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.

aymkin avatar Aug 24 '22 06:08 aymkin

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

dawidchyrzynski avatar Sep 22 '22 14:09 dawidchyrzynski

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?

quicksilverr avatar Jan 04 '24 07:01 quicksilverr