kohttp icon indicating copy to clipboard operation
kohttp copied to clipboard

Bump kohttp version to work with latest Android

Open christian-draeger opened this issue 4 years ago • 6 comments

The currently used kohttp version is 3.14.2 which is not working with Android level 30+

According to this stackoverflow question bumping okhttp to version 4.9.0 should fix the problem

christian-draeger avatar Oct 31 '20 07:10 christian-draeger

hi, we hope to move to the latest versions really soon.

rybalkinsd avatar Dec 11 '20 13:12 rybalkinsd

Note: update together with Kotlin 1.4.20

rybalkinsd avatar Dec 28 '20 16:12 rybalkinsd

Hey @christian-draeger check out build on master after PR #205. Let me know if it solved the problem and I will release a formal version

rybalkinsd avatar Dec 29 '20 14:12 rybalkinsd

Note: Now koHttp works with Android 4+, need to fill in docs to clarify it

rybalkinsd avatar Dec 29 '20 14:12 rybalkinsd

Works thx 👌

christian-draeger avatar Jan 06 '21 11:01 christian-draeger

Is a release with this fix planned any time soon? The latest release was in May of last year, and okhttp 3.14.2 has issues with non-daemon threads being used for HTTP/2 not being stopped when the application has finished, which prevents it from closing.

I did attempt to disable HTTP/2 by providing a list of protocols to the client, as mentioned in this thread from 2018, but that doesn't seem to help when working with kohttp.

What's waiting for the next release of kohttp?

gdude2002 avatar Mar 25 '21 14:03 gdude2002