Revert "Add Stetho to debug application (#18)"

This reverts commit cc2fb772
Stetho seems to be unmaintained anymore
It also doesn't work with latest Chrome
This commit is contained in:
Kirill Kamakin
2021-11-28 20:36:30 +03:00
parent 412bd190be
commit 81fb1ae984
3 changed files with 2 additions and 15 deletions

View File

@@ -1,6 +1,5 @@
package gq.kirmanak.mealient.data.impl
import com.facebook.stetho.okhttp3.StethoInterceptor
import gq.kirmanak.mealient.BuildConfig
import gq.kirmanak.mealient.data.auth.impl.AuthOkHttpInterceptor
import okhttp3.Interceptor
@@ -15,11 +14,8 @@ class OkHttpBuilder @Inject constructor(
fun buildOkHttp(): OkHttpClient {
Timber.v("buildOkHttp() called")
val builder = OkHttpClient.Builder()
if (BuildConfig.DEBUG) builder.addNetworkInterceptor(buildLoggingInterceptor())
builder.addNetworkInterceptor(authOkHttpInterceptor)
if (BuildConfig.DEBUG) {
builder.addNetworkInterceptor(buildLoggingInterceptor())
builder.addNetworkInterceptor(StethoInterceptor())
}
return builder.build()
}