Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Build Configurations: types, variants and flavors.

Build Configurations: types, variants and flavors.

A talk focusing on app build configurations, how to come up with different build variants and why we need them.

Kibet Theophilus

September 20, 2022
Tweet

More Decks by Kibet Theophilus

Other Decks in Technology

Transcript

  1. Why? - Different development cycles - debug, uat, prod -

    Different app versions - themes, icons
  2. Build Types: ➔ Properties for building and packaging an app

    • debug - enable debug options • release - shrink, obfuscate and sign app ❖ uat - base url
  3. cont: • debuggable - true/false • applicationIdSuffix - “.uat” •

    versionNameSuffix - “-uat” • signingConfig • minifyEnabled - true/false • buildConfig
  4. Product Flavors: ➔ Represents different versions of the app ➔

    Can be customized to use different code and resources while sharing common parts
  5. cont: • minSdk • targetSdk • versionCode • versionName •

    applicationId • applicationIdSuffix • buildConfig
  6. Build Variants: Cross product of a build type and product

    flavor. NB: Not configured directly but made automatically by gradle.