ardovic / finch

🖥 This library display of traffics OkHttp in UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Finch

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.

Finch

Gradle Dependency

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'
	}

How to works

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();

Releases

Checkout the Releases tab for all release info.

About

🖥 This library display of traffics OkHttp in UI


Languages

Language:Kotlin 98.2%Language:Java 1.8%