// the find
commonsguy/cw-androidarch
Source Code for the Book "Android's Architecture Components"
Sample code from Mark Murphy's book on Android Architecture Components, covering Room, LiveData, ViewModel, Paging, and related patterns as they existed in 2017-2018. This is a teaching artifact, not a library — it exists to give book readers runnable examples alongside the text.
The repo is organized by chapter/feature rather than one monolithic app, so you can open exactly the sample you need without wading through unrelated code. Murphy is one of the more reliable Android educators, and the samples tend to show actual idiomatic usage rather than toy Hello World code. The inclusion of androidTest for several modules means the examples demonstrate how to test these patterns, not just implement them. Room schema JSON files are committed alongside the code, which is a good habit the samples model correctly.
Last push was January 2019 — this predates Kotlin becoming the de facto Android language, Coroutines replacing RxJava for async, Hilt replacing manual DI, and the Paging 3 rewrite. Anyone following these samples today will be learning patterns that the Android team has since deprecated or substantially changed. The book requires a paid Warescription to access, so the code without the prose is partial context at best. Several samples vendor-copy third-party source files directly (SQLiteAssetHelper) instead of taking a proper dependency, which is a bad habit to absorb.