Răsfoiți Sursa

feat: WebViewStatEvent增加UA上报

wzq 8 luni în urmă
părinte
comite
fdea7610ee

+ 2 - 2
app/dependencies/releaseRuntimeClasspath.txt

@@ -236,7 +236,7 @@ com.wenext.android:frame-aab:5.1.8-yoki-beta
 com.wenext.android:frame-apm:5.1.4
 com.wenext.android:frame-audio:5.1.4
 com.wenext.android:frame-base:5.1.4
-com.wenext.android:frame-bom:5.1.22-yoki-14
+com.wenext.android:frame-bom:5.1.22-yoki-16
 com.wenext.android:frame-coroutine:5.1.4
 com.wenext.android:frame-crash:5.1.4
 com.wenext.android:frame-data:5.1.5-yoki
@@ -262,7 +262,7 @@ com.wenext.android:frame-security:5.1.5
 com.wenext.android:frame-share:5.1.18-yoki
 com.wenext.android:frame-sound:5.1.4
 com.wenext.android:frame-spi:5.1.4
-com.wenext.android:frame-statistics:5.1.5
+com.wenext.android:frame-statistics:5.1.7
 com.wenext.android:frame-storage:5.1.5-yoki
 com.wenext.android:frame-tceffect:5.1.7-yoki-beta
 com.wenext.android:frame-tcturing:5.1.4

+ 1 - 0
app/src/main/java/com/adealink/weparty/webview/CommonWebViewClient.kt

@@ -55,6 +55,7 @@ open class CommonWebViewClient(val webView: IWebView) : WebViewClient() {
                 .apply {
                     page to url
                     result to CommonEventValue.Result.SUCCESS
+                    ua to webView.getWebView().settings.userAgentString
                 }
             webView.webViewCallback?.onPageStarted(url, favicon)
         }

+ 1 - 0
app/src/main/java/com/adealink/weparty/webview/stat/WebViewStatEvent.kt

@@ -42,6 +42,7 @@ class WebViewStatEvent(override val action: IEventValue) : BaseStatEvent("web_vi
     val duration = Param(CommonEventKey.DURATION)
     var protocol = Param(CommonEventKey.PROTOCOL)
     val host = Param(CommonEventKey.HOST)
+    val ua = Param(CommonEventKey.UA)
 
     override fun clientErrorInfo(): StatClientError? {
         if (action != Action.ERROR) {

+ 1 - 1
gradle/libs.versions.toml

@@ -154,7 +154,7 @@ appleAppauth = "0.11.1"
 tiktok = "2.3.0"
 
 # frame
-frameBom = "5.1.22-yoki-14"
+frameBom = "5.1.22-yoki-16"
 frameRouterCompiler = "5.1.6"
 frameTrace = "1.0.0"
 frameBundleTool = "1.0.0"