Skip to content

Commit

Permalink
1.add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
smallBuild committed Jun 19, 2021
1 parent 0351d92 commit 39c377a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#### JSBridge-Android
[![Download](https://api.bintray.com/packages/smallbuer/tools/jsbridge/images/download.svg?version=1.0.4)](https://bintray.com/smallbuer/tools/jsbridge/1.0.4/link) [![Release Version](https://img.shields.io/badge/release-1.0.4-red.svg)](https://github.com/smallbuer/JSBridge-Android/releases) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.smallbuer/jsbridge/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.smallbuer/jsbridge) [![Platform](https://img.shields.io/badge/Platform-Android-brightgreen.svg)](https://github.com/smallbuer/JSBridge-Android)
[![Download](https://img.shields.io/badge/Download-1.0.6-brightgreen.svg)](https://search.maven.org/artifact/com.smallbuer/jsbridge/) [![Release Version](https://img.shields.io/badge/release-1.0.6-red.svg)](https://github.com/smallbuer/JSBridge-Android/releases) [![Maven Central](https://img.shields.io/badge/Download-1.0.6-brightgreen.svg)](https://search.maven.org/artifact/com.smallbuer/jsbridge/1.0.6/aar) [![Platform](https://img.shields.io/badge/Platform-Android-brightgreen.svg)](https://github.com/smallbuer/JSBridge-Android)

### 简介

Expand All @@ -9,6 +9,9 @@

不再使用URL SHEME拦截方式,直接采用webview的addJavaScriptInterface,此方法根据Android源码跟踪,是目前采用webview方案js与原生交互效率最高的一种系统实现;
对于API小于17的使用者,1.0.3版本将支持版本降低到14,满足一些朋友的需要,为了安全主要实现方式利用onJsPrompt方法让H5可以和原生进行交互,并且移除了低版本的三个危险漏洞;

1.0.6将BridgeWebView设置为Public,方便业务层进行拦截URL处理;

```
//4.2之前addJavascriptInterface有安全泄漏风险,进行移除
webView.removeJavascriptInterface("searchBoxJavaBridge_");
Expand Down

0 comments on commit 39c377a

Please sign in to comment.