I just wanted a few thoughts on the best general approach that I could take in this situation. So, I'm working on a project that currently has a few different targets but in the future is potentially going to have more targets with significantly more differences across targets than we have right now. (Currently, out targets different in url's that requests are made out to, a few assets and some other basic UI differences). Now my question is, moving forward, what would be the best way to manage different targets- obviously one approach is to use preprocessor macros and have a bunch of #ifdefs but I was wondering if there are better approaches that people can suggest. In terms of the differences that I know for sure will be coming, we're definitely going to have to render different views based on the target we're running and also our actual request might also change (maybe our post request might have different parameters based on target etc.)
So outside of using target based conditional execution, what are some other approaches I could use here outside of just building separate applications since there's considerable similarity across the board?
Thanks