Skip to content

Instantly share code, notes, and snippets.

@ch8n
Created September 22, 2020 04:45
Show Gist options
  • Save ch8n/8beeea0cf2b8ef74dafc4aa324e5af0c to your computer and use it in GitHub Desktop.
Save ch8n/8beeea0cf2b8ef74dafc4aa324e5af0c to your computer and use it in GitHub Desktop.
for medium article
object AppResolver {
...previous functions
// step 1, create provider for movie respository
fun provideMovieRepository()
= MovieRepository(??)
// step 2, movie repository has been already resolved above
fun provideMovieRepository(movieSource: MovieSource)
= MovieRepository(movieSource)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment