- 移除OKHttpURLConnection库,不再支持对使用Android自带网络库的日志拦截;
从该版本开始,pandora和OkHttp具体版本无关;
- 新增
gradle-plugin
插件,可将pandora-interceptor自动注入到所有OkHttp对象中;
在此之前需要手动调用
addInterceptor(Pandora.get().getInterceptor())
,并且无法对第三方库中的网络请求进行拦截;
- Remove OKHttpURLConnection, No longer supports log interception for Android's own network library.
since 2.1.0, Pandora is independent of the specific version of OkHttp
- Add
gradle-plugin
, it can inject pandora-interceptor into okhttp automatically.
In the past, we need to manually invoke 'addInterceptor(pandora.get ().getinterceptor ())' , and can't intercept network requests in third-party libraries.