Minor cleanup
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user