The What, Why, and How of Mastering App Size
Nov 1, 2023Viktor Petrovski (Android Engineer), Dmitry Povolotskyi (Senior iOS Engineer), and Bruno Rocha (Senior iOS Engineer)
Summary
This post details Spotify's multi-faceted approach to managing app size. It introduces pre-merge checks using Emerge Tools to analyze PR impact on app size, with a 50KB threshold for manual review. A post-merge Slack channel tracks significant size changes. For ongoing growth, it describes using Emerge's Compilation Unit Attribution and in-house scripts to evaluate compilation unit and resource file sizes, attributing them to owning teams. This data is visualized in Backstage for team accountability and comparison. The post also discusses the inherent trade-offs in app size optimization.