Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 951 Bytes

File metadata and controls

35 lines (25 loc) · 951 Bytes

Introduction

If your app minSdkVersion is higher than 17, it is recommended to use the official solution.

Otherwise you can try it.For more information see the wiki

Download

repositories {
    // ...
    maven { url "https://jitpack.io" }
}

dependencies {
    implementation 'com.github.dtdream:jsbridge:$latest_version'
}

Notice

Listen for the WebViewJavascriptBridgeReady event, ensuring that the "earlier triggered" event takes effect

document.addEventListener('WebViewJavascriptBridgeReady', function() {
               //do your work here
  },
  false
)

License

This project is licensed under the terms of the MIT license.