Introduction

For one of my recent personal projects, I decided to make Jetpack Compose a first-class citizen. For me, this meant that my app would use a single activity, and all the navigation would be performed using Compose.

When I originally started investigating the feasibility of this, Jetpack Compose Navigation did not exist, and there was no way to inject a View Model into a Composable without an Android Activity, Fragment or View to facilitate the injection.

Thankfully, roughly six months prior to this article’s publication, ‘Jetpack Compose Navigation’ and Compose support for Dagger Hilt was introduced to the community. …

Lachlan McKee

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store