fix: 注入 Android 13 预测手势并在底层强制禁用 Impeller 引擎保障 WebView 渲染稳定

This commit is contained in:
Max 2026-03-20 04:43:14 +08:00
parent 77af598f3e
commit 8db977c3d9
1 changed files with 11 additions and 2 deletions

View File

@ -45,8 +45,17 @@
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
<uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/>
<!-- 通过 Manifest Merger 将 cleartextTraffic 自动注入宿主 application解决前序核查发现的 HTTP default_url 问题 -->
<application android:usesCleartextTraffic="true">
<!-- 通过 Manifest Merger 将底层应用属性自动注入宿主 application -->
<application
android:usesCleartextTraffic="true"
android:enableOnBackInvokedCallback="true">
<!-- 防御性降级:鉴于本项目属于纯 WebView 壳Impeller (Flutter 的新一代渲染引擎)
在 Android 端对 Platform View (WebView底层依赖) 的硬件兼容性目前仍有偶发性黑屏、花屏或内存泄漏 Bug。
强制此参数为 false (退回使用极度成熟的 Skia 引擎) 是保证数千款低端教育平板不崩溃的最优解。-->
<meta-data
android:name="io.flutter.embedding.android.EnableImpeller"
android:value="false" />
</application>
<!-- url_launcher 在 Android 11+ 检测应用需要白名单 -->