Architecting Your Android Library
summary
Step-by-step recipe for turning an app into a reusable Android library: split a monolithic app into modules, convert or create a library module that builds an AAR file, add Gradle publish scripts, create a Sonatype ticket and verify GitHub ownership, generate GPG keys and upload to Sonatype Nexus staging, then promote to Maven Central so artifacts are downloadable. Practical gotchas covered: resource merge conflicts (use consistent prefixes), transitive jar handling, fat AAR bundling, and using R2 instead of R for Butter Knife.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:53What is an Android library
- 3:20Creating a library module
- 5:50Distributing your library
- 8:42Publishing to Maven Central
- 11:57Design considerations
- 14:06Facade pattern explained
- 16:37Development considerations
- 20:37ProGuard and testing
- 22:47Q&A or summary
related talks
44mBuilding and Publishing Android Libraries the Missing Guide
47mThe definitive guide to Android library development
40mModularizing Android Applications
34mIntro to App Modularization
37mAndroid Librarian's Guide: Building Robust Libraries a…
32mWriting Android Libraries
27mLive Coding: Let’s Build an Android Library
43mLibrary Developer Confidential
