From the course: Distributing Your Android App for Kotlin Developers
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Configure build types - Android Tutorial
From the course: Distributing Your Android App for Kotlin Developers
Configure build types
- [Instructor] There are many situations in which you may want to publish multiple different variations of your application. You've probably seen it before, an app listed on the store twice. One limited feature free version and one full featured paid version. So how do you do this? There are two completely separate Android Studio projects. That would be enormously tedious to maintain. Android solves this by allowing you to define application flavors and build types within your code, which are then combined to create the different build variants so that you can build multiple packages from the same source. In fact, you have been using build variants this whole time without even knowing it. Let's start with build types first. In Android Studio, in the project outline on the left, open up the app modules gradle file. You should have a defaultConfig block and a buildTypes block with a release block within it. By…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.