In this series, you will learn how to produce separate APKs from the same code base using product flavors. Each flavor will be branded differently, including a custom launcher icon, color scheme, and app name.
In this screencast, which is part 1 of the series, you will learn how to:
- Define product flavors in your gradle file, each with a custom application id
- Build and install flavored variants
In the next video you will learn how to use the main source set to share java and resource files, and also how to create custom source sets for each flavor to provide custom resource files for each flavored variant.
You can use these same techniques in any scenario where you want to build apps with similar functionality and tweak them slightly, such as having a free and paid version of your application.
For the More Curious...Android Build Variants
Transcripts are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.
Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.