Skip to content

0.1.0

Latest

Choose a tag to compare

@msulmangull msulmangull released this 23 Nov 22:46
· 1 commit to main since this release

First release.

webview-bridge

  • window.print() opens Android's print dialog (printers and Save as PDF).
  • blob: and data: downloads are saved to Downloads under their real names, including blob URLs revoked straight after the click.
  • <a download> and http(s) downloads go through DownloadManager with the page's cookies.
  • Only origins you allow get the bridge (WebViewCompat.addWebMessageListener, no addJavascriptInterface).
  • Large files stream in 512 KB chunks; sizes are capped and file names sanitised.

webview-bridge-billing

  • Google Play Billing 9 as window.AndroidBilling: products, one-time purchases, subscriptions with offers, pending purchases, acknowledge, consume, purchase updates.

Install

Add maven("https://jitpack.io") to your repositories, then:

implementation("com.github.Techoship.android-webview-bridge:webview-bridge:0.1.0")
implementation("com.github.Techoship.android-webview-bridge:webview-bridge-billing:0.1.0") // optional

TypeScript types for the page side are in js/webview-bridge.d.ts.