Skip to content

v1.7.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 16:41
· 539 commits to main since this release

XPRS 1.7.0: new storage

Every database in XPRS now runs on zx, a database engine written in Dart and built into the app. SQLite, SQLCipher and the encrypted profile archive are gone.

What changes for you

  • Start fresh. Conversations, archives and media stored by earlier versions are not carried over. On the first start, the old database files (*.sqlite3, profile.ear) are removed.
  • One storage everywhere. Android, desktop, the server edition and the web version store data the same way. There is no native database library to ship or install, and the server no longer needs libsqlite3.
  • Encrypted profiles. Each store is encrypted with its own key, derived from the profile's master key. The profile's loose files (settings, avatar, wapp data) live in one encrypted store, profile.zx. Your password and the key slot work as before.
  • Media. Large files are kept in 256 KiB pieces, so playing or sharing part of a file reads only that part.
  • Web. The web version now builds as WebAssembly and keeps its profile and data across reloads.

Wapps

  • A new HAL capability, hal.db: each wapp gets its own SQL database (SQLite's dialect), encrypted with the profile. The hal_sqlite_* calls keep working for wapps built before.
  • Chat 0.8.0 and Circles 0.36.0 store their messages with hal.db. They need XPRS 1.7.0 or later; an older XPRS will not load them.

Under the hood

  • Full-text search, the packet archive, the mesh store, gossip, the Nostr relay store, the wallet and the conversation history all moved to zx stores. They write in batches and compact their files as they grow.
  • New architecture checks: no SQLite import anywhere, and zx only through its public library.
  • Releases and F-Droid builds now pin zx by commit, like the core and the Reticulum library.