编译Release版本,stetho类的实现为空,同时避免了编译报错的问题
如何引入:
allprojects { repositories { ... maven { url 'https://jitpack.io' } } } dependencies { debugCompile 'com.facebook.stetho:stetho:1.5.0' debugCompile 'com.facebook.stetho:stetho-okhttp3:1.5.0' releaseCompile 'com.github.TangHuaiZhe:stetho-no-op:1.0' }
源码参考:
https://github.com/TangHuaiZhe/stetho-no-op