Swiggy Jul 19, 2022

Automating Mobile Event Verification

Article Summary

Swiggy was drowning in analytics chaos. Thousands of events per session, scattered specs across docs, and manual verification eating up engineering time.

The Swiggy mobile team built ARD Automator, an internal tool that transforms how they verify mobile analytics events. Using Kotlin Multiplatform and Git-based contracts, they automated what was previously a fragmented manual process.

Key Takeaways

Critical Insight

Swiggy automated mobile event verification with a cross-platform tool that cut QA time by 66% and caught critical analytics bugs that manual testing missed.

The team is now working on auto-generating event handlers at build time to eliminate implementation differences entirely.

About This Article

Problem

Swiggy's analytics workflow had no single source of truth. Specifications were scattered across documents with no change history, making it impossible to keep Android and iOS platforms consistent.

Solution

Anik Raj C's team built machine-readable event contracts in Git. These contracts support complex validators like regex patterns, exhaustive lists, and nested JSON objects. This enabled automated verification without needing manual QA.

Impact

The tool found gaps in the Ads Analytics SDK and helped Swiggy's Cx Android, iOS, Dineout, Instamart, Minis, and partner apps adopt high event coverage within months of launch.

Recent from Swiggy

Related Articles