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 { afterEvaluate {
//buildJSBundle.exec() buildJSBundle.exec()
} }
task buildJSBundle(type: Exec) { task buildJSBundle(type: Exec) {

View File

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

View File

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