Coder Social home page Coder Social logo

Comments (1)

wendux avatar wendux commented on June 15, 2024

首先,多谢建议。其实dsbridge刚开始时是同时支持crosswalk和x5的,最后考虑到一下几点原因取掉了:

  1. Android 版本更新很快,自带webview能力越来越强,一般app对第三方浏览器内核需求越来越小[主要原因]。
  2. 若支持crosswalk和x5,工程中就必然要引入这两者的jar包和lib库,这会让不需要这两者的开发者手动剥离,会增加集成成本。
  3. 如果要使用crosswalk和x5,可以仿照源码中webview的实现方式,原理很像,(ps:需要注意的是crosswalk中@javascript标注和webview中的同名不同包,引入错了会导致接口执行不了)。

因为dsbridge的实现原理是侵入式的,需要在webview加载页面的过程中执行一些操作,所以无法隔离.

from dsbridge-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.