//快速webview
implementation ('ren.yale.android:cachewebviewlib:2.2.1'){
exclude(group: 'com.squareup.okhttp3', module: 'okhttp')
}
然后在自己的Application中初始化就直接开启缓存了,100M空间
WebViewCacheInterceptorInst.getInstance().init(WebViewCacheInterceptor.Builder(this))
如果想使用其他自行配置一些参数的话,可以直接去看源码和官方文档:
至于文档里说的混淆内容,亲测加不加都行,怕有其他问题可以去看文档加上。