DO YOU SEE A DIFFERENCE BETWEEN FLAVORS AND PROJECT LIBRARIES?
WHICH ONE WOULD APPLY IN DIFFERENT SITUATIONS?

Subject Android
Institute Ahsanullah Institute of Information and Communication Technology 2014

Product Flavors are used when a single project must return different versions of the same application. Think for instance of an application that needs to use GoogleMaps vs. another application that needs to use Blackberry or Bing Maps. Or a free vs. a paid application.

A library is a packaging of common functionality that will be reused in differen applications and eventually to third party members that will require making use of it. As the Gradle Plugin User Guide states, “if the answer to “Is this the same application?” is yes, then this [product flavor] is probably the way to go over Library Projects.”

Login to post your comment.