Skip to content
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

Upgrade to okhttp3 #148

Closed
broady opened this issue Apr 7, 2016 · 11 comments
Closed

Upgrade to okhttp3 #148

broady opened this issue Apr 7, 2016 · 11 comments

Comments

@broady
Copy link
Contributor

broady commented Apr 7, 2016

https://square.github.io/okhttp/3.x/okhttp/okhttp3/package-summary.html

@domesticmouse
Copy link
Contributor

Reading through the upgrade notes looks like there is some interesting changes. I suspect we are architected correctly for the change, but not something I'm going to do before I/O =)

@kyso84
Copy link

kyso84 commented Jun 15, 2016

Any news about OkHttp3 support ?

@domesticmouse
Copy link
Contributor

We gladly accept pull requests =)

@shmuelr
Copy link

shmuelr commented Sep 18, 2016

Working on this in my fork here https://github.com/shmuelr/google-maps-services-java/commits/master

One issue, OkHttp moved some methods from the Client to the Builder class. Most noticeably,
client.setConnectTimeout()
client.setReadTimeout()
client.setWriteTimeout()
client.setProxy()

These methods are now on the Builder. https://square.github.io/okhttp/3.x/okhttp/okhttp3/OkHttpClient.Builder.html

This project only uses these methods in the tests, but I'm hesitant to remove them as that will affect the public api of google-maps-services-java.

Any suggestions?

@domesticmouse
Copy link
Contributor

domesticmouse commented Sep 22, 2016

Here was my initial stab at upgrading to OkHttp3: master...domesticmouse:master

I hit a couple of issues, and I can't remember how I was going to move this forward. Have a looksee and see if it helps.

On the API front, the version of this API is still 0.x, so I'm happy enough to introduce required API breakage. I'd prefer for something to break at compile time rather than run time, for instance.

@domesticmouse
Copy link
Contributor

Hey @shmuelr, I've just ditched my first attempt (joys of leaving changes off head), I'd like to investigate your code, but you haven't yet signed a CLA. Do you want to put together a PR with your changes, after you have signed said CLA? Please see https://cla.developers.google.com/ for more detail. Thanks!

@shmuelr
Copy link

shmuelr commented Oct 13, 2016

Sure thing, just signed CLA and I'll make a pr when I get a chance.

@jvujjini
Copy link

@shmuelr Did you make any progress on doing this? Please let me know, I can take a dig at this when I get sometime.

@shmuelr
Copy link

shmuelr commented Apr 26, 2017

@jagan120 Haven't looked at it in a while.
It was pretty straight forward to do. The only issue was that okhttp3 has api changes and some of the public methods in this library would have to be dropped.

@domesticmouse
Copy link
Contributor

Unless someone has a dramatic reason why I shouldn't I'm planning on landing #293 tomorrow, and then cutting a version 0.2.0 release with OkHttp3. I'd like to get this settled in, and then start moving towards a 1.0RC train.

Thoughts?

@domesticmouse
Copy link
Contributor

I'm going to go ahead and mark this as closed, now that version 0.2.0 is in circulation with OkHttp3 support. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants