Skip to content

Instantly share code, notes, and snippets.

@itsandreramon
Created December 25, 2023 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsandreramon/fc49ee4e375375fbe69e75742520d04c to your computer and use it in GitHub Desktop.
Save itsandreramon/fc49ee4e375375fbe69e75742520d04c to your computer and use it in GitHub Desktop.
class App : Application() {
@Inject lateinit var userSessionManager: UserSessionManager
val appComponent: AppComponent by lazy {
DaggerAppComponent
.factory()
.create(this)
}
override fun onCreate() {
super.onCreate()
appComponent.inject(this)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment