Created
May 28, 2020 08:40
-
-
Save shikto1/7128c44ba20132ae17cd56cc23e41bf9 to your computer and use it in GitHub Desktop.
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
| OkHttpClient okHttpClient = new OkHttpClient.Builder() | |
| // .addInterceptor(provideHttpLoggingInterceptor()) // For HTTP request & Response data logging | |
| .addInterceptor(OFFLINE_INTERCEPTOR) | |
| .addNetworkInterceptor(ONLINE_INTERCEPTOR) | |
| .cache(cache) | |
| .build(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment