Last active
July 23, 2019 15:33
-
-
Save manuelvicnt/e94a233fb7f6ecf3e31e8210a11a73e8 to your computer and use it in GitHub Desktop.
Static @provides functions in Dagger with Kotlin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Module | |
object NetworkModule { | |
@JvmStatic | |
@Provides | |
fun provideOkHttpClient(): OkHttpClient { | |
return OkHttpClient.Builder().build() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment