From the course: Distributing Your Android App for Kotlin Developers
Unlock the full course today
Join today to access over 22,600 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.
Contents
-
-
-
-
Explore the sample app2m 41s
-
(Locked)
Clean up your code5m 53s
-
(Locked)
Manage the app version3m 8s
-
(Locked)
Minify the app with R82m 40s
-
(Locked)
Configure build types2m 40s
-
(Locked)
Configure multiple app flavors6m 30s
-
(Locked)
Create build variants4m 29s
-
(Locked)
Build signed packages8m 10s
-
-
-
-
-