The old recipe for using Retrofit with OkHttp was simply to add it as a dependency like this:
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
compile 'com.squareup.okhttp:okhttp:2.0.0'
I.e. adding line 2 and 3 will make Retrofit utilize OkHttp as the communication framework.
Since OkHttp became a part of the Android SDK from v4.4 and up, is adding the two lines now obsolete? Will having just line 1 as dependency yield the exact same runtime result on Android 4.4 and up?
How can I verify this? I tried to put a breakpoint in my code on a 4.4 device to see what kind of HTTP library is used by Retrofit, but it's difficult to know which field to trill down to. See image below
P.S: Please leave Retrofit2 out of this, I know things have changed :)