Skip to content

Upgrade to OkHttp 3.12.2#763

Open
smpeters wants to merge 19 commits into
konklone:masterfrom
smpeters:update_http_handling
Open

Upgrade to OkHttp 3.12.2#763
smpeters wants to merge 19 commits into
konklone:masterfrom
smpeters:update_http_handling

Conversation

@smpeters

Copy link
Copy Markdown
Contributor

Along with this package upgrade, it also requires a minimum Android SDK Version of 21 to get updated TLS security.

My changes for #762 are included as well.

@konklone

Copy link
Copy Markdown
Owner

This generally looks great. However, the minimum API version is a significant change, which impacts device compatibility. Current stats suggest this will cut out about 10% of active Android devices across the ecosystem: https://developer.android.com/about/dashboards I could look at the stats specific to this app inside my own publisher dashboard, but if anything I'd expect it to be more severe.

Could that part be removed from this PR, and the rest accepted? What's the rationale to move to 21 now?

@smpeters

smpeters commented Mar 18, 2019 via email

Copy link
Copy Markdown
Contributor Author

@konklone

Copy link
Copy Markdown
Owner

Help me understand the impact here - is it required in order to enable TLS v1.2, or is it about mitigating weaknesses with arbitrary servers? The app has a defined set of services it can connect to, so it doesn't have to worry about connecting to known-weak services.

@smpeters

smpeters commented Mar 18, 2019 via email

Copy link
Copy Markdown
Contributor Author

@konklone

Copy link
Copy Markdown
Owner

Reading the OkHttp blog post on this, it seems like what we want for now is the 3.12 stable branch for which they'll backport fixes for a while. I'm all about improving our TLS security, but I don't see any reason to drop support for these devices until servers do. The app will still be preferring TLS v1.2 over 1.0 by moving to a recent 3.x version.

Would you mind updating the PR to use 3.12, and to not bump the API level? The work you did in the PR to update the network classes and their use of the OkHTTP API is extremely helpful, and I'd love to merge that in to the app and move us to 3.x.

@smpeters smpeters changed the title Upgrade to OkHttp 3.14.0 Upgrade to OkHttp 3.12.2 Mar 20, 2019
@smpeters

Copy link
Copy Markdown
Contributor Author

OK, changes made to use in OkHttp 3.12.2 and minimum API lowered back to 16.

@TacoTheDank

TacoTheDank commented Apr 27, 2019

Copy link
Copy Markdown
Contributor

@smpeters @konklone Bump, I believe this can be merged now. @smpeters Great work :)

@smpeters

Copy link
Copy Markdown
Contributor Author

Are there any concerns here that I can resolve?

@TacoTheDank

Copy link
Copy Markdown
Contributor

I'm waiting for this to be merged so I can start a light refactoring of the code, I think everything is good right now

@TacoTheDank

Copy link
Copy Markdown
Contributor

Anything on this? The merging repo doesn't seem to exist anymore? :/

@smpeters

Copy link
Copy Markdown
Contributor Author

Yep, I deleted that repo. I'm going a different direction with my repo. Sitting for a year on a patch to merge is more than I really care to do.

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

Successfully merging this pull request may close these issues.

3 participants