X Tutup
Skip to content

Latest commit

 

History

History
 
 

README.md

AndroidAsync and Ion Stetho support

Stetho is a tool that lets you log and view your network requests and more on Android.

Using Stetho with Ion

// typical initialization of Stetho
Stetho.initialize(
Stetho.newInitializerBuilder(this)
.enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
.enableWebKitInspector(Stetho.defaultInspectorModulesProvider(this))
.build());

Ion.getDefault(this).getHttpClient().getMiddleware()
.add(new StethoMiddleware());

Using Stetho with AndroidAsync

// typical initialization of Stetho
Stetho.initialize(
Stetho.newInitializerBuilder(this)
.enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
.enableWebKitInspector(Stetho.defaultInspectorModulesProvider(this))
.build());

AsyncHttpClient.getDefaultInstance().getMiddleware()
.add(new StethoMiddleware());
X Tutup