mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
update ChuckerInterceptor to non-deprecated method
This commit is contained in:
parent
7ce9ceebc7
commit
4b389f441e
1 changed files with 9 additions and 1 deletions
|
@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.network
|
|||
|
||||
import android.content.Context
|
||||
import coil.util.CoilUtils
|
||||
import com.chuckerteam.chucker.api.ChuckerCollector
|
||||
import com.chuckerteam.chucker.api.ChuckerInterceptor
|
||||
import eu.kanade.tachiyomi.BuildConfig
|
||||
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
|
||||
|
@ -32,7 +33,14 @@ class NetworkHelper(val context: Context) {
|
|||
.addInterceptor(UserAgentInterceptor())
|
||||
.apply {
|
||||
if (BuildConfig.DEBUG) {
|
||||
addInterceptor(ChuckerInterceptor(context))
|
||||
addInterceptor(
|
||||
ChuckerInterceptor.Builder(context)
|
||||
.collector(ChuckerCollector(context))
|
||||
.maxContentLength(250000L)
|
||||
.redactHeaders(emptySet())
|
||||
.alwaysReadResponseBody(false)
|
||||
.build()
|
||||
)
|
||||
}
|
||||
|
||||
when (preferences.dohProvider()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue