Skip to content

Instantly share code, notes, and snippets.

@tfcporciuncula
Created March 8, 2023 17:15
Show Gist options
  • Save tfcporciuncula/d363aba8f1a0bb42c49d578f262377ff to your computer and use it in GitHub Desktop.
Save tfcporciuncula/d363aba8f1a0bb42c49d578f262377ff to your computer and use it in GitHub Desktop.
 class GreeterApplication : Application(), ApplicationComponentProvider {
    override val component by lazy(LazyThreadSafetyMode.NONE) {
-     DaggerApplicationComponent.factory().build(applicationContext)
+     ApplicationComponent::class.create(applicationContext)
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment