firebase network performance monitoring supports okhttp3 out of the box. Anyone here know what needs to be done to make it work with okhttp4?
j
jw
03/26/2025, 10:01 PM
Nothing. OkHttp 4 is binary compatible (as is 5)
👍 1
a
alexhelder
03/26/2025, 10:14 PM
Thanks Jake, if you were going down this route, knowing there was one okhttp client instance used everywhere, injected into coil, retrofit, etc … would you prefer to (1) rely on firebase AGP plugin that does some bytecode transformation or (2) write an custom interceptor like https://github.com/firebase/firebase-android-sdk/issues/3465#issuecomment-1299971890
j
jw
03/26/2025, 10:19 PM
I would probably copy the custom interceptor. They really should just ship one as a library so it's a one-liner to integrate...