It is Part 3 in a series of the setup guide to configure the Staging and Production environments in the application.

Now, let us focus on setting up the android and iOS apps to have separate bundle ids, separate app name and Google Service files.

3.1 Android Setup

Setting up the app ids for the android has been covered up in the Part 1.

Our next step would be to select the correct Google-Services.json for the currently selected build variant. To do so, we would have to make 2 folders under the path android/app/src/ with the names staging and production. Under these 2…


It is Part 2 in a series of the setup guide to configure the Staging and Production environments in the application.

To configure the iOS, we will have one scheme per environment file, so that we can easily toggle between them.

Start by creating a new scheme:

  • In the Xcode menu, go to Product > Scheme > Edit Scheme
  • Click Duplicate Scheme in the bottom

It is Part 1 in a series of the setup guide to configure the Staging and Production environments in the application.

For android, we will be using the product flavours. In the file android/app/build.gradle, we will add 2 flavours for our staging and release configuration after buildTypes:

flavorDimensions "appType"productFlavors {  staging {    dimension "appType"    applicationIdSuffix ".staging"    resValue "string", "app_name", "Config Demo-Staging"  }  production {    dimension "appType"    applicationIdSuffix ".production"    resValue "string", "app_name", "Config Demo"  }
}

Note: You can read more about the android build variants here.

As you can see here, we are defining 2 separate parameters for our…


Photo by Danil Shostak on Unsplash

Today, I am going to make your life as a React Native developer bit easier. I am going to share how to configure Production and Staging environment configurations in your React Native Application.

Why do we need this configuration setup?

While developing an application, most probably, a situation will come, when you will need a different configuration setup for Development and Production environments to keep all of your Testing Environment separate from the Released(Production) Environment and test your features in the Testing(Staging) environment before publishing to the Production. For example, the API urls, separate bundle ids and application ids, separate…

Ajay Kumar

Software Engineer @ucreate.it

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store