Revert Part of 1%

Over committed on this
This commit is contained in:
Jays2Kings 2021-04-12 13:22:43 -04:00
parent d4bb2ae938
commit a31beaaf66
3 changed files with 16 additions and 14 deletions

View File

@ -141,18 +141,18 @@ dependencies {
releaseImplementation("com.github.ChuckerTeam.Chucker:library-no-op:${Versions.CHUCKER}")
// hyperion
// debugImplementation("com.willowtreeapps.hyperion:hyperion-core:${Versions.HYPERION}")
// debugImplementation("com.willowtreeapps.hyperion:hyperion-timber:${Versions.HYPERION}")
// debugImplementation("com.willowtreeapps.hyperion:hyperion-core:${Versions.HYPERION}")
// debugImplementation("com.willowtreeapps.hyperion:hyperion-attr:${Versions.HYPERION}")
// debugImplementation("com.willowtreeapps.hyperion:hyperion-build-config:${Versions.HYPERION}")
// debugImplementation("com.willowtreeapps.hyperion:hyperion-crash:${Versions.HYPERION}")
// debugImplementation("com.willowtreeapps.hyperion:hyperion-disk:${Versions.HYPERION}")
// debugImplementation("com.willowtreeapps.hyperion:hyperion-geiger-counter:${Versions.HYPERION}")
// debugImplementation("com.willowtreeapps.hyperion:hyperion-measurement:${Versions.HYPERION}")
// debugImplementation("com.willowtreeapps.hyperion:hyperion-phoenix:${Versions.HYPERION}")
// debugImplementation("com.willowtreeapps.hyperion:hyperion-recorder:${Versions.HYPERION}")
// debugImplementation("com.willowtreeapps.hyperion:hyperion-shared-preferences:${Versions.HYPERION}")
debugImplementation("com.willowtreeapps.hyperion:hyperion-core:${Versions.HYPERION}")
debugImplementation("com.willowtreeapps.hyperion:hyperion-timber:${Versions.HYPERION}")
debugImplementation("com.willowtreeapps.hyperion:hyperion-core:${Versions.HYPERION}")
debugImplementation("com.willowtreeapps.hyperion:hyperion-attr:${Versions.HYPERION}")
debugImplementation("com.willowtreeapps.hyperion:hyperion-build-config:${Versions.HYPERION}")
debugImplementation("com.willowtreeapps.hyperion:hyperion-crash:${Versions.HYPERION}")
debugImplementation("com.willowtreeapps.hyperion:hyperion-disk:${Versions.HYPERION}")
debugImplementation("com.willowtreeapps.hyperion:hyperion-geiger-counter:${Versions.HYPERION}")
debugImplementation("com.willowtreeapps.hyperion:hyperion-measurement:${Versions.HYPERION}")
debugImplementation("com.willowtreeapps.hyperion:hyperion-phoenix:${Versions.HYPERION}")
debugImplementation("com.willowtreeapps.hyperion:hyperion-recorder:${Versions.HYPERION}")
debugImplementation("com.willowtreeapps.hyperion:hyperion-shared-preferences:${Versions.HYPERION}")
// REST
implementation("com.squareup.retrofit2:retrofit:${Versions.RETROFIT}")

View File

@ -7,6 +7,7 @@ import coil.ImageLoader
import coil.decode.GifDecoder
import coil.decode.ImageDecoderDecoder
import coil.decode.SvgDecoder
import com.chuckerteam.chucker.api.ChuckerInterceptor
import okhttp3.OkHttpClient
class CoilSetup(context: Context) {
@ -27,7 +28,7 @@ class CoilSetup(context: Context) {
add(ByteArrayFetcher())
}.okHttpClient {
OkHttpClient.Builder()
// .addInterceptor(ChuckerInterceptor(context))
.addInterceptor(ChuckerInterceptor(context))
.build()
}
.build()

View File

@ -1,6 +1,7 @@
package eu.kanade.tachiyomi.network
import android.content.Context
import com.chuckerteam.chucker.api.ChuckerInterceptor
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
import okhttp3.Cache
import okhttp3.HttpUrl.Companion.toHttpUrl
@ -24,7 +25,7 @@ class NetworkHelper(context: Context) {
OkHttpClient.Builder()
.cookieJar(cookieManager)
.cache(Cache(cacheDir, cacheSize))
// .addInterceptor(ChuckerInterceptor(context))
.addInterceptor(ChuckerInterceptor(context))
.apply {
if (preferences.enableDoh()) {
dns(