Finch is an android library built on top of OkHttp3, which is responsible for intercepting all the network calls and for display in UI.
Can be plugged in to any app which uses okhttp in their networking stack.
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Add the dependency:
dependencies {
debugImplementation 'com.github.kernel0x.finch:library:1.0.0'
releaseImplementation 'com.github.kernel0x.finch:library-no-op:1.0.0'
}
Create an instance of FinchInterceptor and add it to the method addInterceptor in building OkHttp client.
OkHttpClient okHttpClient = new OkHttpClient.Builder()
.addInterceptor(new FinchInterceptor(context))
.build();
Checkout the Releases tab for all release info.