Upload
rodrigo-de-paiva-direito
View
34
Download
0
Embed Size (px)
Citation preview
O que é?
"A debug bridge for Android applications"
Permite aos desenvolvedores Android o acesso ao Chrome Developer Tools
Configuração
…app_module/build.gradle
dependencies { compile 'com.facebook.stetho:stetho:1.4.1' }
Application
Stetho.initializeWithDefaults(this);
View Hierarchy• View highlighting • Tap to jump • View properties • <fragment> instances virtually placed in the hierarchy
Network Inspection
dependencies { compile 'com.facebook.stetho:stetho-okhttp:1.4.1' }
ou,
dependencies { compile 'com.facebook.stetho:stetho-urlconnection:1.4.1' }
Network Inspection
OkHttp 2.x
OkHttpClient client = new OkHttpClient(); client.networkInterceptors().add(new StethoInterceptor());
OkHttp 3.x
new OkHttpClient.Builder() .addNetworkInterceptor(new StethoInterceptor()) .build();
Obrigado! Perguntas?
Rodrigo DireitoFelippe Bisca
https://github.com/FBisca/stetho-demoProjeto:
@phelpzz @stik3ndAndroid Dev at 99 Android Dev at 99