The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.


Gradle Build Variants

You may think that the directory structure and files involved in an Android Studio project is a bit complicated. In truth, what you have seen so far is actually fairly simple, when you start to consider the real world of product development. Simple apps can get by with simple structures like we have seen so far, but:

In this chapter, we will explore the concept of “build variants” in Gradle and Android Studio and how you can take advantage of them for your projects.

Prerequisites

Understanding this chapter requires that you have read the chapters the core chapters of the book.

Objectives of the Project Structure

The preview of this section was abducted by space aliens.

Terminology

The preview of this section is en route to Mars.

Configuring the Stock Build Types

The preview of this section is being chased by zombies.

Adding Build Types

The preview of this section is off trying to sweet-talk the Khaleesi into providing us with a dragon.

Adding Product Flavors and Getting Build Variants

The preview of this section is in the process of being translated from its native Klingon.

Doing the Splits

The preview of this section was the victim of a MITM ('Martian in the middle') attack.

Gradle and Android Studio

The preview of this section is in the process of being translated from its native Klingon.