Skip to content

nicai1900/StethoHelper

Repository files navigation

StethoHelper

Facebook Stetho utils for Android app

Getting started

In your build.gradle:

dependencies {

    // debug
    debugImplementation 'com.github.nicai1900.StethoHelper:stethohelper:v0.0.6'
    
    // release no op
    releaseImplementation 'com.github.nicai1900.StethoHelper:stethohelper-no-op:v0.0.6'
}

In your Application class:

class ExampleApplication : Application() {

    override fun onCreate() {
        super.onCreate()

        StethoHelper.install(this)
    }
  
}

Okhttp

private fun initOkhttpClient(): OkHttpClient {
    val builder = OkHttpClient.Builder()
    builder.addNetworkInterceptor(StethoInterceptorWrapper())
    return builder.build()
}

About

Facebook Stetho utils for Android app

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages