Setup Build Types on Fabric in Android Project

Find out
Normally in a project, Build Type is used for different development stages, such as Debug and Release. In practical, Debug might output some logs. But basically Debug and Release are considered as a same application.

Product flavors can let your application have different versions, such as free or paid.

Build Types

  • App packaging
  • proguard file

ProductFlavor

With productFlavor, you can setup

  • Diff config
  • Diff app name
  • Diff version

Also you can set a different value on applicationId, minSdkVersion, targetSdkVersion, versionCode and versionName.

To add a new flavor:

The approach is to use the Tools -> Build Flavors.

A full example on this:
[gist https://gist.github.com/arkilis/8e2fff579e542b5a7c4d41f3189bc413/]

Reference
http://www.needone.app/?p=1015

About: arkilis


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.