opkjump.blogg.se

Android studio build variants
Android studio build variants









android studio build variants

Let’s see how we can proceed by creating product flavours and here are the steps. Now consider you need to have the same app in two different colours say red and green.

android studio build variants

To create product flavours you need to define rules in the adle which you’ll learn shortly. Product flavours lets you create multiple variants of an android app while using a single codebase. This can be achieved using product flavours. Similarly, android apps can have the same base functionalities with changes to some of the features like styles, logo etc. You use same core ingredients to make the base but will use different toppings for each one to have a different taste. In simple words - Consider you’re preparing pizzas. You can achieve these scenarios by using product flavours or flavour dimensions feature in android. So maintaining different codebases might not be a good approach in such a situation. When there is a change in the code, we would need to do the same change in both the codebases, and this might be a tedious process when the codebase is too large. But there can be some technical difficulties to maintaining different codebases. If you are in these kind of situations, the quick thing that might come to your mind is to maintain a separate codebase for both variants of the app. White labelling in Android simply means taking an existing app and rebranding it or customising it by changing the app’s icon, theme, styles, name, APIs, etc. Scenario 4: You would like to white label your app. Scenario 3 : You would like to have two apps with same core functionalities, but a few features you want to show only in one of the app and hide those in the other one. In that case, only the end point changes but the core app features remains the same. Scenario 2 : You would like to customise the URL which your app is pointing. Suppose you want to have the same app with a different style, colours, logo etc. Scenario 1 : You are developing an android application which is having it’s own colours, styles, logo etc. The below are the scenarios that you might come across in customising your app. You are developing an android application and there can be different scenarios when you would like to customise the existing app with some small changes.











Android studio build variants