Commit e236b071 authored by Ricki Hirner's avatar Ricki Hirner 🐑

Use okhttp version defined by DAVx5 (dav4jvm version may be older)

parent 39056795
Pipeline #110012255 passed with stages
in 8 minutes and 36 seconds
......@@ -27,6 +27,7 @@ android {
targetSdkVersion 29 // Android 10.0
multiDexEnabled true // >64k methods for Android 4.4
buildConfigField "String", "okhttpVersion", "\"${versions.okhttp}\""
buildConfigField "String", "userAgent", "\"DAVx5\""
// when using this, make sure that notification icons are real bitmaps
......
......@@ -236,7 +236,7 @@ class HttpClient private constructor(
private val userAgentDateFormat = SimpleDateFormat("yyyy/MM/dd", Locale.US)
private val userAgentDate = userAgentDateFormat.format(Date(BuildConfig.buildTime))
private val userAgent = "${BuildConfig.userAgent}/${BuildConfig.VERSION_NAME} ($userAgentDate; dav4jvm; " +
"okhttp/${Constants.okhttpVersion}) Android/${Build.VERSION.RELEASE}"
"okhttp/${BuildConfig.okhttpVersion}) Android/${Build.VERSION.RELEASE}"
override fun intercept(chain: Interceptor.Chain): Response {
val locale = Locale.getDefault()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment