Skip to content

Instantly share code, notes, and snippets.

@manuelvicnt
Last active July 22, 2019 17:20
Show Gist options
  • Save manuelvicnt/fb3eee591233eee9952cef45eb060cd6 to your computer and use it in GitHub Desktop.
Save manuelvicnt/fb3eee591233eee9952cef45eb060cd6 to your computer and use it in GitHub Desktop.
@Provides
// configures a `Printer`
fun providePrinter(): Printer = NetworkPrinter()
@Provides
// configures a `NetworkPrinter`, not a plain `Printer`!
fun providePrinter() = NetworkPrinter()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment