A discussion of how to use Cash App's Molecule to build a dependency injection friendly presenter layer with the Compose core runtime, nicely decoupled from view code.
One warning, I made a mistake in this preso: I said that Compose's support for novel form factors requires paying the old configuration change tax, and coping with multiple Activity instances.
This is false, and the strong guidance of the #Compose team continues to be to set your manifest to handle all config changes manually. With that done, an #Android app rooted in Compose UI has no reason to use #Molecule for anything outside of testing.
Delivered at droidcon NYC, September 2022.: https://www.droidcon.com/2022/09/29/navigation-and-dependency-injection-in-compose/
Original slide deck, with speaker notes: https://docs.google.com/presentation/d/1yXXjJ2n0IzZZBP3MoIxmBEp_pXW6lohh9TnWCNGGDYQ/edit#slide=id.g4088c7565d_2_5