Create multiple flavors of an Android app using gradle script

Product Flavor is a very powerful feature available in the Android gradle plugin that allows us to manage different “flavors” of an application.

In this blog, we are going to learn, how to design and build a single application with multiple flavors, which can be pushed to the Play Store and deployed on the same device simultaneously.

Shekhar Sahu's avatarAndroid Experience

I’ve been asked sometimes on how to work with different hosts, different icons, or even different package names, deppending on different versions of the same app.

There are lot of reasons to do this and one easy way to go: Product Flavors.

Product Flavor is a very powerful feature available in the Android gradle plugin that allows us to manage different “flavors” of an application.

In this blog, we are going to learn, how to design and build a single application with multiple flavors, which can be pushed to the Play Store and deployed on the same device simultaneously.

You can use the productFlavors closure of your app/build.gradle file to define different variants of your product.

In addition to flavors, there is another very important concept regarding building android apps, called “build types”.

Once the changes have been made on app/build.gradle file, a yellow warning bar will appear across the…

View original post 403 more words

First hustle at Ruby Rampage

Ruby Rampage Experience! Excellent read.

sakshiparakh's avatarInnocent Blogging

Ruby Rampage brings about a challenge of building an application within the time span of 48 hours. A challenge that galvanized me into participation. It was my first experience. As the competition approached, my levels of excitement and anxiety kept scaling up.; not because I was creating an application for the first time, but it was the first time I had a tight time constraint to build an entire end-to-end application.

Questions like “What could be built?”, “Who should I team up with?” started storming in my head. Right when I was trying to figure out my ways, one of my colleagues approached me with an opportunity to be the fourth member in their existing group of three “Rampagers”.  There you go – problem-1 solved! Now, it was time to tackle problem-2; What should we develop?

During a gift exchange event in our office, the idea of GIFT GALORE had…

View original post 641 more words