icon

Firebase Change File by environment and branch

Utility to be able to differentiate your firebase projects by development environment

Change the firebase connection file according to the development branch that you are using, usually one has two environments such as develop or production which should not consume the same firebase project, this step will help us to switch between firebase projects according to our environment developmental

  • Important Suggestion *: You must create a folder in the root of your project called 'firebase_env' and inside have two folders for production and development, the step suggests in its variables and the corresponding folders.

Similar steps

Changes a selected value in a targeted file.

Exports environment variables to be able to detect if the currently running build's status has changed to a previous one.

Updates the Android applicationId in your project's build.gradle file.

Updates the Android versionCode and versionName in your project's build.gradle file.