The Google Cloud Endpoint generated Android client expects an HttpTransport, JsonFactory and HttpRequestInitializer as part of the generated Builder constructor (which extends from AbstractGoogleJsonClient.Builder. I want to use Stetho to watch these network calls, but I cannot seem to figure out how to get OkHttp to work with the generated client.
Has anyone successfully been able to use Stetho with Google Cloud Endpoints on Android (with or without OkHttp)?
Perhaps check this Github issue. There's also an OkHttpTransport that hasn't been modified in awhile, but the basis is, if you want to use OkHttp with the Java client, you can just extend HttpTransport
to construct a request using OkHttp.