Case study · Food & drink · Saudi Arabia
Barns: white-label Android app with 100K+ installs
Android application for one of Saudi Arabia's largest coffee chains — menu browsing, drink customisation, pickup and delivery, loyalty and payments — built from the COFE white-label platform, not a standalone fork.
- 100K+ downloads
- 1 codebase
- 12+ sibling brands
- 40+ Gradle modules
Context
Barns needed a branded mobile ordering channel competitive with international coffee apps — bilingual UX, loyalty, wallet and regional payment methods — while COFE App needed to onboard new brands without multiplying Android repositories.
Constraints
- Brand-specific theming, menu taxonomy and promotional rules without code forks.
- Saudi payment rails — mada, STC Pay, Apple Pay/Google Pay, wallet balance, gift cards.
- Shared platform upgrades (security patches, Play policy, SDK bumps) must propagate to all brands.
- Analytics and attribution per brand for marketing teams.
Architecture decisions
- Vendor configurators — build flavours + remote config drive brand identity and feature flags.
- Feature modules — cart, checkout, order tracking, subscriptions, rewards isolated in Gradle modules with Clean Architecture boundaries.
- Compose UI + MVI — unidirectional state; StateFlow for order and cart pipelines.
- PaymentProvider seam — regional methods plugged in without touching checkout composables (payment integration).
- EventDataParser — seven analytics SDKs isolated per module.
Outcomes
- 100K+ Google Play installs on the public listing.
- Brand live alongside 11+ other white-label apps from the same platform (COFE case study).
- Platform releases ship to all brands from one CI pipeline.