Rich-text Reply

Upgrade Android SDK to OkHttp 3

jessewilson 01-03-16

Upgrade Android SDK to OkHttp 3

Optimizely uses an obsolete version of OkHttp. This forces app developers that use Optimizely to ship two complete copies of this library.

 

Optimizely needs to update their dependency to OkHttp 3. Doing so is pretty straightforward:

 * Change imports from `com.squareup.okhttp` to `okhttp3`.

 * Change Maven group ID from `com.squareup.okhttp` to `com.squareup.okhttp3`.

 * Drop `get` and `set` prefixes on setters.

 * Use `OkHttpClient.Builder` where necessary.

 

More details:

https://github.com/square/okhttp/blob/master/CHANGELOG.md

Re: Upgrade Android SDK to OkHttp 3

Hi Jesse,

Thanks for your post. I've informed our engineers of your request. I'll let you know when I hear back from them.

Best,
Nils

Re: Upgrade Android SDK to OkHttp 3

Hi Jesse,

 

Our developers got back to me. What I got from them is that OkHttp 3.0 is still in beta, and we're upgrading to it when it's out of beta. I hope this answers your question!

 

Best,

Nils

 

Arne 02-01-16
 

Re: Upgrade Android SDK to OkHttp 3

Hi Nils,

 

I am also waiting for Optimizely to use OkHttp 3.0.

 

OkHttp 3.0 has been released now (2016-01-13).

 

Please see:
https://github.com/square/okhttp/blob/master/CHANGELOG.md

 

Kind regards,

Arne

Level 1

Re: Upgrade Android SDK to OkHttp 3

[ Edited ]

Hi Arne, thanks for your post. I've reached out to our developers to ask them whether we have a timeline for upgrading to OkHTTP 3.0.

Re: Upgrade Android SDK to OkHttp 3

For everyone coming across this topic: we've upgraded the Android SDK to OKHttp 3 in the meantime. Feel free to reply with any questions around this topic.