fix: 注入 Android 13 预测手势并在底层强制禁用 Impeller 引擎保障 WebView 渲染稳定
This commit is contained in:
parent
77af598f3e
commit
8db977c3d9
|
|
@ -45,8 +45,17 @@
|
||||||
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
|
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
|
||||||
<uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/>
|
<uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/>
|
||||||
|
|
||||||
<!-- 通过 Manifest Merger 将 cleartextTraffic 自动注入宿主 application,解决前序核查发现的 HTTP default_url 问题 -->
|
<!-- 通过 Manifest Merger 将底层应用属性自动注入宿主 application -->
|
||||||
<application android:usesCleartextTraffic="true">
|
<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>
|
</application>
|
||||||
|
|
||||||
<!-- url_launcher 在 Android 11+ 检测应用需要白名单 -->
|
<!-- url_launcher 在 Android 11+ 检测应用需要白名单 -->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue