Skip to content

v2.1.0

Latest
Compare
Choose a tag to compare
@whataa whataa released this 13 Mar 06:47
· 20 commits to master since this release
  1. 移除OKHttpURLConnection库,不再支持对使用Android自带网络库的日志拦截;

从该版本开始,pandora和OkHttp具体版本无关;

  1. 新增 gradle-plugin 插件,可将pandora-interceptor自动注入到所有OkHttp对象中;

在此之前需要手动调用addInterceptor(Pandora.get().getInterceptor()),并且无法对第三方库中的网络请求进行拦截;


  1. 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

  1. 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.