Skip to content

Releases: wendux/DSBridge-IOS

3.0.6

19 Nov 08:36
Compare
Choose a tag to compare

refactor code

11 Oct 06:03
Compare
Choose a tag to compare
3.0.5

refactor code

add JSCallback type

18 Sep 05:46
Compare
Choose a tag to compare
3.0.4

add JSCallback block typedef

3.0.3

06 Sep 09:59
Compare
Choose a tag to compare

fix #40 #44

3.0.2

26 Feb 03:37
Compare
Choose a tag to compare

fix DSUIDelegate bug

3.0.1

06 Feb 03:22
Compare
Choose a tag to compare
update doc

3.0.0

02 Feb 08:38
Compare
Choose a tag to compare

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. DeprecatedsetJavascriptInterface , use addJavascriptObject instead.

  2. DeprecatedsetJavascriptContextInitedListener ,callHandler can be called at any time.

  3. DeprecatedDUIWebView , UIWebView will not be supported ever.

  4. New: addJavascriptObject:(id) object namespace:(NSString *) namespace

  5. New: removeJavascriptObject:NSString * namespace

  6. New: disableJavascriptDialogBlock:(bool) disable

  7. New: hasJavascriptMethod:(NSString *) handlerName methodExistCallback:(void(^ )(bool exist))callback

  8. New: setJavascriptCloseWindowListener:(void(^)(void))callback

  9. New: setDebugMode:(bool) debug

  10. New: customJavascriptDialogLabelTitles:(NSDictionary*) dic

  11. New feature: Support namespace

  12. New feature: Can add multiple API object

  13. Changed: Object-c API signature changed

  14. Changed: callHandler can be called at any time.

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

Why Only Support WKWebView?

Advantages of WKWebView

It is well known that WKWebView loads web pages faster and more efficiently than UIWebView, and also doesn't have as much memory overhead for you.

Under the current timeline, most iOS apps only support iOS 9.0+.

UIWebView Cross-Domain Access Vulnerability

The reason for the iOS platform cross-domain access vulnerability is due to UIWebView turning on the WebKitAllowUniversalAccessFromFileURLs and WebKitAllowFileAccessFromFileURLs options.

WKWebView default allowFileAccessFromFileURLs and allowUniversalAccessFromFileURLs option is false.

2.0.6

02 Feb 06:16
Compare
Choose a tag to compare
fix #24

2.0.5

23 Jan 10:44
Compare
Choose a tag to compare
fix bug  #24

2.0.4

10 Jan 08:07
Compare
Choose a tag to compare
update podspec