Skip to content

v1.6.0

Latest

Choose a tag to compare

@ysdragon ysdragon released this 05 Sep 19:29
· 3 commits to main since this release
5e2e1e9

Ring WebView - v1.6.0

This release adds Android support — the same main.ring now runs on desktop and Android via ring2apk — and removes JSON boilerplate: the C backend converts between JSON and Ring lists automatically.

Nota notes app on Android

Highlights

  • Automatic JSON bridge (301f3d8): bound Ring functions receive req as a decoded Ring list instead of a raw JSON string, and wreturn() encodes lists/numbers itself. No simplejson needed on the data path.
  • Android backend (2e9e453): the same webview_* Ring C-API backed by android.webkit.WebView over JNI (io.github.ysdragon.webview), with a worker-owned Ring VM, rotation re-attach, and renderer-kill recovery.
  • Nota example (77f4a35): a notes app under examples/android/ — add/edit/pin/delete/search with file persistence — built with ring2apk, bridge driven by native onDomReady.

Breaking change

  • Code written against 1.5.2 breaks at runtime: drop json_decode(req) (use req directly), drop json_encode() around wreturn() arguments, and print lists with see req (string + list is a runtime error). Booleans arrive as "__JSON_TRUE__" / "__JSON_FALSE__".
  • The install folder stays webview — this release is numbered 1.6.0 so updates land in place. Users keep writing load "webview.ring".

New Features

  • yyjson integration (99d1470, 469edba, 33efaf1): yyjson submodule, CMake link, and JSON payload handling in bind and return.
  • Android build (c0f77bf): mutually-exclusive CMake backend, plus the ring2apk dependency (4f63cea).
  • Bridge docs (cb9c492, 9774a6b): bind/wreturn JSON handling clarified and aligned with the built-in flow.

Docs

  • Android guide (b70bedf): new docs/ANDROID.md starter guide.
  • README (16cc78b): Android platform support and setup instructions.

Package & Configuration

  • Android files registered (d42d5b2): backend, example, and docs added to the files list in package.ring.
  • Version 1.6.0 (b4a770c): bump, with a 1.5.2 versions entry tracking the v1.5.2 branch.

Full Changelog: v1.5.2...v1.6.0