

We can easily edit or add more build types and product flavors, creating way too many build variants we need. Even if only second one is mentioned in adle file in buildTypes section. Types and FlavorsĪfter we create new project we already have 2 build variants to select: debug and release. Starting from faster builds, through work automation, to easer development and releasing process. The more complex app you are working on, bigger benefits you may get. In Android Studio you start new project, type app name and select minimum SDK and Android Studio generates some files that you don’t event want to touch.īut you should.

It also sucks if you have to wait minutes until build is finished, or manually change config for releases. But just like this worker on left, tightening the screw of Empire State Building skeleton, developers should polish their builds - build config itself is not the application (like skeleton is not the building), but application is useless if you cannot build release version. Each technology, language, framework has it’s own rules so there are no universal patterns, Uncle Bob will not help us here.

This is not the most exciting part of software engineering. #2 Build time optimization Build configuration! This is first part in series of articles about Android build configuration, all parts will be linked right below.
