Android Librarian's Guide: Building Robust Libraries a…
summary
Maintains over 100 open‑source Android projects (skydoves) with ~20 million downloads per year and installs on ~1.5 billion devices, and shares concrete practices: enable explicit API mode to force visibility and return types, add JVM synthetic to prevent Java access to Kotlin internals, use binary‑compatibility‑validator or Metalava and the generated .api files to detect signature breaks, publish resource restrictions via public.xml and resource prefixes, and prefer AGP’s non‑transitive R class to avoid multidex explosions.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:05API surfaces in libraries
- 5:05Visibility and misuse prevention
- 9:05API life cycles with duplication
- 15:23Binary compatibility
- 19:02UI components and resources
- 26:26Transitive dependencies
- 32:33Multidex with non-transitive R
- 35:50Key takeaways
related talks
47mThe definitive guide to Android library development
32mWriting Android Libraries
39mThe definitive guide to Android library development
34mSuccessfully publishing a tested, upgradeable and documented Open Source Library
26mArchitecting Your Android Library
44mBuilding and Publishing Android Libraries the Missing Guide
33mAndroid Open-source repositories 101: Everything you always wanted …
39mAndroid Open-source repositories 101
