net: include the Android release in the user agent

This commit is contained in:
austinried
2026-10-09 06:33:22 +00:00
parent 4fad6a78ec
commit 206ac8988f
2 changed files with 4 additions and 2 deletions
@@ -1,10 +1,11 @@
package com.subtracks
import android.os.Build
import okhttp3.Interceptor
import okhttp3.OkHttpClient
object UserAgent {
val value: String = "subtracks (Android; ${BuildConfig.VERSION_NAME})"
val value: String = "subtracks (Android ${Build.VERSION.RELEASE}; ${BuildConfig.VERSION_NAME})"
fun interceptor(): Interceptor =
Interceptor { chain ->