Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Static @provides in an abstract Module
abstract class NetworkModule {
@Binds abstract fun provideService(retrofitService: RetrofitService): Service
companion object {
fun provideOkHttpClient(): OkHttpClient {
return return OkHttpClient.Builder().build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.