拥有 android 库模块,在调试版本中它想使用 stetho,bot no 在发布版本中。我想它可以增加对
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'
问题在于代码需要在哪里使用 StethoInterceptor
OkHttpClient.Builder()
.addNetworkInterceptor(StethoInterceptor())
.build()
它如何在没有 stetho 依赖的发布版本中编译?