I developed an application with Xamarin, for both iOS and Android. I want to give this application to 2 companies, each one of them has different needs, so they need to have different features and a different logo and name.
For example, given CompanyA
and CompanyB
, CompanyA
wants to call the app:"Application A" meanwhile CompanyB
wants to call it "Application B" and obviously each ones with different icons. Also CompanyA wants the mapFeature, while CompanyB want to have a list of number(example of random thing) and CompanyA doesn't.
I want to compile this application like if it was modular, I thought to create a BaseAppSettings
class, like this:
public class BaseAppSettings{
private String _appTitle;
private String _appIcon; //path to icon maybe?
private boolean _mapFeature; // if true I'll do something like #if (_mapFeature == true ) addMap;
other parameters;
}
From which I'll derivate different class for each Company that will use the app setting for each ones the feature and the parameter that they want.
Is this a correct way or a best-practice to do this? I wasn't able to find anything even if I find this very relevant to maximize the reusability of my code.
Hoping to be clear enough, thank you for your time