My iPhone app consumes a Java web service in order to get data. At my company we have 3 environments – development, testing, production. Each environment’s URL, that points to the web service, is different. Thus, each time we promote the project to the next environment I must change the hard-coded URL in the iPhone code to match that of the targeted environment. Has anyone devised a strategy to handle this either on the iPhone itself or in the service layer?
Share
Try storing the variable part of the URL in your app’s
info.plistfile. You can change that w/o rebuilding.If more config changes are needed, VCS branching may be what you need.