feat: 更新 WebView 数据目录后缀至 v5;添加 H5 调试信息快照功能

This commit is contained in:
Booker
2026-05-26 21:43:37 +07:00
parent b2a79e7f21
commit cfae597b9d
3 changed files with 141 additions and 3 deletions

View File

@@ -31,10 +31,10 @@ class MainActivity : FlutterActivity() {
private val WEBVIEW_CACHE_CHANNEL = "io.openim.flutter.im_webview_app/webview_cache"
private val TAG = "MainActivity"
private val MAX_BRANDING_ICON_SIZE = 192
private val WEBVIEW_DATA_DIRECTORY_SUFFIX = "h5_shell_fresh_profile_v4"
private val WEBVIEW_DATA_DIRECTORY_SUFFIX = "h5_shell_fresh_profile_v5"
private val WEBVIEW_STORAGE_RESET_PREFS = "h5_shell_webview_storage"
private val WEBVIEW_STORAGE_RESET_KEY = "reset_version"
private val WEBVIEW_STORAGE_RESET_VERSION = 4
private val WEBVIEW_STORAGE_RESET_VERSION = 5
override fun onCreate(savedInstanceState: android.os.Bundle?) {
configureWebViewDataDirectory()