NetworkProxy
A network proxy library to intercept and mock response from OkHttp
Getting started
In your root build.gradle:
allprojects {
repositories {
// Other configurations ...
jcenter()
}
}
In your app/build.gradle:
dependencies {
debugImplementation 'com.github.nongdenchet:networkproxy:0.5.0'
releaseImplementation 'com.github.nongdenchet:networkproxy-no-op:0.5.0'
}
Add the Interceptor to your OkHttp builder:
new OkHttpClient.Builder()
// other configuration
评论0
最新资源