Assembling multiple builds

For Chanse Games, we have multiple build flavors which is common in many Android projects. The build flavors what we have here are dev and prod. So our usual way of building used to be

  • assembleDevDebug
  • assembleProdDebug
  • installDevDebug
  • installProdDebug

Today I learned that we can add any number of combinations of these above commands to build the apk.

gradlew assembleProdRelease assembleProdDebug installDevDebug

This helped me to identify all my flavored apks to check the size difference after any third party library is added to the system. You may use it for some other purpose. Though it is a small learning thought of sharing:)

If you are a good learner and want to share your day to day learning experience, then be part of Chanse Today and share your learnings with community.