仿照leakcanary的做法,避免在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'
}
防止混淆:
-keep class com.facebook.stetho.**{*;}