I’ve a cellular app that has 3 environments – growth, acceptance, and manufacturing. Once I add the app to the app retailer (for instance ios) the app ought to use the acceptance surroundings when in take a look at flight and the manufacturing surroundings for when it’s made publicly accessible on the shop. Every surroundings incorporates completely different API endpoints which level to completely different servers.
At the moment I add a model to testflight (Model 1.0, Model string 1.0.0). As soon as testing is full, I increment the model to 2.0 while holding the model string as 1.0.0 and rebuild the app utilizing the manufacturing surroundings, deploy to the shop, bypass testflight and publish to the general public retailer.
While the above works, it does not really feel proper. Can anybody let me know if there’s a higher method to do that?