Bump minimum WebView version and default user agent string

(cherry picked from commit 7e053b586226dbf11946a949cf01b08500d0b5bd)
This commit is contained in:
arkon 2024-01-06 09:45:41 -05:00 committed by Jobobby04
parent 08eefbc010
commit 9ae3e844dd
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ class NetworkPreferences(
fun defaultUserAgent(): Preference<String> {
return preferenceStore.getString(
"default_user_agent",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/121.0",
)
}
}

View File

@ -15,7 +15,7 @@ import kotlin.coroutines.resume
object WebViewUtil {
const val SPOOF_PACKAGE_NAME = "org.chromium.chrome"
const val MINIMUM_WEBVIEW_VERSION = 114
const val MINIMUM_WEBVIEW_VERSION = 118
/**
* Uses the WebView's user agent string to create something similar to what Chrome on Android