Created
January 16, 2018 20:46
-
-
Save LordRaydenMK/03545eabda63dc316a54b6cd64ca5b3a to your computer and use it in GitHub Desktop.
Dagger dependency injection - network module
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 | |
public class NetworkModule { | |
@Provides | |
OkHttpClient provideOkHttpClient() { | |
return new OkHttpClient.Builder() | |
.build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment