Having android library module, in debug build it would like to use the stetho, bot no in release build. I guess it could add dependency of
debugCompile 'com.facebook.stetho:stetho:1.4.1'
debugCompile 'com.uphyca:stetho_realm:2.0.0'
or using
debugImplementation 'com.facebook.stetho:stetho:1.4.1'. // with latest version
debugImplementation 'com.uphyca:stetho_realm:2.0.0'
The question is in where the code need to take the StethoInterceptor
OkHttpClient.Builder()
.addNetworkInterceptor(StethoInterceptor())
.build()
how does it compile in release build that there is no stetho dependency?