-
Notifications
You must be signed in to change notification settings - Fork 186
Okhttp below 3.11
Quinn edited this page Jul 4, 2022
·
2 revisions
It costs alomst nothing to upgrade your okhttp to 3.11. I recommend you to upgrade your okhttp. from 3.11 and above, you can use EventListener.
But if you want to use OkHttp-Plugin for okhttp below 3.11, Hunter also can help you.
dependencies {
implementation ('com.quinn.hunter:hunter-okhttp-library-compat:0.8.5'){
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
}
repositories {
jcenter()
}
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'cn.quinn.hunter:hunter-okhttp-plugin:1.2.1'
}
}
apply plugin: 'hunter-okhttp'
okHttpHunterExt {
weaveEventListener = false
}