No platform declared the meshcore scheme, so a share link tapped in a
browser or another app went nowhere.
- Android: a meshcore VIEW/BROWSABLE intent filter on MainActivity, and
flutter_deeplinking_enabled=false, which app_links needs; otherwise
Flutter treats "channel/add" as a screen to navigate to.
- iOS: CFBundleURLTypes for meshcore, and FlutterDeepLinkingEnabled=false.
- macOS: CFBundleURLTypes for meshcore.
- app_links 7.2.2 (Apache-2.0) feeds the link the app was opened with,
and later ones, to LinkRouter (#1289). Only meshcore:// links are acted
on: on web the page's own address arrives as the initial link, and an
ordinary launch must not show a link message.
Windows and Linux wait on how the app is installed (#1284).
Regression tests:
- share_link_registration_test: the three platform declarations. All
three fail against dev's manifest and plists.
- link_router_test: only share links are taken from the OS.
- link_router_host_test: a link from the OS opens the confirmation, and
an ordinary address does nothing.
Epic: #1286
Feature: #1280
Agent: StormyElk (session 088ce922)
Ephemeral X25519, HKDF-SHA256 and AES-256-GCM with the 53-byte header as additional data, in the format the log-intake Worker checks. Uses the vetted cryptography package (2.9.0). The test vectors come from Python's cryptography library via tools/logs/make_envelope_vectors.py, an implementation independent of the app, and the Dart output matches them byte for byte; the pull tool will open the same vectors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LogPackage gathers every log file and the Android exit traces, re-runs the redactor over each line oldest first (so logs written by earlier builds lose their passwords too), and adds manifest.json with the app version, commit, platform, OS and radio model, firmware and caps. Share and Save now hand over these redacted copies, never the files in the log folder. zip() is what Send to Offband will upload. archive moves from transitive to direct at the locked 4.0.9.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pristine import of MeshEnvy/flserial at
48216310061efc8d5d217cc18014fc2cb501646e (MIT, Grzegorz Lesniak), the
exact commit the app already pinned, into packages/flserial, with the
dependency switched from git to a path. Mirrors the #695/#686 vendor
pattern.
Vendored with git itself (fetch of that commit, read-tree --prefix), so
every file is the upstream blob: all 70 files verified blob-for-blob
against the commit. Left out, as #695 did: example/, .github/ and
.vscode/.
No behaviour change. The Windows release build compiles the plugin from
the vendored path and produces a flserial.dll of the same size as the
installed one. pubspec.lock also picks up flutter_blue_plus_android
8.2.2+offband.1, the version dev's own vendored package already
declares.
The fix for the 8 KB ring that overwrote contact-sync bytes (#704)
follows in #710.
Epic #702.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream flutter_blue_plus_linux returns `Stream.empty()` from onMtuChanged,
so no MTU ever reaches Dart on Linux. FlutterBluePlus._mtuValues stays empty,
mtuNow falls back to its 23-byte ATT default forever, effectiveMaxFrameSize
returns the 20-byte floor, and maxChannelMessageBytes clamps to 0. Every
keystroke is then rejected by the length limiter while the field still focuses
and blinks: the #592 symptom, reported on Linux as locked entry fields.
BlueZ does expose the negotiated MTU, as a property on
org.bluez.GattCharacteristic1, surfaced by the bluez package this plugin
already depends on (BlueZGattCharacteristic.mtu). The value was one layer down
the whole time and simply never read.
The patch watches characteristic property changes for 'MTU' and emits a
BmMtuChangedResponse carrying the largest value across the device's
characteristics. They describe one ATT link so they should agree; the max
stops a characteristic that has not been exercised yet, and so reports
nothing, from dragging the figure down. Zero is filtered out, because
FlutterBluePlus would cache it and hand callers something worse than its own
default, and identical consecutive values are suppressed.
Nothing downstream needed changing: the device.mtu subscription added for
Windows in #686 is platform-agnostic, so Linux now gets the same live budget
recovery through the same path.
Also points dependency_overrides at the vendored copy. Third vendored BLE
backend, alongside android (#694) and winrt (#686).
Verified: analyze clean, format clean, 962 tests pass. NOT verified on Linux
hardware; nobody here runs Linux BLE, which is why the gap survived this long.
#717's acceptance requires a real Linux BLE connect showing a non-default
`MTU now:` in the app log.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
App-side half of the #592 fix; the plugin-side GattSession patch is a separate
commit on packages/flutter_blue_plus_winrt.
- dependency_overrides points flutter_blue_plus_winrt at the vendored copy
(version 0.0.20+offband.1; interface constraint relaxed to >=8.2.2 since the
Dart layer uses nothing 9.x-only - the 9.x/2.3.x upgrade was deliberately
skipped, owner decision on #685).
- Connector: requestMtu is now attempted on Android only. flutter_blue_plus
throws "android-only" on every other platform before any platform code runs
(#683), so the old call could never succeed off-Android and its failure log
was noise.
- Connector: subscribe to device.mtu and notifyListeners on each value. The
composers read effectiveMaxFrameSize on rebuild, so this is what lets the
message byte budget recover from the 20-byte floor the moment the platform
reports the real MTU, instead of waiting for an unrelated rebuild.
Subscription is cancelled on reconnect and disconnect.
- test/connector/mtu_composer_budget_test.dart: characterizes the collapsed
budgets at the unknown-MTU floor (DM 4 bytes, channel 1 or 0) - the numbers
both field reports reduced to - and the healthy-link budgets. Rescued from
the throwaway diagnosis branch (#683).
- Regenerated plugin registrants picked up plugins missing from the committed
copies (file_selector, screen_retriever, window_manager); stale on dev,
refreshed by pub get after the override.
analyze clean, 958 tests pass.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pristine import of pub.dev flutter_blue_plus_android-8.2.2 into
packages/, wired via dependency_overrides, mirroring the WinRT vendor
pattern from #686. FBP License v1.4 and BSD NOTICE retained.
Verified against the pub cache file-by-file: 9 of 12 files
byte-identical; AndroidManifest.xml, LICENSE and
FlutterBluePlusPlugin.java differ ONLY in end-of-line whitespace
(1, 4 and 11 lines respectively; the byte-perfect license text also
ships as LICENSE.md, which is byte-identical). No content changes;
verified with git diff --ignore-space-at-eol. Release APK builds
clean against the vendored copy before any patch.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The share helper only invoked the OS share sheet on mobile; on all desktop it
opened the containing folder, which for a temp-dir capture dumped the user into
TEMP amid unrelated files. Now:
- Android/iOS: OS share sheet (unchanged).
- Windows/macOS/Linux: native Save As dialog (file_selector) writing the file
to a user-chosen location.
- Web: browser download of the log text (no on-disk file on web).
Adds file_selector; web download via a js_interop helper behind a conditional
import. Folds in #427 (localized share strings). LogExport.shareFile keeps a
compatible signature for the serial-capture screen (#430).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds the yaml dependency and parseConfigProfile(): YAML -> ConfigProfile
(#402). Strict by design since profiles are untrusted input (#139) — unknown
keys, wrong types, out-of-range/duplicate broker slots, and unknown
transport/auth values all throw ConfigProfileFormatException with a
user-facing message. Only keys present populate the model. 11 unit tests.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The DB directory came from getApplicationSupportDirectory(), which on Windows
is derived from the executable's Company/Product version metadata. Two builds
with different metadata (or a future rebrand) resolved DIFFERENT %APPDATA%
folders and read DIFFERENT databases, so a user's history appeared to vanish
when they ran a different build.
Pin the desktop DB to a constant path (Windows: %APPDATA%\Offband MeshCore;
Linux pinned too, its support dir derives from the exe name). On first run at
the pinned location, migrate an existing DB in via SQLite VACUUM INTO (a
consistent snapshot that is safe even under a concurrent writer), choosing the
DB from the known canonical locations first and falling back to a bounded
scan of the app-data roots (no name blocklist) so a DB under an unknown
folder is still found. On any snapshot failure it aborts cleanly, leaving the
source intact and opening a fresh DB - never a raw file copy of a live WAL DB.
Adds sqlite3 as a direct dependency (pinned to drift 2.34.2's resolved 3.5.0).
Tests cover source selection, the folder-agnostic scan, and the snapshot
happy + abort paths.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
drift_flutter's native default is getApplicationDocumentsDirectory(), which on
Windows resolves to the user's Documents folder - redirected into OneDrive on
most machines (verified: drift_flutter 0.3.1 connect.dart). A live SQLite file
syncing to OneDrive risks lock contention and corruption, and it is simply the
wrong place for app data.
The DB now opens in getApplicationSupportDirectory() (%APPDATA% on Windows),
the same place SharedPreferences already lives, so all app data sits together.
Existing installs already have a DB in the old location, so opening a fresh one
there would abandon their migrated history. _appSupportDatabaseDirectory()
relocates it once on first run: it moves offband_store.sqlite and its -wal/-shm
sidecars from the documents dir to the support dir before drift opens, and
never deletes a source without a successful copy. If relocation fails it is
logged loudly and a fresh DB is created, with the migration re-running from
SharedPreferences rather than silently losing anything.
Web is unaffected: path_provider has no web backend and drift ignores
databaseDirectory there, using OPFS/IndexedDB.
Adds `path` as a direct dependency (was transitive).
flutter analyze clean, tests pass.
Owner asked whether the web assets must be re-downloaded on every drift bump.
They do not - the version can be pinned - but doing that safely needed three
changes, because the failure mode is silent.
1. drift and drift_flutter are pinned EXACTLY (2.34.2 / 0.3.1), no caret. The
committed web assets are built for a specific drift release, so a caret
would let pub resolve a newer drift than the shipped binaries and break the
web build with no signal at compile time.
2. pubspec.lock is now committed (removed from .gitignore). It was ignored,
which for an application means resolution can differ between machines and
CI. That undermines the pin: the assets are matched against the RESOLVED
version, so resolution has to be reproducible. Owner-authorized, and it is
a repo-wide change rather than a storage-only one.
3. New test asserting the shipped assets match the resolved drift version,
plus that both files exist and the wasm really starts with the WebAssembly
magic bytes. Verified in both directions: it passes when matched and fails
loudly with re-download instructions when skewed.
Without (3) a stale asset compiles, deploys, and only fails in the user's
browser - the exact silent-failure class SAFELANE 6 forbids and that produced
#333 earlier.
Upgrading drift is now a deliberate step: bump the pin, re-download both
assets, update web/drift_assets.version. The test fails until you do.
flutter analyze clean, tests pass.
we were only deleting channels and messages on device and the in app db would persist
this caused weird messages to later show up in other channels as they were deleted and
added due to the fact we store messages by channel index(slot #)
- Reduce reaction payload from ~44 bytes to 9 bytes (5x smaller)
- Use 4-char hex hash (timestamp + sender + first 5 chars) for message ID
- Use 2-char hex emoji index instead of multi-byte UTF-8 emoji
- Format: r:HASH:INDEX (e.g., r:a1b2:00)
- For 1:1 chats, sender is implicit (null) for shorter hash
- Prevent users from reacting to their own messages
- Add room server reaction support with sender identification
- Make emoji lists public in EmojiPicker for shared indexing
- Add 💪 and 🚀 emojis to picker
- Add comprehensive unit tests for reaction helpers
- Update minor dependencies
- Added flutter_linkify package to auto-detect and linkify URLs in chat messages.
- Implemented LinkHandler class to manage link tap confirmations and URL launching.
- Updated chat_screen.dart to use Linkify for displaying message text with links.
- Registered url_launcher plugin for handling URL launches across platforms.
- Updated pubspec.yaml and pubspec.lock to include new dependencies.
- Cleaned up untranslated.json by removing unused translations.
- Implement Community model for managing community data, including secret handling and PSK derivation.
- Create CommunityQrScannerScreen for scanning and joining communities via QR codes.
- Develop CommunityStore for persisting community data using SharedPreferences.
- Introduce QrCodeDisplay widget for displaying QR codes with customizable options.
- Add QrScannerWidget for reusable QR code scanning functionality with validation and controls.
- Introduced a new extension for localization in Flutter with `LocalizationExtension` in `l10n.dart`.
- Added a Python script `translate.py` for translating ARB/JSON localization files using a local Ollama model, preserving keys and placeholders, and handling ICU format rules.
Open-source Flutter client for MeshCore LoRa mesh networking devices.
Features:
- BLE device scanning and connection
- Nordic UART Service (NUS) integration
- Material 3 design with system theme support
- Provider-based state management
- Placeholder screens for chat, contacts, and settings
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>