Android flavours: white-labeling an app

Thomas Middel
ProAndroidDev

--

White-label apps can be a good outcome when you can sell a certain concept to multiple companies, and only need to adjust some minor things before shipping for a new client. Apart from that, it can also come in handy when you have different versions of your app while the main functionality remains the same. A white-label project means you develop your main app once and make different flavours of that app for each version. That way you can rapidly develop the app, move quickly when a new client comes in, and fix stuff fast when bugs appear.

So what if we have this amazing idea, and it applies to multiple companies? Or what if we need different versions of an app, but they share most of the core functionality? We can simply create our project as we normally do but can take some stuff into account straight from the beginning. Already have a solid app and want to white-label that? No worries, the same stuff applies to you!

Product flavours

You might’ve used them before: product flavours in your Gradle file. They’re good for setting up multiple environments for example: staging, production, etc. They’re super handy for setting up multiple flavours as well!

Let’s have a short look into how the setup will look like. We can create our app like we normally would. All the core functionality will go…

--

--