mirror of
https://github.com/owenlejeune/TVTime.git
synced 2025-11-21 03:00:54 -05:00
TVT-63: Add Support for OkHttpProfiler
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
package com.owenlejeune.tvtime.api
|
||||
|
||||
import com.facebook.stetho.okhttp3.StethoInterceptor
|
||||
import com.localebro.okhttpprofiler.OkHttpProfilerInterceptor
|
||||
import okhttp3.OkHttpClient
|
||||
|
||||
class DebugHttpClient: HttpClient {
|
||||
override val httpClient: OkHttpClient = OkHttpClient.Builder()
|
||||
.addInterceptor(OkHttpProfilerInterceptor())
|
||||
.addNetworkInterceptor(StethoInterceptor())
|
||||
.build()
|
||||
}
|
||||
Reference in New Issue
Block a user