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:
@@ -155,11 +155,6 @@ dependencies {
|
||||
// https://mvnrepository.com/artifact/com.google.truth/truth
|
||||
testImplementation "com.google.truth:truth:1.1.3"
|
||||
|
||||
// https://github.com/facebook/stetho/releases
|
||||
def stetho_version = "1.6.0"
|
||||
implementation "com.facebook.stetho:stetho:$stetho_version"
|
||||
implementation "com.facebook.stetho:stetho-okhttp3:$stetho_version"
|
||||
|
||||
// https://github.com/androidbroadcast/ViewBindingPropertyDelegate/releases
|
||||
implementation "com.github.kirich1409:viewbindingpropertydelegate-noreflection:1.5.3"
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
package gq.kirmanak.mealient
|
||||
|
||||
import android.app.Application
|
||||
import com.facebook.stetho.Stetho
|
||||
import dagger.hilt.android.HiltAndroidApp
|
||||
import timber.log.Timber
|
||||
|
||||
@@ -9,10 +8,7 @@ import timber.log.Timber
|
||||
class App : Application() {
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
if (BuildConfig.DEBUG) {
|
||||
Timber.plant(Timber.DebugTree())
|
||||
Stetho.initializeWithDefaults(this)
|
||||
}
|
||||
if (BuildConfig.DEBUG) Timber.plant(Timber.DebugTree())
|
||||
Timber.v("onCreate() called")
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user