Enable Stetho WebKitInspector for showcase app
Summary:
This change enables the WebKit integration for the Stetho plugin. The integration allows developers to use Chrome to inspect the traffic (e.g. see how requests are triggered) and eases debugging for our community.
See
@@ -79,8 +79,10 @@ public class ShowcaseApplication extends Application {
Fresco.initialize(this, imagePipelineConfig, draweeConfigBuilder.build());
final Context context = this;
- Stetho.initialize(Stetho.newInitializerBuilder(context)
- .enableDumpapp(new DumperPluginsProvider() {
+ Stetho.initialize(
+ Stetho.newInitializerBuilder(context)
+ .enableDumpapp(
+ new DumperPluginsProvider() {
@Override
public Iterable<DumperPlugin> get() {
return new Stetho.DefaultDumperPluginsBuilder(context)
@@ -88,6 +90,7 @@ public class ShowcaseApplication extends Application {
.finish();
}
})
+ .enableWebKitInspector(Stetho.defaultInspectorModulesProvider(context))
.build());
}
}
