Skip to main content

litehost 1.2.0 copy "litehost: ^1.2.0" to clipboard
litehost: ^1.2.0 copied to clipboard

Use SetLiteWeb's phone features (location, QR scanner, Bluetooth, sign-in, profile, storage and more) from a LiteStore mini app, with typed Dart APIs and a mock host for development in a normal browser.

1.2.0 #

For SetLiteWeb 1.6.6+ (Android):

  • LiteHost.bluetooth.enable(): Android's "turn on Bluetooth?" dialog.
  • LiteHost.wifi.enable() (feature wifi.enable): the Wi-Fi panel for the user to switch Wi-Fi on (Android 10+), directly on older phones.
  • LiteHost.torch.set() / isOn() (feature torch): off by itself when the app leaves the screen.
  • LiteHost.nfc.read() (feature nfc): the host's "hold a tag" sheet; tag id, techs and NDEF records (text, links, contact cards). No commands go to cards, so bank cards give only a random id.
  • LiteHost.sensors.list() / watch() (feature sensors): motion, compass, light, pressure, proximity, temperature, humidity, steps; up to 50 Hz, 4 at once.
  • LiteHost.gestures.watch() (feature gestures): shake, face down/up, tilt left/right, wave.
  • LiteHost.device.battery(): level, charging and battery temperature.
  • MockHost answers all of them; litehost:check knows them.

1.1.2 #

  • The example is now Feature Lab: one card per feature (every litehost API, including wifi.signal, notifications, biometric, contacts, browser sign-in, camera and microphone streams), with results, error codes explained, timings, an event log and "Run safe tests". No API changes.

1.1.1 #

  • Works with archive 3 as well as 4 (only the build tool uses it), so mini apps on Flame's tiled maps, still on archive 3, can depend on litehost.

1.1.0 #

  • LiteHost.wifi.signal() (feature wifi.signal, SetLiteWeb 1.6.4+, Android): signal strength in dBm, Wi-Fi link speed and band, with percent and quality helpers. No network name, so no consent sheet. MockHost drifts it like a walk, or fixes it with mockRssi.
  • litehost:check also reads JavaScript and HTML in web/, for mini apps that call window.LiteHost directly, and tells wifi.get from wifi.signal.
  • litehost:build: --target <file> for apps whose entry point isn't lib/main.dart; no offline service worker (SetLiteWeb keeps the bundle); leaves out Flutter engine files a WebView never loads (skwasm, other renderers, .symbols, version.json), several MB per app. --no-trim keeps them; --wasm builds keep them too.

1.0.0 #

  • First release, for SetLiteWeb bridge version 1: location, camera, microphone, Bluetooth LE, Wi-Fi, clipboard, profile, sign-in (SetLiteWeb token and browser OAuth), QR scanner, photo picker, share, open links, haptics, keep screen on, per-app storage, device info, shareable links, notifications (now or scheduled, opening the app on tap), biometric confirm, contact picker, and pause/resume/link events.
  • MockHost for development in a normal browser and for tests.
  • litestore.yaml manifest, dart run litehost:check and dart run litehost:build.
1
likes
0
points
--
downloads

Publisher

verified publishersetliteweb.com

Weekly Downloads

Use SetLiteWeb's phone features (location, QR scanner, Bluetooth, sign-in, profile, storage and more) from a LiteStore mini app, with typed Dart APIs and a mock host for development in a normal browser.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

archive, crypto, path, web, yaml

More

Packages that depend on litehost