All jobs / Mobile developer / Release
Mobile developer interview question · 1–3 years
On Android, what is the difference between a build type and a product flavor, and what belongs in each?
The strongest answer
A build type is how it is built — debuggable, or optimised and signed for release. A flavor is what is built: a brand with its own id, name and endpoints. Each pair is a variant
Why it works
Exactly — how versus what, and the variant is the pair. That is what keeps configuration out of the code.
What a good answer covers
- Type is how; flavor is what.
- Build type: debuggable versus release.
- Flavor: brand, id, endpoints.
- Never hand-edit config before a release.
Answers that fall short
- Close, but not the strongest: Build types are debug and release, and flavors are for different versions of the app
Right as far as it goes. Say what a flavor changes — id, name, endpoints — and that variants are the combinations. - Weak: They are two names for the same thing; you can use either one to point at a staging server
They are different axes, and collapsing them is why teams end up unable to build staging for one brand. - Red flag: I keep one variant and edit the server URL constant by hand before each release
A hand-edited constant is how a debug endpoint reaches the store; configuration belongs to the variant.
Who gets asked this
More Release questions
- Who gets the build before external TestFlight / open testing?
- Crash-free is fine but one cluster is 30% of reports. How do you triage?
- CI for iOS + Android is 45 minutes, mostly compiling the same modules. What do you do?
- Legal wants a flow that “probably” fails a store guideline. Ship and argue, or change the product?
- A risky payments SDK bump is going to the store. How do you roll it out?
- You have white-label flavors and two OS families. How does CI stay honest?
- A bad mobile release is already on 10% of devices. What is faster than a store review?
- A screen ships that VoiceOver cannot complete. Who blocks the release?