Skip to content

Instantly share code, notes, and snippets.

@tfcporciuncula
Created March 8, 2023 12:50
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 tfcporciuncula/f9677e4d3d45a7a386e2bd280ecda740 to your computer and use it in GitHub Desktop.
Save tfcporciuncula/f9677e4d3d45a7a386e2bd280ecda740 to your computer and use it in GitHub Desktop.
- @Qualifier annotation class SpecialGreeting1
- @Qualifier annotation class SpecialGreeting2
+ typealias SpecialGreeting1 = String
+ typealias SpecialGreeting2 = String

...

-  @Module
-   @InstallIn(SingletonComponent::class)
-   interface Bindings {
-     @Binds fun bind(impl: GreetingConcatenatorImpl): GreetingConcatenator
-   }
+  @Provides
+  fun GreetingConcatenatorImpl.bind(): GreetingConcatenator = this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment