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.
Create build variants - Android Tutorial
From the course: Distributing Your Android App for Kotlin Developers
Create build variants
- [Instructor] Now, let's say for only the pro version, I want to make the about feature accessible to the user but leave it inaccessible in the free version. This could also be something else, like a picture of the day list feature, or a notification system. But this keeps it simple. In Android Studio, on the bottom left-hand side of your screen, you will see a tab called Build Variance. Click that to open up a list of modules and they're available Build Variance. You will see that the current selected variant is galaxy debug. If you want to change it, click where it says galaxy debug and select the build variant you want to work on. I want to add a feature to the pro version, which is the galaxy flavor. So, I will stay on the galaxy build variant. The easiest way to make the about module accessible in this variant is by changing the menu on the pod activity. So, the menu item that goes to the about page is enabled and…
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.