. Learn how to develop, free and pro versions of your applications. How to perform debug only configurations and how to use Build Variants in your day to day Android Development.
UNDERSTANDINGANDROIDBUILDVARIANTS
View Slide
Donn Felker@donnfelker4 Time Android Book AuthorCo-Host of FragmentedPodcastdonnfelker.com | caster.io
BUILD VARIANTSALL UP IN YOUR GRILL
Create FlexibleRuntimeEnvironmentsLIKE WHOA
No, for real, what are they?Build variants allow you to quickly createdifferent versions of your app from the samesource code. Kinda.
Build variantsfacilitatecomposability withinthe Android buildsystem.
Yo, wheres theCODE?!?!here: github.com/casterio
simple exampleCreating a debug packagebranch: debug-suffix
Crazy, I know.Ok, it's not really that impressive.
app-debug.apkmore like lame-debug.apklets fix thatbranch: change-app-name
WickedCool-debug.apkMuch better.Moving on ...
Mmm Product FlavorsFree and Pro Versions
Why do I need freeand pro versions?
Some people like to watch their money
Nah, I'm kidding.Its about exposureand conversions
We all love free stuff.If you like it, firstones on the house.AKA: Trials (aka: drug dealer model)
Free and PaidVersionsbranch: product-flavors
I know, right?Ok, maybe just a little
Android ManifestValuesUpdate the manifest at buildtime with the manifest mergerbranch: manifest-placeholders
Release / DebugComposability
Say what?Debug only logging/etcRelease only Crashlytics Logging
Custom Resources!Different layouts,icons, etc at runtimebranch: custom-resources
There is a lot more,but that should getyou going in the rightdirection.
@donnfelkerthanks