fix list button on details

This commit is contained in:
Owen LeJeune
2023-07-08 20:31:24 -04:00
parent 859ab14d95
commit 2712561a31
10 changed files with 237 additions and 162 deletions

View File

@@ -1,12 +1,14 @@
package com.owenlejeune.tvtime.api
import com.facebook.stetho.okhttp3.StethoInterceptor
import com.localebro.okhttpprofiler.OkHttpProfilerInterceptor
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
class DebugHttpClient: HttpClient {
override val httpClient: OkHttpClient = OkHttpClient.Builder()
.addInterceptor(OkHttpProfilerInterceptor())
.addNetworkInterceptor(StethoInterceptor())
.addInterceptor(getLoggingInterceptor())
.build()
private fun getLoggingInterceptor() = HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.BODY
}
}