Advertisement
shyhjie

Untitled

Dec 27th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.29 KB | None | 0 0
  1. val appModule = module {
  2.  
  3.         // single instance of HelloRepository
  4.         single<BaseNetworkRepository> { BaseNetworkRepositoryImpl() }
  5.         single<NetworkService> { (base: BaseNetworkRepository, retrofit: Retrofit) ->
  6.             base.giveNetworkService(retrofit)
  7.         }
  8.  
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement