mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-14 16:45:06 +01:00
Revert Part of 1%
Over committed on this
This commit is contained in:
parent
d4bb2ae938
commit
a31beaaf66
@ -141,18 +141,18 @@ dependencies {
|
|||||||
releaseImplementation("com.github.ChuckerTeam.Chucker:library-no-op:${Versions.CHUCKER}")
|
releaseImplementation("com.github.ChuckerTeam.Chucker:library-no-op:${Versions.CHUCKER}")
|
||||||
|
|
||||||
// hyperion
|
// hyperion
|
||||||
// debugImplementation("com.willowtreeapps.hyperion:hyperion-core:${Versions.HYPERION}")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-core:${Versions.HYPERION}")
|
||||||
// debugImplementation("com.willowtreeapps.hyperion:hyperion-timber:${Versions.HYPERION}")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-timber:${Versions.HYPERION}")
|
||||||
// debugImplementation("com.willowtreeapps.hyperion:hyperion-core:${Versions.HYPERION}")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-core:${Versions.HYPERION}")
|
||||||
// debugImplementation("com.willowtreeapps.hyperion:hyperion-attr:${Versions.HYPERION}")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-attr:${Versions.HYPERION}")
|
||||||
// debugImplementation("com.willowtreeapps.hyperion:hyperion-build-config:${Versions.HYPERION}")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-build-config:${Versions.HYPERION}")
|
||||||
// debugImplementation("com.willowtreeapps.hyperion:hyperion-crash:${Versions.HYPERION}")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-crash:${Versions.HYPERION}")
|
||||||
// debugImplementation("com.willowtreeapps.hyperion:hyperion-disk:${Versions.HYPERION}")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-disk:${Versions.HYPERION}")
|
||||||
// debugImplementation("com.willowtreeapps.hyperion:hyperion-geiger-counter:${Versions.HYPERION}")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-geiger-counter:${Versions.HYPERION}")
|
||||||
// debugImplementation("com.willowtreeapps.hyperion:hyperion-measurement:${Versions.HYPERION}")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-measurement:${Versions.HYPERION}")
|
||||||
// debugImplementation("com.willowtreeapps.hyperion:hyperion-phoenix:${Versions.HYPERION}")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-phoenix:${Versions.HYPERION}")
|
||||||
// debugImplementation("com.willowtreeapps.hyperion:hyperion-recorder:${Versions.HYPERION}")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-recorder:${Versions.HYPERION}")
|
||||||
// debugImplementation("com.willowtreeapps.hyperion:hyperion-shared-preferences:${Versions.HYPERION}")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-shared-preferences:${Versions.HYPERION}")
|
||||||
|
|
||||||
// REST
|
// REST
|
||||||
implementation("com.squareup.retrofit2:retrofit:${Versions.RETROFIT}")
|
implementation("com.squareup.retrofit2:retrofit:${Versions.RETROFIT}")
|
||||||
|
@ -7,6 +7,7 @@ import coil.ImageLoader
|
|||||||
import coil.decode.GifDecoder
|
import coil.decode.GifDecoder
|
||||||
import coil.decode.ImageDecoderDecoder
|
import coil.decode.ImageDecoderDecoder
|
||||||
import coil.decode.SvgDecoder
|
import coil.decode.SvgDecoder
|
||||||
|
import com.chuckerteam.chucker.api.ChuckerInterceptor
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
|
|
||||||
class CoilSetup(context: Context) {
|
class CoilSetup(context: Context) {
|
||||||
@ -27,7 +28,7 @@ class CoilSetup(context: Context) {
|
|||||||
add(ByteArrayFetcher())
|
add(ByteArrayFetcher())
|
||||||
}.okHttpClient {
|
}.okHttpClient {
|
||||||
OkHttpClient.Builder()
|
OkHttpClient.Builder()
|
||||||
// .addInterceptor(ChuckerInterceptor(context))
|
.addInterceptor(ChuckerInterceptor(context))
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
.build()
|
.build()
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package eu.kanade.tachiyomi.network
|
package eu.kanade.tachiyomi.network
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
import com.chuckerteam.chucker.api.ChuckerInterceptor
|
||||||
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
|
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
|
||||||
import okhttp3.Cache
|
import okhttp3.Cache
|
||||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||||
@ -24,7 +25,7 @@ class NetworkHelper(context: Context) {
|
|||||||
OkHttpClient.Builder()
|
OkHttpClient.Builder()
|
||||||
.cookieJar(cookieManager)
|
.cookieJar(cookieManager)
|
||||||
.cache(Cache(cacheDir, cacheSize))
|
.cache(Cache(cacheDir, cacheSize))
|
||||||
// .addInterceptor(ChuckerInterceptor(context))
|
.addInterceptor(ChuckerInterceptor(context))
|
||||||
.apply {
|
.apply {
|
||||||
if (preferences.enableDoh()) {
|
if (preferences.enableDoh()) {
|
||||||
dns(
|
dns(
|
||||||
|
Loading…
Reference in New Issue
Block a user