/fuel-stetho-client

Source file to integrate Stetho into Fuel - The easiest HTTP networking library for Kotlin/Android

Primary LanguageKotlinMIT LicenseMIT

Integrates Stetho into Fuel

Set the client instance, preferably in Application.onCreate():

if (BuildConfig.DEBUG) {
	FuelManager.instance.client = FuelStethoClient()
}

build.gradle needs to be extended as well:

dependencies {
	compile 'com.facebook.stetho:stetho:1.4.2'
	compile 'com.facebook.stetho:stetho-urlconnection:1.4.2'
}

Notes

  • The call to StethoURLConnectionManager.httpExchangeFailed() is missing.