Releasing multiple apps for different organizations using single codebase

PriyanKaAgRawaLPriyanKaAgRawaL Member ✭✭

Hi,
I have single project & I need to release multiple apps to production for multiple organizations(Code always will be the same) just by changing few things below:
1. App icons, splash screen icons
2. Package name, app name
3. Google-service.json file(As apps using firebase push notifications)
How can I do it dynamically, so by just adding any .dll or .sln file my build will be ready for specific organization instead of doing those changes manually
Thank you

Answers

  • JohnHJohnH GBMember ✭✭✭✭✭

    @PriyanKaAgRawaL said:
    Hi,
    I have single project & I need to release multiple apps to production for multiple organizations(Code always will be the same) just by changing few things below:
    1. App icons, splash screen icons
    2. Package name, app name
    3. Google-service.json file(As apps using firebase push notifications)
    How can I do it dynamically, so by just adding any .dll or .sln file my build will be ready for specific organization instead of doing those changes manually
    Thank you

    You can have multiple start up projects, 1 for each client or organization.

  • PriyanKaAgRawaLPriyanKaAgRawaL Member ✭✭

    Your suggestion not bad. But in future we might have >100 clients. Whatever development we do, we have to copy that in all projects & that would be pain for developers.

  • JohnHJohnH GBMember ✭✭✭✭✭

    Not all projects. If you have 100 clients, then you have 100 different startup projects, 1 for each. All your other projects remain the same. Put the start up projects in a solution folder to make it easier to manage. All common code stays in the existing normal projects, those changes you only do once.

  • seanydaseanyda GBMember ✭✭✭✭✭

    Is this app just for Android? because if its for iOS you're going to run into some issues...
    https://techcrunch.com/2017/06/21/apple-goes-after-clones-and-spam-on-the-app-store/

  • PriyanKaAgRawaLPriyanKaAgRawaL Member ✭✭

    @JohnHair
    Sorry but I am not getting your point :neutral: .Could you be more precise. As I have written my requirement in question itself.
    & how can I integrate 1 android project to another(start up) since you are saying to do so.

  • PriyanKaAgRawaLPriyanKaAgRawaL Member ✭✭

    @seanyda said:
    Is this app just for Android? because if its for iOS you're going to run into some issues...
    https://techcrunch.com/2017/06/21/apple-goes-after-clones-and-spam-on-the-app-store/

    We can have different account too for each client. :smiley:

  • JohnHJohnH GBMember ✭✭✭✭✭

    @PriyanKaAgRawaL said:
    @JohnHair
    Sorry but I am not getting your point :neutral: .Could you be more precise. As I have written my requirement in question itself.
    & how can I integrate 1 android project to another(start up) since you are saying to do so.

    Not sure how I can be more precise. Create a new app project. Set the properties for it (different icons, splash screens etc). Add the code to run your main code that is in your common projects. Right click on the new project in the Solution Explorer, and set as Start Up project. Build, deploy etc etc.

  • PriyanKaAgRawaLPriyanKaAgRawaL Member ✭✭

    :wink: :wink: are you sure what you are saying
    Now help me According you
    1) Create a new app project. lets say ClientOneApp- OK
    2) Set the properties for it (different icons, splash screens etc)- OK
    3) Add the code to run your main code that is in your common projects--How to do that?
    4) Right click on the new project(ClientOneApp) in the Solution Explorer, and set as Start Up project. Build, deploy etc - OK

    Here in step 3 what should I add .dll, .sln or .csproj. dll making not possible from android projects. Or Common code project should in same solution?
    Thank you

  • JohnHJohnH GBMember ✭✭✭✭✭

    @PriyanKaAgRawaL said:
    :wink: :wink: are you sure what you are saying
    Now help me According you
    1) Create a new app project. lets say ClientOneApp- OK
    2) Set the properties for it (different icons, splash screens etc)- OK
    3) Add the code to run your main code that is in your common projects--How to do that?
    4) Right click on the new project(ClientOneApp) in the Solution Explorer, and set as Start Up project. Build, deploy etc - OK

    Here in step 3 what should I add .dll, .sln or .csproj. dll making not possible from android projects. Or Common code project should in same solution?
    Thank you

    Yes I'm sure, its how I do it. ;)
    You already have an app right? iOS and Android? You will already have a startup project selected in Solution Explorer. Look at that, just add the same project references and entrypoint code.

  • PriyanKaAgRawaLPriyanKaAgRawaL Member ✭✭
    edited June 2018

    @JohnHair
    Be more realistic. See my solution explorer & give me a hint to add SISAPP.Droid project (this is common project) reference in CrayonsApp which have only relevant information about client.
    You said-just add the same project references and entrypoint code how (˘⌣˘ )

    Thank you

  • PriyanKaAgRawaLPriyanKaAgRawaL Member ✭✭

    @seanyda
    If you are getting what John saying, you can help me out.

  • JohnHJohnH GBMember ✭✭✭✭✭

    @PriyanKaAgRawaL said:
    @JohnHair
    Be more realistic. See my solution explorer & give me a hint to add SISAPP.Droid project (this is common project) reference in CrayonsApp which have only relevant information about client.
    You said-just add the same project references and entrypoint code how (˘⌣˘ )

    Thank you

    In your screenshot you can see that CrayonsApp is your start up project. You should probably name that for what platform it is for btw.
    Create another project, call it CrayonsApp.Client1.iOS for example. Set it up like a new app with the client specific details. Add the same project references as the current start up project. Have the same start up code. Right click on it to set it to be your start up project. Build it. That is then your client specific app.

  • PriyanKaAgRawaLPriyanKaAgRawaL Member ✭✭

    @JohnHair
    I think you are kidding me. Since starting I have been asking only 1 question,
    How to add CommomProject reference in ClientProject or vice versa

  • JohnHJohnH GBMember ✭✭✭✭✭

    @PriyanKaAgRawaL said:
    @JohnHair
    I think you are kidding me. Since starting I have been asking only 1 question,
    How to add CommomProject reference in ClientProject or vice versa

    Do you not know how to add project references?
    Sorry, but I am not here to teach you basic Visual Studio usage. If you don't understand these instructions then I cannot help you any further.

  • PriyanKaAgRawaLPriyanKaAgRawaL Member ✭✭

    JohnHair
    Sorry for asking silly questions I was out of context :wink: . Now I got that I have to add dll of my common to Clients app. I have done so, still facing few issues. Please have looking on this thread. I got this issue after following your procedure only.

    https://stackoverflow.com/questions/51096346/starting-app-from-other-apps-entry-point-android/51096756?noredirect=1#comment89184258_51096756

Sign In or Register to comment.