Minor cleanup

This commit is contained in:
Jobobby04
2023-12-24 14:28:39 -05:00
parent 7f89587889
commit c36d2794bb
25 changed files with 166 additions and 63 deletions
@@ -1,7 +1,6 @@
package eu.kanade.tachiyomi.network
import android.content.Context
import eu.kanade.tachiyomi.core.BuildConfig
import eu.kanade.tachiyomi.network.interceptor.CloudflareInterceptor
import eu.kanade.tachiyomi.network.interceptor.UncaughtExceptionInterceptor
import eu.kanade.tachiyomi.network.interceptor.UserAgentInterceptor
@@ -16,6 +15,9 @@ import java.util.concurrent.TimeUnit
open /* SY <-- */ class NetworkHelper(
private val context: Context,
private val preferences: NetworkPreferences,
// SY -->
val isDebugBuild: Boolean,
// SY <--
) {
/* SY --> */
@@ -38,7 +40,7 @@ open /* SY <-- */ class NetworkHelper(
.addInterceptor(UncaughtExceptionInterceptor())
.addInterceptor(UserAgentInterceptor(::defaultUserAgentProvider))
if (BuildConfig.DEBUG) {
if (isDebugBuild) {
val httpLoggingInterceptor = HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.HEADERS
}