Skip to content

koru v0.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 31 Oct 23:50
· 1 commit to main since this release
a866230

Remote content, web APIs and new native plugins. All of it is opt-in in
koru.json: without the new fields the runtime bytecode and the manifest are
byte-identical to 0.0.3. None of it has run on an Android device yet; the
self-test app (selftest.apk) covers each feature so it can be checked on a
phone.

Added

  • server in koru.json: url opens a website as the app, allowNavigation
    lists the hosts that open inside the app (hybrid apps), and bridge gives
    the koru API to exact https origins. Links to any other site open in the
    system browser or app (https, http, mailto, tel, sms, geo, market).
  • webFeatures in koru.json: files (<input type="file">, with multiple
    selection), geolocation, camera and microphone (getUserMedia).
    Location, camera and microphone ask Android for the permission and only
    answer the app origin and server.bridge origins.
  • Plugins alarms (scheduled notifications that survive a reboot),
    browser (browser.open), screen (screen.keepAwake) and clipboard
    (writeText, readText), with web versions under koru dev.
  • koru build type-checks all the bytecode, runtime and custom plugins, with
    a verifier modelled on ART's, and refuses an APK that Android would reject
    when it loads the class.
  • The self-test app checks navigation, the remote bridge (through
    https://koru.js.org/selftest/remote/), the web features and the new
    plugins.

Install

curl -fsSL https://koru.js.org/install.sh | sh

On Windows (PowerShell): irm https://koru.js.org/install.ps1 | iex

Verify a download

sha256sum -c koru_0.1.0_linux_amd64.tar.gz.sha256
gh attestation verify koru_0.1.0_linux_amd64.tar.gz --repo wux4an/koru

Self-test app

selftest.apk is examples/selftest built with this release: install it on a phone or emulator and it runs every automatic check of the bridge, the plugins and the WebView when it opens. It is a debug build, so the WebView can be inspected with DevTools. Send the "Copy report" JSON with any failure.

Each release signs selftest.apk with a new key: uninstall the previous self-test app before installing this one.