Android:use webview executor for fallback plan
This commit is contained in:
parent
0ca5913357
commit
2be389461c
@ -99,8 +99,11 @@ public class DoricJSEngine implements Handler.Callback, DoricTimerExtension.Time
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void initJSEngine() {
|
protected void initJSEngine() {
|
||||||
|
try {
|
||||||
|
mDoricJSE = new DoricNativeJSExecutor();
|
||||||
|
} catch (Exception e) {
|
||||||
mDoricJSE = new DoricWebViewJSExecutor(Doric.application());
|
mDoricJSE = new DoricWebViewJSExecutor(Doric.application());
|
||||||
//mDoricJSE = new DoricNativeJSExecutor();
|
}
|
||||||
if (mDoricJSE instanceof DoricWebViewJSExecutor) {
|
if (mDoricJSE instanceof DoricWebViewJSExecutor) {
|
||||||
loadBuiltinJS("doric-web.js");
|
loadBuiltinJS("doric-web.js");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user