Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议对于升级 OKHttp(3.14.0)应该使用大版本号 #69

Open
JesseWo opened this issue Aug 9, 2019 · 3 comments
Open

建议对于升级 OKHttp(3.14.0)应该使用大版本号 #69

JesseWo opened this issue Aug 9, 2019 · 3 comments

Comments

@JesseWo
Copy link

JesseWo commented Aug 9, 2019

将okhttp 从3.9直接跨到3.14,这是个breaking changes,最重要的是放弃了android 4.x
关键是 no-op 也集成了。gradle相同库依赖冲突时直接采用最高版本。
造成生产4.x机型完全不能用。。。。

@whataa
Copy link
Owner

whataa commented Aug 9, 2019

对于OKHttp这一块的问题我确实没搞好,没有预料到大家的OKHttp版本差异如此大。

这里说下Pandora严重依赖OKHttp的原因:其实最初Pandora不依赖OKHttp的具体版本号,后面想为那些使用Android自带网络库请求的项目实现网络拦截从而使用了较多OKHttp的类和API,这些随时可能随着OKHttp的版本变化的变化,导致现在很被动。

因此我计划将上面提到的功能拆分为另一个子库,按需依赖。因此目前建议你先使用你需要的OKHttp版本对应的Pandora版本,感谢你的提议。

@whataa
Copy link
Owner

whataa commented Mar 13, 2020

OKHttpUrlConnection 是为实现对Android自带网络库相关项目的网络拦截而引入的,但该库已废弃已久,相关API已经随着OKHttp的更新严重脱节,实在无法兼容,且引起的issue大于带来的收益,因此决定将其从Pandora中移除。

该变动于 2.1.0 版本生效。

在此之后pandora不再依赖OKHttp的具体版本号,完全兼容。

如有冲突,可自行通过exclude排除。

@whataa
Copy link
Owner

whataa commented Mar 13, 2020

#74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants