-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OkHttp 3.1.2, Retrofit 2.0.0-beta4, Stetho 1.3.0 #88
Conversation
Hm, looks like Robolectric has some problems with OkHttp 3.1.0
Will investigate later. |
|
||
return builder.build().create(QualityMattersRestApi.class); | ||
.addCallAdapterFactory(RxJavaCallAdapterFactory.create()) | ||
.validateEagerly(BuildConfig.DEBUG) // Fail early: check Retrofit configuration at creation time in Debug build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about doing this in a unit test instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! The only downside of this is that it'll require providing Retrofit.Builder
, but seems like worth it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #92 for this, will go into separate PR
@artem-zinnatullin looks good on my side. 👍 I have only the one suggestion regarding the Since I haven't upgraded OkHttp in my projects to 3 yet, I haven't experienced this Robolectric issue. |
Found the issue with OkHttp square/okhttp#2323, 3.0.1 doesn't have such problem. // Another thing is that many classes in OkHttp are now final… uh |
Duck, in 3.1.0 |
I don't want to use PowerMock or other solutions, so, I'd wait for 3.1.1, should be released soon. |
Unfortunately, OkHttp 3.1.1 didn't fix that, will continue monitoring the situation. |
Hmm that's a bummer. Let's hope 3.1.2 will fix this. |
@artem-zinnatullin I think 3.1.2 fixed the robolectric issue. |
Yup, will try soon On Thu, 11 Feb 2016, 07:28 Niklas Baudy [email protected] wrote:
@artem_zin |
1c973e6
to
0ae886f
Compare
0ae886f
to
40e9687
Compare
fb39e7f
to
aa8d08b
Compare
@vanniktech fixed comments! |
Nice 👍 |
OkHttp 3.1.2, Retrofit 2.0.0-beta4, Stetho 1.3.0
Closes #87, closes #70.
Required quite a lot changes because both OkHttp and Retrofit now in new packages w/ version number + OkHttp is now immutable but at the same time we have 2 interceptors for debug only build, so, yeah.
@vanniktech PTAL :)