android: change back to DoricJSEngine by default

This commit is contained in:
pengfei.zhou 2021-11-09 16:54:03 +08:00 committed by osborn
parent 18b50be203
commit 098d96e47c
3 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,7 @@ android {
}
afterEvaluate {
//buildJSBundle.exec()
buildJSBundle.exec()
}
task buildJSBundle(type: Exec) {

View File

@ -52,7 +52,7 @@ public class DoricNativeDriver implements IDoricDriver {
private final Handler mUIHandler;
public DoricNativeDriver() {
doricJSEngine = new DoricWebShellJSEngine();
doricJSEngine = new DoricJSEngine();
mBridgeExecutor = Executors.newCachedThreadPool();
mUIHandler = new Handler(Looper.getMainLooper());
mJSHandler = doricJSEngine.getJSHandler();

View File

@ -7,6 +7,7 @@
<body>
<p>Hello HTML5</p>
</body>
<script type="text/javascript" src="http://shell.doric/doric-web.js"></script>
<script type="text/javascript">
function addScriptElement(scriptId, source) {
const scriptElement = document.createElement("script");