Android:use webview executor for fallback plan

This commit is contained in:
pengfei.zhou 2021-11-05 17:30:37 +08:00 committed by osborn
parent 0ca5913357
commit 2be389461c

View File

@ -99,8 +99,11 @@ public class DoricJSEngine implements Handler.Callback, DoricTimerExtension.Time
}
protected void initJSEngine() {
try {
mDoricJSE = new DoricNativeJSExecutor();
} catch (Exception e) {
mDoricJSE = new DoricWebViewJSExecutor(Doric.application());
//mDoricJSE = new DoricNativeJSExecutor();
}
if (mDoricJSE instanceof DoricWebViewJSExecutor) {
loadBuiltinJS("doric-web.js");
}