jessewilson
06/29/2025, 5:06 PM5.0.0-alpha.17
in your projects and let me know if you run into any surprises?
OkHttp 5.x introduces separate -jvm
and -android
artifacts. We’ve had reports (issue 8826) that some builds incorrectly classes from both a okhttp-android
5.x artifact and a okhttp
4.x artifact, which causes crashes at runtime. I haven’t been able to reproduce this. If you can repro this, please reply on thread; I’d love to get to the bottom of this.
My intention is for 5.x to have zero backwards-incompatible changes with 4.12. If you see any, again please let me know.eygraber
06/29/2025, 5:49 PMalpha.17
? I've been using the alphas on Android pretty much since they came out, and haven't had any issues (currently on alpha.16
).jessewilson
06/29/2025, 5:55 PMTolriq
06/29/2025, 6:02 PMmbonnin
06/29/2025, 9:07 PMcompileCommonMainKotlinMetadata
task because we use Kotlin 2.1 and looks like alpha.17
is compiled with Kotlin 2.2?mbonnin
06/29/2025, 9:09 PMmbonnin
06/29/2025, 11:34 PMresponse.body
is not nullable any more 🥳 I love this. This got me so confused initially. Could still be a breaking change I believe? At least source breaking and some people might rely on this behaviour?mbonnin
06/29/2025, 11:37 PMokio
version between JVM and commonMain
source sets (here) (JVM would use 3.14.0
from okhttp, commonMain
was still on 3.9.0
).
Without this NSData.toByteString()
doesn't resolve in Apple source sets 🤷jessewilson
06/30/2025, 12:40 AMtrevjones
06/30/2025, 5:34 PMModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.2.0, expected version is 2.0.0.Obviously works fine in the gradle 9 RC but could be a point of friction when upgrading before 9 lands.
trevjones
06/30/2025, 5:35 PMjessewilson
06/30/2025, 5:36 PMmbonnin
06/30/2025, 8:59 PMimplementation
dependency and doesn't call any new kotlin-stdlib API, it should work though?
The build scripts usually don't need okhttp in the compile classpath.trevjones
06/30/2025, 9:03 PMmbonnin
06/30/2025, 9:04 PMembedded-kotlin
or kotlin-dsl
. That limits the libs you can consume compared to org.jetbrains.kotlin.jvm
mbonnin
06/30/2025, 9:04 PMtrevjones
06/30/2025, 9:05 PMkotlin-dsl
because it just feels betterjessewilson
07/03/2025, 3:03 PM