Skip to content

Mavis UI 0.1.0-rc.20

Pre-release
Pre-release

Choose a tag to compare

@rafaelaugustos rafaelaugustos released this 03 Dec 11:56
· 58 commits to main since this release
138c7a4

All nine Mavis packages move to 0.1.0-rc.20 together. This release only changes the creator: the components and renderers are the same as in 0.1.0-rc.19, and Jolt stays at 0.1.0-rc.20.

Over-the-air updates in the creator

create-mavis --ota sets up signed over-the-air updates for a project's NativeScript app, with @getcortexlabs/ota-nativescript and Orbit's Mobile updates. An update carries JavaScript, CSS and assets; plugins, App_Resources and the NativeScript runtime still go through the stores.

  • --ota init --orbit <url> --workspace <id> adds the SDK and ota-ns and writes the build hook, with a project postinstall that writes it again where npm 11 and pnpm skip dependency scripts. It creates the manifest key outside the project, registers the keys in Orbit and writes a public-only ota.config.json. It also adds src/ota.ts, which confirms each launch with markReady() before checking for updates in the background, without waiting for the network.
  • --ota baseline --platform <p> records the native fingerprint of the store binary.
  • --ota publish --platform <p> prepares the release bundle and stops with the section that changed when the native side differs from the baseline. Otherwise it packs, verifies and uploads to Orbit, and assigns the release with --channel and --rollout. --dry-run stops before the upload.
  • --ota init --local with --ota serve tests the loop against ota-ns serve on your machine.

The Orbit token is read from ORBIT_TOKEN and is never written to the project. Guide: https://mavis-ui.getcortexlabs.com/guide/ota-updates

Install

npm install @getcortexlabs/mavis@0.1.0-rc.20 @rafaelaugusto/jolt@0.1.0-rc.20
npm install @getcortexlabs/mavis-web@0.1.0-rc.20 @rafaelaugusto/jolt@0.1.0-rc.20
npx @getcortexlabs/create-mavis@0.1.0-rc.20 my-app

Full changes: CHANGELOG · Closes #493 (#494).