Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0 change list #31

Open
wendux opened this issue Feb 2, 2018 · 4 comments
Open

v3.0 change list #31

wendux opened this issue Feb 2, 2018 · 4 comments
Labels
Milestone

Comments

@wendux
Copy link
Owner

wendux commented Feb 2, 2018

DSBridge v3.0 change list

DSBridge v3.0 is a milestone, Compared with v2.0.X, we have made a lot of changes. Note that V3.0 is incompatible with V2.0, but v2.0 will continue to maintain. If you are a new user, use >=v3.0

In Java

  1. Deprecateddwebview.setJavascriptInterface , use addJavascriptObject instead.
  2. New: addJavascriptObject(Object object, String namespace)
  3. New: removeJavascriptObject(String namespace)
  4. New: disableJavascriptDialogBlock(bool disable)
  5. New: hasJavascriptMethod(String handlerName, OnReturnValue<Boolean> existCallback)
  6. New: setJavascriptCloseWindowListener(JavascriptCloseWindowListener listener)
  7. New: DWebView.setWebContentsDebuggingEnabled(boolean enabled)
  8. New feature: Support namespace
  9. Changed: Java API signature changed
  10. Changed: callHandler can be called at any time.
  11. Changed: change minSdkVersion to 11.

In Javascript

  1. New: hasNativeMethod(handlerName,[type])
  2. New: disableJavascriptDialogBlock(disable)
  3. New: registerAsyn(methodName|namespace,function|asyApiObject)
  4. Changed: register(methodName|namespace,function|synApiObject)
  5. New feature: Support namespace
@wendux wendux added the New label Feb 2, 2018
@wendux wendux added this to the v3.0.0 milestone Feb 2, 2018
@is1988
Copy link

is1988 commented Nov 19, 2018

真的很佩服作者同时维护android&iOS版本的DSBridge
技不如人甘拜下风

@mdfull
Copy link

mdfull commented Dec 12, 2018

谢谢了,刚好需要用到,感谢

@is1988
Copy link

is1988 commented Jan 9, 2019

引用换了
之前是
implementation 'com.github.wendux:DSBridge-Android:master-SNAPSHOT
现在是
implementation 'com.github.wendux:DSBridge-Android:3.0-SNAPSHOT

@LP-del
Copy link

LP-del commented Dec 25, 2020

DSBridge v3.0之后,只需要引入一个版本,安卓iOS两端同时可用吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants
@is1988 @LP-del @wendux @mdfull and others