Scoping Activities Subcomponents with dagger-android (2/2)

Leveraging dagger-android

The definition of the subcomponent used to scope the lifetime of the dependencies to the duration of a user session

Mimicking dagger-android

Base class of the activities which requires that the user is logged in.
Base class of the activities which are not bound to the user scope

Managing the scopes

--

--

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