okhttp3 support #327

Closed
AAverin opened this Issue Jan 10, 2016 · 6 comments

Projects

None yet

6 participants

@AAverin
AAverin commented Jan 10, 2016

New version of okhttp have changed the way interceptors are added to the client.
When can we expect stetho update to support okhttp3?

@felipecsl
Contributor

This is being tracked by #324

@kamilwlf

When you plan to fix it?

OkHttpClient okClient = new OkHttpClient.Builder()
.addNetworkInterceptor((Interceptor) new StethoInterceptor())
.build();

Caused by: java.lang.ClassCastException: com.facebook.stetho.okhttp.StethoInterceptor cannot be cast to okhttp3.Interceptor

I use compile 'com.squareup.okhttp3:okhttp:3.0.0-RC1'

@panzerdev

This would really be an Important change! Also OkHttp 3.0 is final as of today.

@jakewilson801

I totally agree with @panzerdev I'm dying to have this working with OkHttp3.0

@jasta
Contributor
jasta commented Jan 19, 2016

Sorry folks, I was asleep at the wheel on this and will be cutting a release tomorrow to address this. A new module will be added, stetho-okhttp3 which will replace the current stetho-okhttp.

@jasta
Contributor
jasta commented Jan 19, 2016

#324 is now closed, the milestone (https://github.com/facebook/stetho/milestones/1.3.0) now tracks the release.

@jasta jasta closed this Jan 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment