Grab has implemented Project Bonsai to systematically reduce Android app download and disk sizes. This initiative focuses on measurement, reduction, and containment strategies. Key technical efforts include developing a custom analytics tool (App Sizer) for detailed app binary analysis, optimizing DEX file size by addressing transitive R classes and third-party library bloat, and refining resource management through techniques like using vector images and WebP format, and enabling language resource optimization. This post details the successful enablement of R8 optimization for the Grab Android app, achieving significant improvements in app size, startup time, and stability through innovative AI-assisted debugging techniques, a pragmatic testing strategy, and an optimized feedback loop.
All Grab trails