multi-module Android application
summary
An Android app was split from one large Gradle module into 40 modules to speed builds: full builds fell from ~36s to ~31s with parallel modules and incremental edits from ~14s to ~10s for well-structured splits. Techniques include using implementation instead of api to limit recompiles, extracting heavy bytecode tooling (example: moving Realm bytecode weaving into its own module, cutting a 6m46s build to ~2m20s), watching annotation-processing scope, and using Dagger Android support plus dynamic feature modules to avoid cyclic dependencies.
AI-written summary · about
chapters (10)
- 0:00Multi-module Android apps
- 1:13Modularization benefits and types
- 6:41AGP 3.0+ build speed
- 18:26Measuring build time
- 24:28Speedup with plugins
- 30:37Dependency design for builds
- 35:29Horizontal module splitting
- 39:39Vertical feature splitting
- 44:16Migrating to multi-module
- 50:53Summary and outlook
related talks
34mIntro to App Modularization
30mModular Android Development
37mA Complete Journey of Android Modularisation
40mModularizing Android Applications
32mBuild a modular Android app architecture
27mModularising the right way
40mScaling Android Apps
39mScaling an Android App from 1 to 100 developers with modularization.
