Readd chucker to network

This commit is contained in:
Jay 2020-05-21 03:04:54 -04:00
parent 4230afecaa
commit 5fca25b490

View File

@ -1,6 +1,7 @@
package eu.kanade.tachiyomi.network
import android.content.Context
import com.chuckerteam.chucker.api.ChuckerInterceptor
import okhttp3.Cache
import okhttp3.OkHttpClient
import java.io.File
@ -16,7 +17,7 @@ class NetworkHelper(context: Context) {
val client = OkHttpClient.Builder()
.cookieJar(cookieManager)
.cache(Cache(cacheDir, cacheSize))
// .addInterceptor(ChuckerInterceptor(context))
.addInterceptor(ChuckerInterceptor(context))
.build()
val cloudflareClient = client.newBuilder()