helper unziping files from server
To get a Git project into your build:
Step 1. Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
compile 'com.github.Omega-R:OmegaGZipInterceptor:1.1.0'
}
Example of usage
OkHttpClient client = new OkHttpClient.Builder()
.retryOnConnectionFailure(true)
.addInterceptor(new AcceptGzipInterceptor())
.addInterceptor(new UngzippingInterceptor())
.build();