Merge pull request #805 from OffbandMesh/dev

release: promote 1.6.0+67 to main
main v1.6.0
Benjamin Wiechel 2 months ago committed by GitHub
commit 2ca7974738
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -292,17 +292,47 @@ jobs:
run: |
set -eu
TAG="${GITHUB_REF_NAME}"
# Whether a tag publishes as a full release or a prerelease is DERIVED
# from the tag, never hardcoded (#652). A bare vMAJOR.MINOR.PATCH is a
# full release; anything else is a prerelease.
#
# Defaulting the unrecognised shape to prerelease is deliberate. The
# legacy tags (observer-g2-rc3, v1.1.2-queuediag, v1.1.2-rc.1-b54-rxfed)
# belong there, and a tag whose shape we do not recognise can never
# publish itself as stable by accident.
#
# The flag is passed EXPLICITLY in both branches, including the
# =false form. gh only changes what it is told to change, so a retry
# that omitted the flag was what left a stale prerelease in place.
#
# --latest is deliberately NOT passed: `gh release create --help`
# documents the default as "automatic based on date and version",
# which is what we want. Forcing it would promote a back-ported patch
# tagged after a newer minor.
if printf '%s' "${TAG}" | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+$'; then
PRERELEASE_FLAG="--prerelease=false"
else
PRERELEASE_FLAG="--prerelease"
fi
echo "Tag ${TAG} resolves to ${PRERELEASE_FLAG}"
if gh release view "${TAG}" >/dev/null 2>&1; then
# Retry / re-run: refresh assets and notes, then ensure published.
gh release upload "${TAG}" out/* --clobber
gh release edit "${TAG}" --notes-file "${NOTES}" --prerelease --draft=false
gh release edit "${TAG}" --notes-file "${NOTES}" "${PRERELEASE_FLAG}" --draft=false
else
gh release create "${TAG}" \
--draft \
--title "Offband Meshcore ${VERSION}" \
--notes-file "${NOTES}" \
--prerelease
"${PRERELEASE_FLAG}"
gh release upload "${TAG}" out/*
gh release edit "${TAG}" --draft=false
# The prerelease flag is restated here, not just on create, so both
# branches converge on ONE publish call that declares the complete
# final state. Relying on create+draft to have persisted the flag
# would make publication depend on behaviour we have not verified,
# which is the same class of assumption that caused #652.
gh release edit "${TAG}" "${PRERELEASE_FLAG}" --draft=false
fi
echo "Release ${TAG} published with $(ls out | wc -l) assets."

@ -6,7 +6,14 @@ name: Triage User-Submitted Issues
# (label -> board) fires and sets Status=Backlog / Priority=Medium on board #2.
# `type:` is intentionally left for manual triage (type is the judgment call).
#
# Maintainer-opened issues (author_association OWNER/MEMBER/COLLABORATOR) are untouched.
# Only MISSING labels are applied. An issue that already carries a `priority:` or
# `board:` label keeps it — see #663, where defaulting on top of deliberate labels
# left issues holding two priorities and two board states at once.
#
# Untouched: issues opened by a maintainer (author_association OWNER/MEMBER/
# COLLABORATOR) and issues opened by an account in INTERNAL_ACTORS. The actor
# allowlist exists because author_association alone is not trustworthy — a private
# org membership reports as NONE in the webhook payload (#663).
#
# Requires repo secret PROJECT_PAT (classic PAT, project+repo scope) — the same
# secret sync-labels-to-board.yml uses. The PAT is also what lets the added labels
@ -37,9 +44,15 @@ jobs:
github-token: ${{ secrets.PROJECT_PAT }}
script: |
const INTERNAL = new Set(['OWNER', 'MEMBER', 'COLLABORATOR']);
// author_association is not reliable on its own: the webhook payload reports
// NONE for an org member whose membership is private, even while REST reports
// MEMBER. That demoted every agent-filed issue from 2026-09-17 on (#663).
// Name the internal automation accounts outright so the gate stops depending
// on a visibility setting anyone can flip back.
const INTERNAL_ACTORS = new Set(['diffwireauto']);
const isDispatch = context.eventName === 'workflow_dispatch';
let issueNumber, association;
let issueNumber, association, author;
if (isDispatch) {
issueNumber = parseInt(context.payload.inputs.issue_number, 10);
@ -53,23 +66,45 @@ jobs:
issue_number: issueNumber,
});
association = issue.author_association;
core.info(`Manual dispatch for #${issueNumber} (author_association=${association}) — bypassing author gate for test`);
author = issue.user?.login ?? '';
core.info(`Manual dispatch for #${issueNumber} (author ${author}, author_association=${association}) — bypassing author gate for test`);
} else {
issueNumber = context.payload.issue.number;
association = context.payload.issue.author_association;
if (INTERNAL.has(association)) {
core.info(`#${issueNumber} opened by ${association} (maintainer) — skipping triage`);
author = context.payload.issue.user?.login ?? '';
if (INTERNAL.has(association) || INTERNAL_ACTORS.has(author)) {
core.info(`#${issueNumber} opened by ${author} (${association}) — internal, skipping triage`);
return;
}
core.info(`#${issueNumber} opened by external author (${association}) — triaging`);
core.info(`#${issueNumber} opened by external author ${author} (${association}) — triaging`);
}
// addLabels only adds. Defaulting a priority or board state onto an issue that
// already carries one leaves it holding two of each and lets the downstream
// label -> board sync pick a winner, so only fill in what is actually missing.
const { data: current } = await github.rest.issues.listLabelsOnIssue({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
});
const existing = current.map((l) => l.name);
const hasPrefix = (prefix) => existing.some((n) => n.startsWith(prefix));
const labels = [];
if (!existing.includes('user-submitted')) labels.push('user-submitted');
if (!hasPrefix('priority:')) labels.push('priority:P2');
if (!hasPrefix('board:')) labels.push('board:backlog');
if (labels.length === 0) {
core.info(`#${issueNumber} is already flagged and triaged [${existing.join(', ')}] — nothing to apply.`);
return;
}
const labels = ['user-submitted', 'priority:P2', 'board:backlog'];
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
labels,
});
core.info(`Applied [${labels.join(', ')}] to #${issueNumber}.`);
core.info('sync-labels-to-board.yml will set Status=Backlog / Priority=Medium on board #2.');
core.info(`Applied [${labels.join(', ')}] to #${issueNumber} (already had [${existing.join(', ') || 'none'}]).`);
core.info('sync-labels-to-board.yml will set Status/Priority on board #2 for any board:/priority: label added here.');

@ -2,6 +2,117 @@
All notable changes to Offband Meshcore. Pre-releases are tagged `-beta.N` / `-rc.N`.
## [1.6.0] - 2026-10-05
First stable release of the 1.5.0 line and the production successor to 1.4.0. A large
feature release: a full contacts overhaul, stock-compatible config and identity
export/import, region radio presets, and contact-sync recovery, on top of the
1.5.0-beta.1 groundwork (Experimental section, CoreScope, About).
### Contacts
- A received contact-share on a channel renders an **Add Contact** card/chip (#610).
- **Share your contact into a channel** from a + picker (#611).
- **Contact QR**: show your contact as a QR and scan one to add (#629).
- **Add a contact by public key**, typed or pasted, or from a key alone with no
advert (#627, #628).
- Parse and emit the **stock contact-share URI**, so contacts cross between Offband
and stock MeshCore (#625, #626).
- A contact shows **how far its identity is confirmed** (#630).
- Add, view, or block a **channel sender** from an avatar tap or long-press
(#565, #468).
### Config and identity portability
- **Stock-compatible config export and import** screens and services
(#572, #573, #574, #575, #576).
- **Connector identity export/import**, with an auto-add hop limit (#578).
### Radio presets
- A **region-grouped preset picker** labeled by source, crediting Liam Cottle /
MeshCore for the upstream presets (#727, #728, #729, #731).
- Apply a preset's path hash to a companion, observer, repeater, or room server
(#730, #735, #649), with the picker in repeater and room-server settings (#734).
### Sync and reliability
- Detect a **short contact sync** and recover it with paced, capped re-syncs and
by-key checks, with a banner reporting the recovered count and contacts confirmed
gone (#762, #763, #764, #674).
- **Apply a remote radio setting temporarily** (tempradio) (#662).
- Manage a **sensor like a repeater** (#745).
- Composer byte-budget logging so a debug log can evidence the BLE composer issue
anywhere (#793).
### Experimental and UX (from the 1.5.0-beta.1 groundwork)
- An **Experimental section** unlocked by a 7-tap on the Build row; disabling it
clears every experimental toggle (#509, #553).
- **OKIMesh CoreScope** (Experimental): per-packet observer counts from OKIMesh's
CoreScope service. Requires forthcoming Offband firmware and stays inert until
then (#549, #550).
- An **About screen** in its own Settings category (#526, #527).
- Notifications moved from a bottom SnackBar to a **top toast** (#638).
### Bluetooth reliability
- The composer is no longer locked by an unreported BLE MTU: the negotiated MTU is now
reported on Linux (#717) and Windows (via a vendored BLE plugin with live MTU
updates) (#686), and the floor that locked it on web is lifted (#718). A link that
truly cannot carry a message explains why instead of showing a dead field (#684).
- Bounded GATT-133 connect retry with human-readable errors (#698); an unconfirmed
disconnect retries and warns instead of being swallowed (#697); leaked GATT handles
are closed (#696).
- USB serial no longer drops bytes: mutexes initialize before the reader runs, and each
callback drains fully (#710, #711).
### Fixes
- Delivered direct messages are no longer marked failed: send correlation adopts the
radio's RESP_CODE_SENT ACK hash (#581).
- A short or unreadable contact sync never overwrites saved contacts, and a silent
stream ends on its own (#671, #673, #672).
- Names are no longer truncated mid-codepoint on the wire (#636).
- Late repeater replies go to the app log, not the user's screen (#589).
- Add-contact failures and unknown channel-sender names surface instead of a dead tap
(#565).
- CoreScope distinguishes not-found from unreachable (#678); web identity rebranded
(#608).
### Known issues
- Windows BLE Disconnect can leave the radio held by the OS until replug (#688).
## [1.5.0-beta.1] - 2026-08-04
First beta of the 1.5.0 line, for the closed test track. Introduces an Experimental
section (with CoreScope), an About screen, and repeater CLI and broker fixes.
### Added
- **Experimental section**, unlocked by a hidden 7-tap on the Build row in settings.
Disabling it clears all experimental toggles (#509, #553).
- **OKIMesh CoreScope integration (Experimental).** Query how many OKIMesh CoreScope
observers heard each packet, over the 0xC6 protocol, with an observer/observations
badge, adaptive polling with backoff, and tap / long-press to refresh (#549, #550).
This is tied specifically to the OKIMesh CoreScope service, not a generic or
self-hosted backend. Requires forthcoming Offband firmware (0xC6, cap2 bit and
firmware ver code >= 22, tracked in #611); it stays inert on current firmware.
- **About screen** in its own top-level Settings category, with outbound links to
the website, Play listing, and donate page (#526, #527).
### Fixed
- Repeater CLI: late replies are surfaced instead of discarded, commands get their
own timeout budget, the armed timeout window is reported accurately, and a
prefixed reply only completes the command that owns the prefix (#528, #529, #531,
#532, #533).
- Broker: import never changes the broker enabled state, and a blank-field GET no
longer leaks the echoed key line (#469, #470).
- Channel "Send Again" is gated on `repeatCount == 0` rather than sent status
(#555).
## [1.4.0] - 2026-07-30
A follow-up to the 1.3.0 production launch: settings for headless devices, a

@ -295,7 +295,7 @@ App version: `9.1.0+14` — Dart SDK constraint: `^3.9.2`
- `LSApplicationQueriesSchemes`: `http`, `https`
### Web (`web/`)
PWA scaffold present but boilerplate (`manifest.json` and `index.html` are unmodified Flutter defaults). BLE is unsupported in browsers; TCP and Web Serial USB may work in Chrome only. `ChromeRequiredScreen` gates non-Chrome web users. Versioned releases are produced via `build_pipe` (`?v=<pubspec version>` cache busting, no service worker).
The web client is live at `offband.app` (deployed by CI via Cloudflare Pages). **BLE works on web via Web Bluetooth (`flutter_blue_plus_web`), in Chromium browsers only**: Chrome/Edge on desktop and Android; iOS has no Web Bluetooth in any browser; Linux Chrome may require enabling `chrome://flags/#enable-web-bluetooth`. Connecting requires HTTPS and a user gesture (the browser's device-chooser dialog — no passive scan list). TCP is disabled on web (`scanner_screen.dart` gates it with `!PlatformInfo.isWeb`); Web Serial USB may work in Chrome only. `ChromeRequiredScreen` gates non-Chromium browsers. Versioned assets use `?v=<pubspec version>` cache busting (no service worker).
### Desktop
`linux/`, `windows/`, and `macos/` directories are present as Flutter scaffolds. No app-specific native config has been added; BLE on desktop has not been validated.

@ -0,0 +1,244 @@
{
"format": "meshcore-upstream-radio-presets",
"format_version": 1,
"source": "https://api.meshcore.nz/api/v1/config",
"credit": "Radio presets maintained by Liam Cottle for MeshCore (meshcore.nz), the list the stock MeshCore app shows. Mirrored unmodified from https://api.meshcore.nz/api/v1/config. Offband's own additions live in offband.json. Credit: https://github.com/OffbandMesh/config-profiles#credit",
"updated_at": "2026-10-01T07:48:36Z",
"suggested_radio_settings": {
"info_message": "These presets are suggested by the community.",
"entries": [
{
"title": "Australia",
"description": "915.800MHz / SF10 / BW250 / CR5",
"frequency": "915.800",
"spreading_factor": "10",
"bandwidth": "250",
"coding_rate": "5"
},
{
"title": "Australia (Narrow)",
"description": "916.575MHz / SF7 / BW62.5 / CR7",
"frequency": "916.575",
"spreading_factor": "7",
"bandwidth": "62.5",
"coding_rate": "7"
},
{
"title": "Australia (Mid)",
"description": "915.075MHz / SF9 / BW125 / CR5",
"frequency": "915.075",
"spreading_factor": "9",
"bandwidth": "125",
"coding_rate": "5"
},
{
"title": "Australia: SA, WA",
"description": "923.125MHz / SF8 / BW62.5 / CR8",
"frequency": "923.125",
"spreading_factor": "8",
"bandwidth": "62.5",
"coding_rate": "8"
},
{
"title": "Australia: QLD",
"description": "923.125MHz / SF8 / BW62.5 / CR5",
"frequency": "923.125",
"spreading_factor": "8",
"bandwidth": "62.5",
"coding_rate": "5"
},
{
"title": "Brazil",
"description": "923.125MHz / SF8 / BW62.5 / CR8",
"frequency": "923.125",
"spreading_factor": "8",
"bandwidth": "62.5",
"coding_rate": "8"
},
{
"title": "Canada",
"description": "910.525MHz / SF7 / BW62.5 / CR5 / 3B",
"frequency": "910.525",
"spreading_factor": "7",
"bandwidth": "62.5",
"coding_rate": "5",
"network_settings": {
"path_hash_size": 3
}
},
{
"title": "Costa Rica",
"description": "910.525MHz / SF11 / BW125 / CR5",
"frequency": "910.525",
"spreading_factor": "11",
"bandwidth": "125",
"coding_rate": "5"
},
{
"title": "EU/UK (Narrow)",
"description": "869.618MHz / SF8 / BW62.5 / CR8",
"frequency": "869.618",
"spreading_factor": "8",
"bandwidth": "62.5",
"coding_rate": "8"
},
{
"title": "EU/UK (Deprecated)",
"description": "869.525MHz / SF11 / BW250 / CR5",
"frequency": "869.525",
"spreading_factor": "11",
"bandwidth": "250",
"coding_rate": "5"
},
{
"title": "Czech Republic (Narrow)",
"description": "869.432MHz / SF7 / BW62.5 / CR5 / 2B",
"frequency": "869.432",
"spreading_factor": "7",
"bandwidth": "62.5",
"coding_rate": "5",
"network_settings": {
"path_hash_size": 2
}
},
{
"title": "EU 433MHz (Long Range)",
"description": "433.650MHz / SF11 / BW250 / CR5",
"frequency": "433.650",
"spreading_factor": "11",
"bandwidth": "250",
"coding_rate": "5"
},
{
"title": "EU 433MHz (Narrow)",
"description": "433.650MHz / SF8 / BW62.5 / CR8",
"frequency": "433.650",
"spreading_factor": "8",
"bandwidth": "62.5",
"coding_rate": "8"
},
{
"title": "Hungary",
"description": "869.618MHz / SF7 / BW62.5 / CR5 / 2B",
"frequency": "869.618",
"spreading_factor": "7",
"bandwidth": "62.5",
"coding_rate": "5",
"network_settings": {
"path_hash_size": 2
}
},
{
"title": "Netherlands",
"description": "869.618MHz / SF7 / BW62.5 / CR5",
"frequency": "869.618",
"spreading_factor": "7",
"bandwidth": "62.5",
"coding_rate": "5"
},
{
"title": "Netherlands (Limburg)",
"description": "869.618MHz / SF8 / BW62.5 / CR8 / 2B",
"frequency": "869.618",
"spreading_factor": "8",
"bandwidth": "62.5",
"coding_rate": "8",
"network_settings": {
"path_hash_size": 2
}
},
{
"title": "New Zealand (Narrow)",
"description": "917.375MHz / SF7 / BW62.5 / CR5 / 2B",
"frequency": "917.375",
"spreading_factor": "7",
"bandwidth": "62.5",
"coding_rate": "5",
"network_settings": {
"path_hash_size": 2
}
},
{
"title": "New Zealand (Gisborne)",
"description": "917.375MHz / SF11 / BW250 / CR5 / 1B",
"frequency": "917.375",
"spreading_factor": "11",
"bandwidth": "250",
"coding_rate": "5",
"network_settings": {
"path_hash_size": 1
}
},
{
"title": "Portugal 433",
"description": "433.375MHz / SF9 / BW62.5 / CR6",
"frequency": "433.375",
"spreading_factor": "9",
"bandwidth": "62.5",
"coding_rate": "6"
},
{
"title": "Portugal 868",
"description": "869.618MHz / SF7 / BW62.5 / CR6",
"frequency": "869.618",
"spreading_factor": "7",
"bandwidth": "62.5",
"coding_rate": "6"
},
{
"title": "Slovakia",
"description": "869.618MHz / SF7 / BW62.5 / CR5 / 2B",
"frequency": "869.618",
"spreading_factor": "7",
"bandwidth": "62.5",
"coding_rate": "5",
"network_settings": {
"path_hash_size": 2
}
},
{
"title": "Switzerland",
"description": "869.618MHz / SF8 / BW62.5 / CR8",
"frequency": "869.618",
"spreading_factor": "8",
"bandwidth": "62.5",
"coding_rate": "8"
},
{
"title": "USA",
"description": "910.525MHz / SF7 / BW62.5 / CR5",
"frequency": "910.525",
"spreading_factor": "7",
"bandwidth": "62.5",
"coding_rate": "5"
},
{
"title": "USA - Southern California",
"description": "927.875MHz / SF7 / BW62.5 / CR5 / 3B",
"frequency": "927.875",
"spreading_factor": "7",
"bandwidth": "62.5",
"coding_rate": "5",
"network_settings": {
"path_hash_size": 3
}
},
{
"title": "Vietnam (Narrow)",
"description": "920.250MHz / SF8 / BW62.5 / CR5",
"frequency": "920.250",
"spreading_factor": "8",
"bandwidth": "62.5",
"coding_rate": "5"
},
{
"title": "Vietnam (Deprecated)",
"description": "920.250MHz / SF11 / BW250 / CR5",
"frequency": "920.250",
"spreading_factor": "11",
"bandwidth": "250",
"coding_rate": "5"
}
]
}
}

@ -0,0 +1,407 @@
{
"format": "offband-radio-presets",
"format_version": 1,
"description": "Offband radio preset overlay. These entries are added to the MeshCore preset list mirrored in meshcore-upstream.json, and win over it when a title matches. Edit this file to add, change or retire a preset; the app picks the change up on its next refresh, with no app release. See SCHEMA.md.",
"presets": [
{
"id": "usa-arizona",
"title": "USA - Arizona",
"region": "USA",
"frequency": 908.205,
"bandwidth": 62.5,
"spreading_factor": 9,
"coding_rate": 8,
"tx_power": 20,
"status": "published",
"notes": "SF9/CR8 per zjs81/meshcore-open#507 (Tucson / Phoenix alignment). Unconfirmed by an Arizona authority; owner decision 2026-10-01."
},
{
"id": "usa-philly-mesh",
"title": "USA - Philly Mesh",
"region": "USA",
"frequency": 919.5,
"bandwidth": 500,
"spreading_factor": 10,
"coding_rate": 5,
"tx_power": 20,
"path_hash_size": 2,
"status": "published",
"notes": "phillymesh.net, 2026-10-01: 919.500 / 500 kHz / SF10 / CR 4/5 / path hash mode 1 (2-byte). Replaces their original 902.25 guidance. TX power not published; 20 dBm matches the US entries."
},
{
"id": "usa-oki-mesh-500khz-test",
"title": "USA - OKI-Mesh 500kHz Test",
"region": "USA",
"frequency": 909.75,
"bandwidth": 500,
"spreading_factor": 10,
"coding_rate": 5,
"tx_power": 20,
"status": "published",
"notes": "docs.okimesh.org 500kHz-testing (test started 2026-09-23). OKI has not settled on a frequency; expect this to change. TX power not published; 20 dBm matches the US entries."
},
{
"id": "russia-artyom-vvo",
"title": "Russia Artyom (VVO)",
"region": "Russia",
"frequency": 864.281,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 6,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-biysk-bsk",
"title": "Russia Biysk (BSK)",
"region": "Russia",
"frequency": 869.0,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 5,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-chelyabinsk-cek",
"title": "Russia Chelyabinsk (CEK)",
"region": "Russia",
"frequency": 868.731,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 6,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-cherepovets-cee",
"title": "Russia Cherepovets (CEE)",
"region": "Russia",
"frequency": 868.57,
"bandwidth": 62.5,
"spreading_factor": 7,
"coding_rate": 8,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-irkutsk-ikt",
"title": "Russia Irkutsk (IKT)",
"region": "Russia",
"frequency": 868.731,
"bandwidth": 62.5,
"spreading_factor": 7,
"coding_rate": 7,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-ivanovo-iwa",
"title": "Russia Ivanovo (IWA)",
"region": "Russia",
"frequency": 868.731,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 8,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-izhevsk-ijk",
"title": "Russia Izhevsk (IJK)",
"region": "Russia",
"frequency": 868.732,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 8,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-kaluga-klf",
"title": "Russia Kaluga (KLF)",
"region": "Russia",
"frequency": 868.731,
"bandwidth": 62.5,
"spreading_factor": 7,
"coding_rate": 7,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-kazan-kzn",
"title": "Russia Kazan (KZN)",
"region": "Russia",
"frequency": 868.731,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 6,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-khabarovsk-khv",
"title": "Russia Khabarovsk (KHV)",
"region": "Russia",
"frequency": 864.281,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 6,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-kirov-kvx",
"title": "Russia Kirov (KVX)",
"region": "Russia",
"frequency": 868.731,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 8,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-lipetsk-lpk",
"title": "Russia Lipetsk (LPK)",
"region": "Russia",
"frequency": 868.95,
"bandwidth": 62.5,
"spreading_factor": 9,
"coding_rate": 7,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-moscow-mow",
"title": "Russia Moscow (MOW)",
"region": "Russia",
"frequency": 868.731,
"bandwidth": 62.5,
"spreading_factor": 7,
"coding_rate": 7,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-nizhny-novgorod-goj",
"title": "Russia Nizhny Novgorod (GOJ)",
"region": "Russia",
"frequency": 868.731,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 6,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-novosibirsk-ovb",
"title": "Russia Novosibirsk (OVB)",
"region": "Russia",
"frequency": 869.0,
"bandwidth": 62.5,
"spreading_factor": 9,
"coding_rate": 8,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-rostov-on-don-rov",
"title": "Russia Rostov-on-Don (ROV)",
"region": "Russia",
"frequency": 868.731,
"bandwidth": 62.5,
"spreading_factor": 9,
"coding_rate": 7,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-ryazan-rzn",
"title": "Russia Ryazan (RZN)",
"region": "Russia",
"frequency": 868.88,
"bandwidth": 62.5,
"spreading_factor": 9,
"coding_rate": 5,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-samara-kuf",
"title": "Russia Samara (KUF)",
"region": "Russia",
"frequency": 864.281,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 7,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-saratov-gsv",
"title": "Russia Saratov (GSV)",
"region": "Russia",
"frequency": 864.281,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 7,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-st-petersburg-led",
"title": "Russia St. Petersburg (LED)",
"region": "Russia",
"frequency": 868.856,
"bandwidth": 62.5,
"spreading_factor": 7,
"coding_rate": 7,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-tambov-tbw",
"title": "Russia Tambov (TBW)",
"region": "Russia",
"frequency": 868.95,
"bandwidth": 62.5,
"spreading_factor": 10,
"coding_rate": 5,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-tula-tya",
"title": "Russia Tula (TYA)",
"region": "Russia",
"frequency": 868.731,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 7,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-tver-kld",
"title": "Russia Tver (KLD)",
"region": "Russia",
"frequency": 869.169,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 8,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-ufa-ufa",
"title": "Russia Ufa (UFA)",
"region": "Russia",
"frequency": 868.732,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 8,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-volgograd-vog",
"title": "Russia Volgograd (VOG)",
"region": "Russia",
"frequency": 869.525,
"bandwidth": 62.5,
"spreading_factor": 7,
"coding_rate": 7,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-voronezh-voz",
"title": "Russia Voronezh (VOZ)",
"region": "Russia",
"frequency": 868.731,
"bandwidth": 62.5,
"spreading_factor": 8,
"coding_rate": 6,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "russia-yekaterinburg-svx",
"title": "Russia Yekaterinburg (SVX)",
"region": "Russia",
"frequency": 869.046,
"bandwidth": 62.5,
"spreading_factor": 7,
"coding_rate": 7,
"tx_power": 20,
"status": "published",
"notes": "Carried over from zjs81/meshcore-open (Russian regional presets, 2026-05-13)."
},
{
"id": "off-grid-433",
"title": "Off-Grid 433",
"region": "Off-Grid",
"frequency": 433.0,
"bandwidth": 250,
"spreading_factor": 11,
"coding_rate": 8,
"tx_power": 20,
"off_grid": true,
"status": "published",
"notes": "Client-repeat frequency, used by the companion's off-grid repeat mode."
},
{
"id": "off-grid-869",
"title": "Off-Grid 869",
"region": "Off-Grid",
"frequency": 869.0,
"bandwidth": 250,
"spreading_factor": 11,
"coding_rate": 8,
"tx_power": 14,
"off_grid": true,
"status": "published",
"notes": "Client-repeat frequency, used by the companion's off-grid repeat mode."
},
{
"id": "off-grid-918",
"title": "Off-Grid 918",
"region": "Off-Grid",
"frequency": 918.0,
"bandwidth": 250,
"spreading_factor": 11,
"coding_rate": 8,
"tx_power": 20,
"off_grid": true,
"status": "published",
"notes": "Client-repeat frequency, used by the companion's off-grid repeat mode."
}
]
}

@ -0,0 +1,15 @@
🧪 **Testing build: Offband Meshcore 1.5.0-beta.1** is on the closed test track.
This is the first beta of the 1.5.0 line. It's a testing build, so treat it as not-yet-stable, and your bug reports are exactly what make the production release solid.
**What's new to poke at:**
🔓 **Experimental section.** A hidden **7-tap on the Build row** in settings unlocks an Experimental area. Turning the section back off clears every experimental toggle.
🛰️ **OKIMesh CoreScope (Experimental).** See how many **OKIMesh CoreScope** observers heard each packet, with an observer/observations badge and tap or long-press to refresh. This is tied specifically to OKIMesh's CoreScope, not a generic backend. **Heads-up:** it needs a **forthcoming Offband firmware** (not available for download yet) and stays inert until you're on it. It's here so it's ready to test the moment that firmware ships.
ℹ️ **About screen.** About now has its own Settings category with links to the website, Play listing, and donate page.
🛠️ **Fixes:** steadier repeater CLI (late replies, timeout budgets), broker import no longer touches the enabled state or leaks a key line, and channel "Send Again" gating.
Not on the test track yet and want in? Ask here. Thanks for testing. 📡

@ -0,0 +1,25 @@
🚀 **Offband Meshcore 1.6.0 is out.** Our biggest update yet, and the stable successor to 1.4.0 on Google Play. Over 100 changes since the beta. The big ones:
👥 **Contacts, reworked.**
- Tap a contact shared on a channel to **Add Contact**, or share your own contact into a channel.
- Add someone by **public key** (type/paste, or key-only before an advert), or by **QR** (show and scan).
- Full **cross-client with stock MeshCore**: contact shares move both ways.
- Each contact shows **how confirmed its identity is**, and you can add/view/block a channel sender right from their avatar.
🧳 **Bring your setup with you.** Stock-compatible **config export/import** and **identity export/import**, so moving between radios (or in and out of stock) just works.
📻 **Radio presets.** A region-grouped **preset picker** labeled by source (credit to Liam Cottle / MeshCore for the upstream presets). Apply a preset's path hash to a companion, observer, repeater, or room server, with region matching that won't mislabel a USA radio as Canada.
🔁 **Sync that heals itself.** Offband now detects a short contact sync and recovers it automatically, tells you the recovered count and which contacts are genuinely gone, and (importantly) **never overwrites your saved contacts** on a short or unreadable sync.
📶 **Bluetooth reliability, big pass.** The composer no longer locks up from an unreported BLE MTU: negotiated MTU is now reported on **Windows, Linux, and web**, and if a link truly can't carry a message it tells you why instead of going dead. Plus bounded GATT-133 retry with readable errors, disconnects that retry-and-warn instead of vanishing, and closed GATT handle leaks.
✉️ **Messaging fixes.** Delivered DMs are no longer marked failed (send correlation now uses the radio's own ACK hash), and late repeater replies go to the log instead of your screen.
➕ Plus an **About screen**, **top-of-screen notifications**, USB serial that doesn't drop bytes, and (experimental) **OKIMesh CoreScope** per-packet observer counts.
**📥 Get it on Google Play:** search **Offband MeshCore**, or https://play.google.com/store/apps/details?id=app.offband.meshcore
💻 **Desktop (Windows / Linux) and Android APK:** https://github.com/OffbandMesh/meshcore-client/releases/tag/v1.6.0
🌐 **Or run it in your browser:** https://offband.app
💚 Thanks as always to the **OKIMesh community** (https://okimesh.org/). Offband is open source and always will be; if you'd like to help keep it going: https://offband.org/donate

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

@ -0,0 +1,40 @@
# Feature #647: outcomes
Written from what happened, including what failed. Plan: [PLAN.md](PLAN.md). All dates 2026-10-01.
## In plain language
Offband's radio presets now come from two files in the config repo: MeshCore's suggested settings (Liam Cottle's list, mirrored daily and credited) and our own overlay, which wins when both name the same preset. Regional entries like Philly Mesh, Arizona and the OKI 500 kHz test are there, grouped by region and labelled by source. Changing a preset is now an edit to `offband.json`, not an app release. The same presets can be applied to Companion and Observer radios, and to Repeaters, Room Servers and Sensors over stock admin commands, including a temporary option that reverts on its own.
The owner tested the combined build on his phone and Windows and approved it.
## What was delivered
| Epic | PR | What |
|---|---|---|
| A (#721) | config-profiles#3, merged | `radio-presets/offband.json` (33 presets), `meshcore-upstream.json` (mirror with credit), validator, workflow (validate on change, mirror daily) |
| B (#726) | #744 | Preset model and parsers, bundled copies, refresh with last-good cache, merge (ours over Liam's), grouped picker with source labels, Companion/Observer apply incl. path hash (cmd 61), About credit, #747 (USA radio shown as Canada) |
| C (#733) | #746 | Picker on remote settings, `set radio`, `tempradio` (sent last, 1 to 35791 minutes, default 1440), `set path.hash.mode`, Sensor admin entry (#745) |
| D (#737) | this PR | D1 owner test (#738), this document (#739), plan amendment, #748 tests |
## Evidence
- **Owner D1 (#738):** approved. In his words, in substance: it matches what he expected; he sees Philly, USA and the MeshCore entries; it is clean and reads well; the source labels are understandable; grouping by region is an improvement. His notes cover the preset picker; the per-node-type checklist items were not itemized in his reply.
- **Build tested:** local `throwaway/647-combined` @ `e1d30482`, containing #744 `04025cb0` and #746 `9c17f8a5`, release-signed, installed on the S25 FE and Windows.
- **Automated, same build:** analyze clean, 1087 tests pass, live preset test passes against config-profiles `main`.
- **CI:** every check green on #744 and #746 at those heads.
- **Config repo:** both files return HTTP 200 on `main`; validate passed on the merge push; the dispatched mirror ran end to end (no commit, Liam's list unchanged).
- **Acceptance bar (PLAN §6):** tests cover coding rates, path hash bytes to mode, `tempradio` ordering and its cap, and an overlay edit reaching the app with no release.
## What went wrong
- **The plan had a gap.** D1 checked preset refresh, but Epic A's merge was a stop at the end of the chain, so the files 404'd on `main` and that check could not pass. The owner was handed builds showing "Couldn't update presets. Showing the saved list." twice, and a third untestable handoff. Fixed by merging Epic A before D1 (PLAN §10).
- **No test touched the real dependency.** Every preset test faked the network, so the 404 passed all tests and CI. Fixed by #748: a live test in the default suite, so CI now fails if the files go missing.
- **A test build was installed mid-chain** on the owner's phone and Windows, replacing his working build. Both were restored to his earlier build until the chain was done. Canon now says an install is testing and happens once, at the end.
- **ADB diagnosis** blamed his phone before reading adb's own log; the real cause was a wedged USB link (`write terminated: Input/output error`), cleared by reconnecting.
## What's left
- Merge #744, then #746, then this PR, in that order (plan grant, budget 3).
- Owner sign-off on Epic verifications (#725 for A) and Epic closure.
- Remove the `throwaway/647-combined` worktree after merge.

@ -0,0 +1,168 @@
# Feature PLAN: MESH 500 regional preset system
| | |
|---|---|
| **Feature** | [#647](https://github.com/OffbandMesh/meshcore-client/issues/647) · Citadel `meshcore-open-mli` |
| **Serves** | No parent Initiative; a standalone Feature. |
| **Status** | Draft. Approved when this PR merges. |
| **Owner** | @Strycher |
| **Last updated** | 2026-10-01 |
## At a glance
- **What:** one radio preset list in the app, with regional defaults plus local meshes (Arizona, SoCal, OKI, Philly). Pick a preset and apply it to a Companion, Observer, Repeater, Room Server or Sensor.
- **Why now:** our presets are a hardcoded list that can only change with an app release, it has no 500 kHz option, and several of its values are wrong. Regions change their settings: Philly has moved frequency, and OKI's isn't settled.
- **How:** four Epics, in order:
- A: preset files in `config-profiles`;
- B: the catalog and picker in the app, applied to Companion and Observer;
- C: applying presets to remote nodes;
- D: integration testing.
- **Done when:**
- Editing a preset in `config-profiles` reaches users on their next refresh, with no app release (within about five minutes, GitHub's cache).
- Every node type can apply a preset using stock firmware commands only.
## 1. Diagnosis
Verified 2026-09-23 to 2026-10-01. Full write-ups are on #647 and #722.
| # | Finding | Evidence | Effect |
|---|---|---|---|
| 1 | Presets are a hardcoded Dart list with no update path | `lib/models/radio_settings.dart:63` (46 entries) | Any preset change needs an app release |
| 2 | Our coding rates are wrong for several regions | zjs81#72 dropped the CR column and set all to CR 5; Liam's registry (archived Oct 2025 by openhop, live today) has EU/UK Narrow CR8, Switzerland CR8, Portugal 433 CR6, Australia Narrow CR7 | Users picking those presets get the wrong CR |
| 3 | No preset can carry path hash | `RadioSettings` has no field (`radio_settings.dart:47-52`); Liam's list publishes it in bytes on 8 entries | Presets that need path hash leave it unset |
| 4 | Liam's list is the de facto community source | Stock app (`app.meshcore.nz`) fetches `api.meshcore.nz/api/v1/config` and bundles nothing; official map and config tools use it; CORS is open | It's the base we build on, with credit |
| 5 | Liam's list lacks entries our users need | Live list: 26 entries, none at 500 kHz, no Philly, OKI, Arizona or Russia | We need our own overlay |
| 6 | Stock firmware has no preset list | `meshcore-dev/MeshCore` `e9412598`: only one build default (869.618 / 62.5 / SF8) | Presets are a client concern; no firmware work needed |
| 7 | Every apply path exists in stock firmware | Companion cmd 11 + cmd 61; CLI `set radio`, `tempradio`, `set path.hash.mode` (upstream `CommonCLI.cpp`) | No Offband-specific codes |
| 8 | Path hash is published in bytes; firmware takes a zero-based mode | `sendFlood(..., path_hash_mode + 1)`; 2 bytes = mode 1 | A straight copy of the number puts the node off the mesh |
| 9 | `tempradio` retunes 2 s after replying; its timer overflows past ~35,791 minutes | `simple_repeater/MyMesh.cpp:1026-1034` | Must be sent last in a save, and the duration capped |
| 10 | The app has no admin path for Sensors | A Sensor contact only opens a chat (`contacts_screen.dart:981-987`); stock sensor firmware does run the shared CLI (`SensorMesh.cpp:450`) | Sensor apply needs an admin entry point |
| 11 | Room Servers already share the repeater admin screens | `contacts_screen.dart:1063` opens `RepeaterHubScreen` for room management | Repeater work covers Room Servers |
## 2. Scope
**In:**
- An Offband overlay preset file and a CI mirror of Liam's list in `OffbandMesh/config-profiles` (owner decision on #650 and #722).
- In the app: bundled snapshots of both, refresh, merge (ours over Liam's), last-good cache, a grouped picker with source labels, and credits.
- Applying presets to Companion, Observer, Repeater, Room Server and Sensor through stock commands only.
- A Temporary (`tempradio`) option for remote nodes (#662).
**Out:**
- Firmware changes.
- Changing any non-US preset beyond matching Liam's published values.
- Regulatory or legal advice.
## 3. Epics
Each Epic ends with a verification task and gets one PR. Issue numbers are already filed on board #2.
### Epic A: preset sources in config-profiles (#721)
Code lands in `OffbandMesh/config-profiles`.
| Task | Pts |
|---|---|
| **A1 · Overlay file + schema (#722):** OKI test, Philly (current values not yet known; to be found from a Philly Mesh source, or the chain stops), Arizona SF9/CR8, Russia, Off-Grid. Schema documents add, change and retire. Checked by a validation script. | 3 |
| **A2 · CI mirror of Liam's list (#723):** scheduled job. It runs A1's validation script on the fetched data **before** committing; if validation fails, the run fails and nothing is committed. Commits directly only on change. Checked by a manual run, a no-change rerun, and a simulated bad response. | 3 |
| **A3 · README credit (#724):** Liam Cottle / MeshCore, and the precedence rules. | 1 |
| **A4 · Epic verification (#725)** | 1 |
### Epic B: in-app catalog and picker, Companion and Observer (#726)
| Task | Pts |
|---|---|
| **B1 · Preset model (#727):** replaces the hardcoded list. Unit tests. | 3 |
| **B1b · Path hash field and bytes-to-mode conversion (#649):** tested conversion. | 2 |
| **B2 · Bundled snapshots, refresh, merge, last-good cache (#728, closes #648):** tests for offline, refresh, failure fallback, precedence, an edit with no release, and malformed entries. | 4 |
| **B3 · Grouped picker with source labels (#729):** widget test; preset match on load still works. | 3 |
| **B4 · Apply to Companion and Observer (#730):** cmd 11, TX power, cmd 61; client repeat preserved. Tests. | 3 |
| **B5 · Credits on About (#731)** | 1 |
| **B6 · Epic verification (#732)** | 1 |
### Epic C: apply to remote nodes (#733)
| Task | Pts |
|---|---|
| **C1 · Picker on the remote-node settings screen (#734):** Repeater and Room Server share it. | 3 |
| **C2 · Temporary checkbox (#662):** `tempradio`, sent last, duration capped. Tests. | 3 |
| **C3 · Path hash via `set path.hash.mode` (#735):** tests. | 2 |
| **C5 · Sensor admin entry point (new issue at merge):** log in to a Sensor and reach the same settings screen (owner choice 1: in scope). | 3 |
| **C4 · Epic verification (#736)** | 1 |
### Epic D: integration testing (#737)
| Task | Pts |
|---|---|
| **D1 · End-to-end on every node type (#738):** owner hardware. | 3 |
| **D2 · OUTCOMES.md (#739)** | 1 |
## 4. Order and dependencies
- A, B, C, D in that order. Each Epic's verification task blocks the next Epic (wired in Citadel).
- B needs A's file format. C reuses B's catalog and conversion. D needs all three.
- Within B: B1, B1b, B2, B3 and B4 all touch `radio_settings.dart` and `settings_screen.dart`, so they run in sequence.
- Within C: C1, C2, C3 and C5 all touch `repeater_settings_screen.dart` (C5 also `contacts_screen.dart`), so they run in sequence.
- Because merges wait until the end, C's branch is stacked on B's, and D's on C's. A fix found in B during D's hardware testing gets rebased up through C.
## 5. Grants and authorization
| Term | Proposed | Why |
|---|---|---|
| **What merging this plan authorizes** | Running Epics B, C and D in order without stopping between them: code, tests, builds, and one PR per Epic as it finishes. | The owner asked for the chain to run unattended unless a decision or fault needs him. |
| **Merges** | Deferred to the end of the chain, in order B, C, D, after the owner's hardware review in D. | Owner direction: merges come at the end. |
| **Epic verification** | Owner mode. My verification task (analyze, full test suite, format, em-dash check, Windows and APK builds) closes each Epic and lets the chain continue. The owner's approval of each PR happens at the end, before merge. | Hardware testing is the owner's gate; consolidating it at D avoids pausing the chain. |
| **Owner steps during the run** | None, unless a stop below fires. At the end: hardware review (D1), then approve the PRs. | |
| **Stops** | A new decision; a fault I can't fix; Philly's current values if no public source; Epic A's PR, because it's in `config-profiles` and outside this grant (needs a separate `dw-approve merge`). | Grants cover this repo only. |
| **Flash** | None. | No firmware is flashed. |
```grant-terms
{
"epic_chain": [726, 733, 737],
"chain": true,
"verification": { "mode": "owner" },
"merge": { "budget": 3, "basis": "One PR per Epic in this repo: B (#726), C (#733), D (#737, OUTCOMES.md). Epic A merges in config-profiles, outside this grant." },
"flash": null,
"reset": null,
"expires_after_hours": 168
}
```
`expires_after_hours` basis: A plus B plus C is roughly four to five working sessions of build time, plus the owner's end-of-chain hardware review. 168 hours (the maximum) leaves room for his day job.
## 6. Verification
- **Named command (this repo):** `flutter analyze` with CI flags, `dart format --set-exit-if-changed`, the em-dash check, and `flutter test` (full suite). Every Epic PR shows the output.
- **Named command (config-profiles):** the A1 validation script over both files, plus one mirror job run.
- **Acceptance bar:** each finding in section 1 has a test that would have caught it. Most important: wrong CR values, path hash bytes-to-mode, `tempradio` ordering and cap, and an overlay edit reaching the app with no release.
## 7. Done when
- The picker shows Liam's presets plus ours, grouped, with sources and credits, and works offline.
- An overlay edit in `config-profiles` reaches the app on its next refresh with no new build, within about five minutes (GitHub's raw-file cache, #452).
- Companion, Observer, Repeater, Room Server and Sensor can each apply a preset with stock commands, including path hash and the Temporary option.
- The owner signs off D1, and `OUTCOMES.md` is approved.
## 8. Your choices
| # | Question | Option A | Option B | Rec. | Your choice |
|---|---|---|---|---|---|
| 1 | Sensors have no admin path in the app today | Add one (C5): log in, reuse the repeater settings screen | Drop Sensor from this Feature and file it separately | ⭐ A | **A**: add the Sensor admin path (2026-10-01) |
| 2 | When does your hardware testing happen? | Once, at Epic D, before any merge; the chain runs straight through. Risk: a hardware fault in B is found only after C is built on it, so the rework is bigger. | After each Epic, before the next starts. Catches faults earlier, but the chain pauses for you each time. | ⭐ A (your stated direction) | **A**: at the end; the chain does not stop between Epics (2026-10-01) |
## 9. Carried-in work
| Item | Goes to |
|---|---|
| #648 (hardcoded list, no update path) | B2 |
| #649 (preset path hash) | B1b |
| #662 (Temporary checkbox) | C2 |
| #661 (OKI stopgap, closed) | A1 |
| #650 (source decision, closed) | Decisions recorded; this plan implements them |
| Sensor admin path (finding 10) | C5, new issue when this plan merges |
## 10. Amendments
| Date | Change | Why |
|---|---|---|
| 2026-10-01 | Epic A (config-profiles#3) merged **before** D1, not at the end. The owner minted its grant separately. App PRs still merge after D1. | Gap in this plan: D1 checks preset refresh, which can't pass until the files are on config-profiles `main`. Stopping for A only at the end made D1 untestable. |
| 2026-10-01 | Added #748: a live test that refreshes from the real config-profiles URLs in CI, plus tests that each preset error message is absent under ideal conditions. | Owner requirement after "Couldn't update presets" reached him on two test builds. No build goes to him while that error still appears under ideal conditions. |

@ -0,0 +1,220 @@
# PLAN: contact naming, and what a name does not prove
| | |
|---|---|
| **Covers** | [#750](https://github.com/OffbandMesh/meshcore-client/issues/750) Epic · Citadel `meshcore-open-b5l` · [#751](https://github.com/OffbandMesh/meshcore-client/issues/751) docs · Citadel `meshcore-open-le5` |
| **Serves** | Feature [#609](https://github.com/OffbandMesh/meshcore-client/issues/609) Contacts. #609 has **no** plan of record; this plan covers the naming slice only and does not retroactively cover its delivered epics (#610, #611, #619). |
| **Status** | Draft. Approved when this PR merges. |
| **Owner** | @Strycher |
| **Agent** | HazyCove (session db2d6bf0) |
| **Last updated** | 2026-10-01 |
## At a glance
When this is done you can give any contact a name of your own, the way stock MeshCore's CUSTOM NAME field works, and it sticks. Adverts keep correcting what the node calls itself underneath, so accuracy improves without your label ever moving. Where the two differ, you can see both.
And the thing a client cannot fix is written down plainly instead of implied: a display name on the mesh is not unique, not owned, and not proof of who you are talking to. The key is the identity. The docs, the release notes and one short line in the app say so, and say what to check instead.
## 1. Diagnosis
| # | Finding | Evidence | Effect |
|---|---|---|---|
| 1 | Offband cannot rename a contact at all | No name field in `contact_settings_dialog.dart`; no contact edit screen; `git log -S renameContact -- lib/` returns nothing | Stock-parity gap. Stock has CUSTOM NAME per node |
| 2 | Firmware cannot hold a per-contact custom name | `ContactInfo.h:10` is a single `char name[32]`. `IdentityStore`'s `display_name` is the **device's own** name, not a per-contact override. No custom-name concept anywhere in firmware | A custom name is necessarily client-side, matching the owner's read that stock keeps the original underneath |
| 3 | An inbound advert overwrites the stored name | `meshcore_connector.dart:9122` → `name: hasName ? name : existing.name` | Accuracy is good, but the client can never hold a name the user chose; the next advert takes it back |
| 4 | An advertised name **is** cryptographically bound to the key | Firmware signs `pub_key‖timestamp‖app_data` and rejects a forged signature outright: `meshcore-firmware/src/Mesh.cpp:279-287` | Only the private-key holder can advertise a name for that key |
| 5 | A contact-card name is bound to **nothing** | `<key:type:name>` is plain unsigned channel text (#610) | Anyone can pair any name with any key they do not own. This is #645 |
| 6 | Display names are not unique and cannot be made so | No registry exists. Setting your own radio's name to another operator's name produces correctly signed, legitimate traffic | Unpreventable. A property to document, not a defect to fix. See §6 |
| 7 | Renames do not propagate | Adverts are not immediate and may never come (owner, 2026-10-01) | Everyone else keeps a stale name indefinitely, with no way to correct it locally |
| 8 | The name surface is read-heavy and write-light | **85** display reads of a contact name in `lib/`; **11** `Contact(...)` constructions passing `name:`; **6** `copyWith(... name: ...)`; **5** `buildUpdateContactPathFrame` call sites | Decides the architecture, §2. A loose grep suggested 114 constructions; the measured figure is 11, and planning on 114 would have mis-sized this epic |
| 9 | Per-contact settings already have a home | `contact_settings_store.dart` keys by pubkey hex (`contact_cyr2lat_<keyHex>`) | New prefix, proven pattern, no new storage design |
| 10 | The unverified state is already rendered | #630's badge separates `advertVerified` from `keyOnly` (`contact_verification_badge.dart:50-57`) | This epic gives that badge real data instead of inferring from `lastSeen` |
| 11 | `resolveContactsByName` already exists | `meshcore_connector.dart:1228`, built for #468; returns every identity behind a claimed name and never picks a winner | Reusable for #645's collision check, with a cost constraint. See §5 |
## 2. Architecture
The decision is driven by finding 8: **85 reads, 22 writes.** Protect the many, make the few explicit.
### Decisions
| Decision | Why |
|---|---|
| `Contact.name` becomes a **getter**: `customName ?? receivedName` | All 85 display reads stay correct and untouched. A future read site cannot forget, because reading `.name` is already right |
| The received name is called **`receivedName`**, not `advertName` | Writing the test matrix caught this. A contact-card name is **not** advertised (finding 5), so calling the field `advertName` would make it lie for every card-added contact, and #645's honest signal would be built on a false premise |
| "Is this name key-bound?" is answered by the **existing** `isAdvertVerified` | `contact.dart:270` already derives it from `lastSeen`, and #630 already renders it. No third field, no new concept, and the provenance question stays in one place |
| The constructor and `copyWith` take **`receivedName`**, not `name` | Renaming the write parameter turns all 11 constructions and 6 `copyWith` calls into **compile errors**. The compiler enumerates them; nothing is missed silently |
| `customName` lives on `Contact` and persists in `contact_settings_store` | Survives `copyWith`, so no re-application is needed at the four radio-sync points (6672, 6690, 6780, 6791) |
| An empty or whitespace-only custom name counts as **unset** | Otherwise a user who clears the field by deleting its text gets a blank display name with no way back |
| The **radio always receives `receivedName`** | The radio's contact table is the shared record of what a node calls itself. The client holds the user's label. §3 Task 2 covers this, because it is the one hole the compiler cannot see |
| The custom name is **never** sent to the radio | Finding 2: there is nowhere to put it, and writing it would corrupt the shared record |
### Alternatives considered but not chosen
- **Add `displayName` and migrate the 85 read sites.** Rejected: the failure mode is silent and permanent. A missed site, or any future site that reaches for `.name`, shows the advertised name instead of the user's and nothing complains.
- **Resolve the custom name at render time from a connector map, leaving `Contact` untouched.** Rejected: it still needs all 85 reads to call the resolver, so it has the silent-failure problem plus a second lookup path.
- **Store the custom name on the radio.** Not possible, finding 2.
### The one hole, named
The 5 `buildUpdateContactPathFrame` call sites read `.name` today. Under the chosen design `.name` still compiles there, so the compiler will **not** flag them, and a miss would write the user's private label into the radio's contact table. They are: `meshcore_connector.dart` 4048, 4114, 4531, 4562, and `stock_config_import_service.dart:303`. Task 2 changes all five and adds a test that fails if a frame is built with a custom name, so the hole is closed by a test rather than by care.
## 3. Epic #750: tasks
| Task | What | Pts |
|---|---|---|
| **750.1 · Model and storage** | `receivedName` (required) + `customName` (nullable) on `Contact`; `name` becomes the getter; constructor and `copyWith` renamed; `contact_store` migration reads a legacy `name` into `receivedName`; `contact_settings_store` persists `customName` by pubkey hex. Tests T1 to T9 and T31 | 4 |
| **750.2 · Radio boundary** | All 5 `buildUpdateContactPathFrame` sites send `receivedName`. Tests T10 to T14, including the source guard | 3 |
| **750.3 · Advert path** | `meshcore_connector.dart:9122` writes `receivedName` always; the display name follows from the getter with no extra branch. Tests T15 to T22 | 3 |
| **750.4 · Contacts UI** | Set, edit and clear a custom name from the contacts screen; show the received name wherever it differs, so the user can see what the node calls itself. New l10n strings in `app_en.arb`. Tests T23 to T30 | 3 |
| **750.5 · Epic verification** | Owner, on hardware, Windows and Android. §7 | 1 |
**Not in this epic:** #645's collision warning and the verify-the-key advisory. #645 is already blocked-by #750 and lands after, because the check must match the display name and the advisory should reference real advertised-name data.
## 4. Automated tests
Every behaviour below gets a **positive** test (it does the right thing) and a **negative** test (it does not do the wrong thing). The negatives are the ones that catch a future regression, because a positive test keeps passing while a new code path quietly breaks the guarantee next to it. Nothing in this epic is done on positives alone.
All of these run in CI through the existing `analyze` job (`flutter test`), so a regression fails the build rather than waiting for someone to notice.
### 750.1 Model and storage · `test/models/contact_naming_test.dart`, `test/storage/contact_settings_store_test.dart`
| # | +/- | Test |
|---|---|---|
| T1 | **+** | `name` returns `customName` when one is set |
| T2 | **-** | `name` returns `receivedName` when `customName` is null, and the custom name does not leak in |
| T3 | **-** | An empty-string `customName` is treated as unset, so `name` falls back rather than returning `""` |
| T4 | **-** | A whitespace-only `customName` is treated as unset, same reason |
| T5 | **+** | `copyWith(receivedName:)` changes the received name and leaves `customName` intact |
| T6 | **-** | `copyWith(receivedName:)` does not change what `name` returns while a custom name is set |
| T7 | **+** | A legacy stored contact with only a `name` key migrates into `receivedName` |
| T8 | **-** | That migration leaves `customName` **null**. If it populated it, every existing contact would silently become "renamed" and adverts would stop updating any of them |
| T9 | **+/-** | Custom name round-trips through `contact_settings_store`; clearing removes it; a load for an unknown pubkey returns **null**, not `""`, and does not throw |
### 750.2 Radio boundary · `test/connector/contact_frame_naming_test.dart`
| # | +/- | Test |
|---|---|---|
| T10 | **+** | With a custom name set, `buildUpdateContactPathFrame` carries the **received** name |
| T11 | **-** | The built frame bytes do not contain the custom name anywhere. This is the test that stops a private label reaching the shared contact table |
| T12 | **+** | With no custom name, the frame is byte-identical to today's, so this change is behaviour-neutral for every existing path |
| T13 | **+** | `addContactByKey` on a card stub still sends the card's name, since a stub's received name is the card name |
| T14 | **-** | **Source guard:** exactly 5 `buildUpdateContactPathFrame` call sites exist and none passes `.name`. The test reads the source and fails if a sixth appears or an existing one regresses. The compiler cannot see this hole (§2), so a test holds it |
### 750.3 Advert path · `test/connector/advert_name_update_test.dart`
| # | +/- | Test |
|---|---|---|
| T15 | **+** | An advert carrying a name updates `receivedName` |
| T16 | **-** | That same advert does not change what `name` returns while a custom name is set. This is the whole point of the epic |
| T17 | **+** | Clearing the custom name afterwards reveals the newly advertised name, not the stale one |
| T18 | **-** | An advert with no name (`hasName` false) does not null or clobber `receivedName` |
| T19 | **-** | An advert does not write, alter or clear `customName` by any path |
| T20 | **+** | A card-added contact with no advert yet reports `isAdvertVerified == false` and displays the card's name |
| T21 | **-** | That contact is not reported verified, so #630's badge cannot show green on an unsigned name |
| T22 | **+** | A node renamed on its own radio whose advert never arrived still displays the user's custom name, and the stale received name remains available to show beside it |
### 750.4 Contacts UI · `test/screens/contact_rename_test.dart`
| # | +/- | Test |
|---|---|---|
| T23 | **+** | Setting a custom name updates the contact tile |
| T24 | **+** | Clearing it restores the received name in the tile |
| T25 | **+** | Where the two differ, both are visible, so the user can see what the node calls itself |
| T26 | **-** | Where they are the same, the received name is not shown twice |
| T27 | **+/-** | Error surfacing, per the owner's standing requirement: the over-length message appears when the field exceeds the UI maximum, and is **absent** when the input is valid |
| T28 | **-** | A custom name containing CJK, emoji or a ZWJ sequence is stored and displayed intact. It never crosses the wire, so #636's grapheme truncation must not be applied to it |
| T29 | **-** | Saving the dialog with an **empty** field writes `null` to the store, not `""`. Without this the display looks right (T3 makes the getter fall back) while the stored data is wrong, and the dialog can never truly unset a name through its primary save action |
| T30 | **-** | Saving the dialog with a **whitespace-only** field does the same |
T29 and T30 come from the pre-PR adversarial review. T3 and T4 prove the *getter* tolerates an empty custom name; nothing proved the *UI* never writes one, and a clear button passing (T24) would have masked a broken save path.
### 750.1 addendum: the fallback the rename could drop
| # | +/- | Test |
|---|---|---|
| T31 | **-** | A legacy stored contact whose `name` key is **missing or null** migrates to `receivedName == 'Unknown'`, preserving the existing fallback at `contact_store.dart:145` (`json['name'] as String? ?? 'Unknown'`) |
The review raised this as a crash risk. That premise is wrong: the fallback already exists and predates this epic, so there is no crash and no data-loss path. The real risk is narrower and worth a test anyway. Moving the deserializer from `name:` to `receivedName:` is exactly the kind of edit that drops a trailing `?? 'Unknown'` without anyone noticing, and the result would be a crash on load for any user holding such a row. T31 pins it.
### Regression guarantee
T8, T11, T14, T16, T19, T21, T29, T30 and T31 exist purely to fail if someone later breaks a guarantee this epic makes. They assert **absence**, which is what a regression actually looks like. T14 is the only source-reading test, and it is deliberate: it guards the one hole the type system cannot see.
## 5. `resolveContactsByName`, and its cost
It matches on `c.name`. Under the chosen design that keeps meaning **what the user reads**, which is the string any deception operates on, so #645's collision check needs **no resolver change**. Under the rejected `displayName` design it would have silently matched the advertised name instead. That is a second reason the chosen design wins.
**[hypothesis: cost model read from the code, not measured. 750.1 measures it before 750.4 ships.]**
It spreads `contacts` + `discoveredContacts` (both getters allocate a fresh list) and calls `trim().toLowerCase()` per element, allocating a string each. At the owner's reported scale of roughly 350 contacts (#188) plus discovered nodes, that is on the order of 700 allocations per call.
| Call site | Frequency | Verdict |
|---|---|---|
| A dialog, on open | Once per user action | Fine. Sub-millisecond, invisible |
| Any list-rendered widget via `context.select` | Re-runs on **every** `notifyListeners()`; the connector notifies on every received packet | Not acceptable. 700 allocations × visible widgets × notifications per second |
So any name-collision check belongs in a **dialog**, never in a tile or chip. `add_contact_by_key_dialog.dart:132` already holds the connector, so this needs no connector change and stays clear of the contact-sync work in P0 #660 / #668. A list-level signal would need a maintained `Map<String, Set<String>>` index keyed by lowercased display name, not a per-build scan; out of scope here, to be filed when a design calls for it.
## 6. #751: documenting what cannot be fixed
Finding 6 is permanent. The client's obligation is to stop presenting a name as an identity and to make the key reachable at the moment of decision. It is not to prevent collisions, which it cannot.
Owner, 2026-10-01: *"Without an official registry enforcing globally unique display names, this is an unpreventable consequence."*
| Surface | Content |
|---|---|
| `CHANGELOG.md` | Short entry, user-facing voice, under the release that ships it |
| Release notes | The same text, so it reaches people who never open the repo |
| Docs site (`OffbandMesh/offband-site`) | The full explanation: why names are not unique, what a signature does and does not prove, how to confirm a key out of band once, what the #630 badge states mean |
| In-app | One short advisory at the point a contact is added, as an l10n string. Placement rides with 750.4, since the honest wording references the advertised name |
**Wording constraints, binding:**
- Do **not** call this an attack or a vulnerability. It is how a registry-free mesh behaves. Overstating it is the same dishonesty as hiding it, and reads as alarmism to operators who already know.
- Do **not** imply Offband is weaker than stock. Stock has no name-key binding either; the verification badge is something Offband adds.
- Lead with what the user should **do**, which is confirm a key out of band with the person once, not with what could go wrong.
- No em-dashes.
- The docs-site page is public, so the draft is reviewed before it is published.
## 7. Verification
**750.5, owner, on hardware, Windows and Android:**
1. Rename a contact. The new name shows everywhere that contact appears.
2. Let that contact advert. The name does **not** change back.
3. Clear the custom name. The advertised name returns.
4. Add a contact from a card, with no advert yet. It reads unverified, and shows the card's name.
5. Let that contact advert. It becomes verified, and the advertised name is now visible as distinct from any custom name set.
6. A contact renamed on its own radio, whose advert has not reached you, still shows your name, and shows the stale advertised name where the two differ.
**Automated, in CI:** the full T1 to T31 matrix in §4, positives and negatives, including the radio-boundary source guard T14.
**#751:** the owner reads the docs-site draft before it is published. The in-app string is checked in 750.5 step 4.
## 8. What the owner has to do
One step, at the end: run the Windows build and the Android build and walk §7. Everything else, including the T1 to T31 matrix and the measurement in §5, is run by the session and brought to him as evidence.
## 9. Risks
| Risk | Handling |
|---|---|
| A custom name reaches the radio and corrupts the shared record | §2 "the one hole". Five named sites, changed in 750.2, closed by a test, not by care |
| `meshcore_connector.dart` is OrangeDog's file for P0 #660 / #668 | 750.1 and 750.3 touch it. Announce on Agent Mail before starting, and carry the rebase rather than asking anyone to work around it |
| A `contact_store` migration loses names | Nullable, additive migration: a legacy `name` is read into `receivedName`, `customName` starts null. T7 and T8 cover both halves, and T8 is the negative that catches the worse failure: a migration that populated `customName` would silently mark every existing contact as renamed and stop adverts updating any of them. Data safety is not optional |
| The docs wording overstates the risk | §6 constraints, and the owner reviews the public draft |
```grant-terms
{
"epic_chain": [750],
"chain": true,
"verification": { "mode": "owner" },
"merge": { "budget": 2, "basis": "One PR for Epic #750 (tasks 750.1-750.5, one branch, merged after owner verification), and one PR for the #751 documentation. The docs-site page merges in OffbandMesh/offband-site, outside this grant." },
"flash": null,
"reset": null,
"expires_after_hours": 168
}
```
---
*Agent: HazyCove (session db2d6bf0).*

@ -0,0 +1,197 @@
# Feature PLAN: fake radio for automated testing in CI
| | |
|---|---|
| **Feature** | [#755](https://github.com/OffbandMesh/meshcore-client/issues/755) · Citadel `meshcore-open-6o3` |
| **Serves** | No parent Initiative; a standalone Feature. Absorbs #601 from Epic #598. Depends on OffbandMesh/meshcore-firmware#1318. |
| **Status** | Draft. Approved when this PR merges. |
| **Owner** | @Strycher |
| **Last updated** | 2026-10-02 |
## At a glance
- **What:** a software MeshCore companion radio, written in Dart, that the real client connects to with no hardware. It plays either **stock MeshCore** or **Offband** firmware, answers the same frames a real radio does from a seeded, deterministic state, and can play scripted faults.
- **Why now:** no test can take the client through a real connect, sync, send or settings change. Everything past "connected" is tested by the owner, by hand, on hardware. The #647 remote preset commands shipped with no on-air test for exactly this reason.
- **How it stays in sync:** the firmware publishes a machine-readable protocol manifest at every tag and merge (firmware#1318). The fake radio's profiles load it, and client CI fails when the client disagrees with it. Captured traces from a real Offband radio and a real stock radio check behavior.
- **How:** four Epics, in order:
- A: the fake radio core, both profiles, the manifest check, in-process and over TCP;
- B: messaging, radio settings, remote nodes, faults, and trace replay;
- C: test suites that run in CI under both profiles, plus a runner for manual use;
- D: integration testing, including capturing the real-radio traces.
- **Done when:**
- Every PR's CI runs connect, sync, messaging and preset flows (including on a repeater, room server and sensor) against the fake radio, under both the stock and Offband profiles, with no hardware.
- Client CI fails when the client's protocol constants disagree with the firmware's published manifest.
- The owner can start the fake radio on his PC and connect the Windows app to it over TCP.
## 1. Diagnosis
Verified 2026-10-02 against `dev` @ `0fc407d4` and firmware `53951759`.
| # | Finding | Evidence | Effect |
|---|---|---|---|
| 1 | Nothing past "connected" can be tested without a radio | `scanner_screen.dart:66` routes to the channel UI only on `connected`; #598 diagnosis | Connect, sync and messaging regressions reach users before anyone sees them |
| 2 | No test drives the protocol end to end | The only TCP tests are the transport (`tcp_transport_service_native_test.dart`, raw sockets) and `tcp_flow_test.dart`, which stubs `connectTcp` out entirely | The connector's handshake, sync and send logic (9,368 lines in `meshcore_connector.dart`) has no end-to-end test |
| 3 | The fake radio was planned, never built | #601 has no branch, comments or code | Nothing to build on but a plan |
| 4 | The connector already has an in-process seam | `handleFrameForTest` and `sendFrameOverrideForTest` (`meshcore_connector.dart:3112-3117`) | A fake radio can plug in with no sockets, so widget tests stay fast and deterministic |
| 5 | The TCP path needs no app changes, but uses serial framing | `connectTcp` (`meshcore_connector.dart:2295`); the transport wraps frames with `wrapUsbSerialTxFrame` (start `0x3c`) and decodes with `UsbSerialFrameDecoder` (start `0x3e`) (`tcp_transport_service_native.dart:11,92`) | The fake's TCP server must speak that framing |
| 6 | The handshake is a known, finite set | On connect the client sends `DEVICE_QUERY`, `APP_START`, `GET_CUSTOM_VARS`, battery, `GET_AUTO_ADD_CONFIG`, then contacts, channels and message sync (`meshcore_connector.dart:3592-3600`, `3712`); 53 frame builders, 34 response and push codes handled | The core can be built against a fixed list |
| 7 | Stock and Offband differ in what the radio reports | The client gates every Offband feature on the reported capability bytes (`_offbandCaps`, `_offbandCaps2`, `meshcore_connector.dart:370`) and the version code; the bits are defined in `OffbandConfigProtocol.h:275-299`; stock firmware reports none | A fake radio can play either by changing what it reports and which Offband commands it answers |
| 8 | The firmware publishes no machine-readable contract | The caps and `FIRMWARE_VER_CODE` registry is a prose comment table (firmware#514) | Today any copy of the protocol drifts silently; firmware#1318 fixes this at the source |
| 9 | Firmware version reporting is inconsistent | firmware#873 (`ver` vs `version` disagree), #958, #1277, #1311 | A test of the reported version catches this; firmware#1318 adds the firmware-side check |
| 10 | The firmware is the reference for every reply | `examples/companion_radio/MyMesh.cpp`, `handleCmdFrame` at line 1964; remote CLI in the shared `CommonCLI` | Each fake reply is copied from a named firmware function, not guessed |
| 11 | Remote-node presets are untested on air | #738 addendum: owner reviewed the screen, never applied a preset to a real node | The fake radio covers `set radio`, `tempradio` and `set path.hash.mode` in CI |
| 12 | No radio is on stock firmware today | Owner, 2026-10-02: one can be flashed | The stock trace capture needs one radio flashed to stock (section 5, Flash) |
| 13 | #598 scoped its bench out of CI | #598 body, owner 2026-08-24 | Reversed for the fake radio only (owner, 2026-10-02, logged on #598) |
## 2. Scope
**In:**
- A fake companion radio in Dart: frame codec, command dispatch, seeded state, deterministic clock.
- Two firmware profiles, stock and Offband, built from the firmware's published protocol manifests.
- A client CI check that the client's protocol constants match the manifest.
- Two ways to connect: in-process (through the connector's test seam) and a TCP loopback server.
- Messaging, acks, incoming messages, channels, radio settings, and repeater, room server and sensor admin (login and CLI) over the mesh.
- Scripted faults: dropped acks, error replies, disconnect mid-sync, slow replies.
- Trace replay: frames recorded from a real Offband radio and a real stock radio, which the fake must reproduce.
- Test suites in the default `flutter test`, so CI runs them on every PR.
- A standalone runner (`dart run tool/fake_radio.dart`) so the desktop app can connect over TCP.
**Out:**
- The firmware side of the manifest and the reported-version check: firmware#1318.
- BLE and USB serial fakes. TCP and in-process cover the protocol; the transports already have their own tests.
- Simulating RF, propagation or multi-hop routing. The fake radio reports paths and hops from its seed.
- The rest of #598: the `integration_test` harness (#602) and Win32 input injection (#603) stay on-demand.
- Any change to `lib/` beyond what a test needs to attach. The fake radio never ships in a release build.
## 3. Epics
Each Epic ends with a verification task and gets one PR. The first task reproduces the diagnosis as a failing test.
### Epic A: core, profiles and the manifest check (#756)
| Task | Pts |
|---|---|
| **A1 · Failing scenario test:** the real `MeshCoreConnector` connects and reaches `connected` with self info, contacts and channels loaded. Fails today: there is nothing to connect to. | 2 |
| **A2 · Core (absorbs #601):** frame codec, dispatch, seeded state (self info, device info, contacts, channels, queued messages, battery, custom vars, auto-add), deterministic clock. Every delay the fake produces (including B4's slow replies) runs on that clock, never wall time, so tests advance it with the test's fake clock. Every reply cites its firmware function. Unknown commands get the firmware's error reply. Unit tests per command. | 4 |
| **A3 · In-process and TCP adapters:** the same core behind `sendFrameOverrideForTest`/`handleFrameForTest`, and behind a loopback `ServerSocket` speaking the transport's serial framing (finding 5). | 3 |
| **A4 · Profiles from manifests:** the fake loads a `protocol-manifest.json` per profile. Offband: firmware version, version code and capability bits; answers the Offband commands. Stock: no capability bytes; rejects Offband commands as stock firmware does. Pinned copies are checked in under `test/` so CI runs offline. Until firmware#1318 publishes them, the pinned copies are generated once from the firmware source at the pinned tags, in the same format, and replaced by the published ones when they land. | 3 |
| **A5 · Manifest contract check:** a test that fails when `meshcore_protocol.dart` disagrees with the pinned Offband manifest (a command or response code, a capability bit, a version gate). Includes the reported-version fields. | 3 |
| **A6 · Epic verification:** A1 passes on both adapters and both profiles; same seed, same result over 20 runs; A5 fails on a deliberately wrong constant. | 1 |
### Epic B: messaging, settings, remote nodes, faults and replay (#757)
| Task | Pts |
|---|---|
| **B1 · Messaging:** direct and channel send (`SENT`, then `SEND_CONFIRMED` with a settable delay or drop), incoming messages through `MSG_WAITING` and `SYNC_NEXT_MESSAGE` in the V3 formats. | 4 |
| **B2 · Radio settings:** cmd 11, 12, 38 and 61 change the fake's state and show in the next `SELF_INFO`. | 2 |
| **B3 · Remote nodes:** seeded repeater, room server and sensor contacts; login success and failure; CLI replies for `get radio`, `set radio`, `tempradio`, `set path.hash.mode`, `set tx`, `ver` and `version`, copied from firmware `CommonCLI`. | 4 |
| **B4 · Scripted faults:** drop an ack, return an error, close the connection mid-sync, delay a reply. | 3 |
| **B5 · Trace capture and replay tooling:** a recorder that saves a real radio's frames from a client session to a fixture file, and a replay test that requires the fake to produce the same frames for the same requests and seed. Built and tested here against a recorded fake session; real-radio fixtures are captured in D1. | 4 |
| **B6 · Epic verification** | 1 |
### Epic C: CI suites and the manual runner (#758)
| Task | Pts |
|---|---|
| **C1 · Connector scenario suite, both profiles:** connect and sync; direct send, ack, retry and timeout; channel send; Companion preset apply (#647: cmd 11 radio params, cmd 12 TX power, cmd 61 path hash mode, checked in the fake's state and the next `SELF_INFO`); remote preset apply on a repeater, room server and sensor, including `tempradio` going last. Under the stock profile, also: no Offband feature is offered and no Offband command is sent. Runs in the default `flutter test`. | 4 |
| **C2 · Screen-level tests:** the channels screen and a chat screen, attached in-process to the fake radio; a composer send reaches the fake and the ack shows. | 4 |
| **C3 · Manual runner:** `dart run tool/fake_radio.dart --profile offband|stock --port 5000 --seed <file>`; seed file format documented. The Windows app connects to it by TCP. | 3 |
| **C4 · Release guard:** the fake radio lives only under `test/` and `tool/`; a test fails if anything under `lib/` imports it. | 2 |
| **C5 · Epic verification** | 1 |
### Epic D: integration testing (#759)
| Task | Pts |
|---|---|
| **D1 · Owner session:** the Windows app connected to the manual runner (both profiles); then one real Offband radio and one radio flashed to stock MeshCore, each connected once while B5's recorder runs. | 3 |
| **D2 · Real-radio conformance:** the D1 traces committed as fixtures; the replay test passes against both, or each difference is fixed or recorded. | 3 |
| **D3 · OUTCOMES.md** | 1 |
## 4. Order and dependencies
- A, B, C, D in that order. Each Epic's verification task blocks the next Epic (wired in Citadel).
- B builds on A's core and profiles; C uses everything in A and B; D needs all three.
- All Epics touch the same new files (`test/support/fake_radio/`, `tool/fake_radio.dart`), so they run in sequence. C2 is the only task that touches app screens, and only from tests.
- Merges wait until the end, so each Epic's branch is stacked on the one before.
- **firmware#1318** is not a blocker: A4 starts from pinned manifests generated from the firmware source, and switches to the published ones when #1318 lands. If #1318 changes the manifest format, A4's loader follows it.
- #598 keeps #599, #600, #602, #603 and #604. Its bench will use this fake radio, so #598 depends on this Feature.
## 5. Grants and authorization
| Term | Proposed | Why |
|---|---|---|
| **What merging this plan authorizes** | Running Epics A to D in order without stopping between them: code, tests, builds, and one PR per Epic, stacked. | Canon: once the plan grant is minted, run the whole chain. |
| **Merges** | Held to the end of the Feature, in order A, B, C, D, after the owner's D1 session. | Canon. |
| **Epic verification** | Command mode: the merge hook runs `flutter test` on each PR's exact commit. | This Feature is test infrastructure; its own suites are the evidence. It also spares the owner a verify step per PR. |
| **Owner steps during the run** | None until D1. Before D1: pick the radio to flash to stock and mint its flash grant. At D1: the runner session and the two radio captures, in one sitting. | Canon: owner steps are one message, at the end. |
| **Stops** | A new decision; a fault I can't fix; a firmware reply I can't find a source for. | |
| **Flash** | Not in this grant. Before D1, the session flashes one radio the owner picks to a stock MeshCore companion release file, with `scripts/pio-flash` under its own `dw-approve flash <device>` grant. | Finding 12. A plan's flash term must name one registered device, and the radio isn't chosen yet, so the flash gets its own grant when it is. `pio-flash` flashes any firmware file, stock included (owner, 2026-10-02). |
```grant-terms
{
"epic_chain": [756, 757, 758, 759],
"chain": true,
"verification": { "mode": "command", "command": "flutter test" },
"merge": { "budget": 4, "basis": "One PR per Epic: A (#756), B (#757), C (#758), D (#759: conformance fixtures and OUTCOMES.md)." },
"flash": null,
"reset": null,
"expires_after_hours": 168
}
```
`expires_after_hours` basis: 55 points of work, roughly five to six working sessions, plus the owner's D1 session around his day job. 168 hours is the maximum.
## 6. Verification
- **Named command:** `flutter analyze --fatal-infos --fatal-warnings`, `dart format --set-exit-if-changed`, the em-dash check, and `flutter test` (full suite, which includes the new suites). Every Epic PR shows the output.
- **Acceptance bar:** each finding in section 1 has a test that would have caught it. Most important: the handshake reaches `connected` under both profiles; the stock profile never sees an Offband feature or command; the manifest check fails on a wrong constant; a dropped ack is retried; a remote `tempradio` is sent last; a release build contains no fake radio code.
- **Owner requirement (#748):** every error message these flows show is tested present on failure and absent under ideal conditions.
## 7. Done when
- The default `flutter test`, and so every PR's CI, connects the real connector to the fake radio under both profiles and covers connect, sync, messaging, Companion presets and remote-node presets.
- Client CI fails when the client's protocol constants disagree with the pinned Offband manifest.
- The fake radio reproduces the captured traces from a real Offband radio and a real stock radio.
- The same fake radio runs from `tool/fake_radio.dart`, and the Windows app connects to it over TCP.
- Nothing under `lib/` imports the fake radio.
- The owner signs off D1, and `OUTCOMES.md` is approved.
## 8. Your choices
| # | Question | Option A | Option B | Rec. | Your choice |
|---|---|---|---|---|---|
| 1 | Where #601 lives | Move it into this Feature (A2); #598 depends on #755 | Leave it under #598 and build a second fake here | ⭐ A | **A** (2026-10-02) |
| 2 | Manual runner (C3) | In this Feature | Later, separately | ⭐ A (it's the "USB cables are tied up" case, and small once the TCP adapter exists) | **A** (2026-10-02) |
| 3 | Remote-node emulation (B3) | In this Feature | Later, separately | ⭐ A (it covers the #647 remote-preset gap in CI) | **A** (2026-10-02) |
## Decisions
| Date | Decision |
|---|---|
| 2026-10-02 | The fake radio runs in CI (reverses #598's "not in CI" for the fake radio only). |
| 2026-10-02 | Stock and Offband are emulated as separate profiles. |
| 2026-10-02 | The firmware publishes the protocol manifest at every tag and merge (firmware#1318); the fake radio consumes it, never a hand copy. |
| 2026-10-02 | Behavior is checked against captured traces from a real Offband radio and a radio flashed to stock. |
| 2026-10-02 | The session flashes the stock radio with `scripts/pio-flash`, which flashes stock files too (owner). |
| 2026-10-02 | The stock flash moves out of the plan grant to its own `dw-approve flash <device>` grant: `dw-approve plan` refused a flash term with no device. |
| 2026-10-02 | Section 8: all three recommendations accepted. #601 moves under Epic A (#756); the manual runner and remote-node emulation are in scope. |
## 9. Carried-in work
| Item | Goes to |
|---|---|
| #601 (loopback fake radio, planned only) | A2 and A3 |
| #598 owner decision (not in CI) | Reversed for the fake radio only (2026-10-02, logged on #598) |
| #738 remote-preset test gap | C1 (in CI) |
| firmware#1318 (manifest, reported-version check) | Firmware repo; A4 and A5 consume it |
| firmware#514, #873 | Referenced by firmware#1318; firmware side |
## Alternatives considered but not chosen
- **Firmware CI builds the fake radio itself:** the fake is Dart code in the client repo; firmware CI builds C++. Firmware publishes the contract instead, and the client builds from it.
- **Hand-copied protocol constants in the fake:** drifts silently, the failure firmware#514 already documents.
- **`integration_test` on a Linux desktop runner in CI:** needs a display server and a full app build per run; the in-process adapter reaches the same screens from `flutter test`.
- **A Python or firmware-native simulator:** a second toolchain in CI, and it can't use the connector's in-process seam.
- **Running the real companion firmware on the host:** not investigated; it would mean building and maintaining a host port of the firmware, a much larger effort than this Feature.
When this plan merges, each Task gets a GitHub issue and a Citadel task, per canon.

@ -71,23 +71,26 @@ class CaplogBusyException implements Exception {
'CaplogBusyException: device busy, another stream is in flight';
}
/// Thrown when the reassembled caplog byte count doesn't match the length the
/// device announced in its START frame. (#430)
class CaplogTruncatedException implements Exception {
const CaplogTruncatedException({
/// Result of a caplog download. On a clean transfer [received] == [expected]
/// and [truncated] is false; on a short transfer [bytes] still carry everything
/// that was reassembled and [truncated] is true. A partial capture is kept and
/// handed back rather than discarded, so the user can still save/share it. (#580)
class CaplogDownload {
const CaplogDownload({
required this.bytes,
required this.received,
required this.expected,
this.chunks,
required this.chunks,
});
/// The reassembled bytes (complete, or partial when [truncated]).
final Uint8List bytes;
final int received;
final int expected;
/// Number of CHUNK frames the client accumulated before END, a diagnostic to
/// tell client/transport frame loss apart from the firmware streaming short.
final int? chunks;
/// Number of CHUNK frames accumulated before END, a diagnostic to tell
/// client/transport frame loss apart from the firmware streaming short.
final int chunks;
@override
String toString() =>
'CaplogTruncatedException: received $received of $expected bytes'
'${chunks != null ? ' in $chunks chunks' : ''}';
bool get truncated => received != expected;
}

File diff suppressed because it is too large Load Diff

@ -2,8 +2,37 @@ import 'dart:convert';
import 'dart:math';
import 'dart:typed_data';
// `flutter/widgets.dart` re-exports package:characters, which supplies the
// grapheme-cluster iteration used by utf8TruncateToBytes below.
import 'package:flutter/widgets.dart';
/// Encodes [s] as UTF-8, truncated to at most [maxBytes], never splitting a
/// character. (#636)
///
/// Truncation stops on a **grapheme cluster** boundary, not a byte boundary and
/// not merely a codepoint boundary. Cutting on bytes puts invalid UTF-8 on the
/// wire, which every reader then renders as replacement characters. Cutting
/// between codepoints is valid UTF-8 but still wrong: a ZWJ emoji sequence is
/// several codepoints joined by U+200D plus a variation selector, so a
/// codepoint-safe cut can still leave a bare glyph, a dangling joiner, or an
/// orphaned selector.
///
/// The on-wire name field is 32 bytes including a null terminator, so callers
/// pass 31. That holds roughly 10 CJK characters, or two ZWJ emoji.
Uint8List utf8TruncateToBytes(String s, int maxBytes) {
if (maxBytes <= 0) return Uint8List(0);
final whole = utf8.encode(s);
if (whole.length <= maxBytes) return Uint8List.fromList(whole);
final out = <int>[];
for (final cluster in s.characters) {
final encoded = utf8.encode(cluster);
if (out.length + encoded.length > maxBytes) break;
out.addAll(encoded);
}
return Uint8List.fromList(out);
}
// Buffer Reader - sequential binary data reader with pointer tracking
class BufferReader {
int _pointer = 0;
@ -132,8 +161,10 @@ class BufferWriter {
void writeCString(String string, int maxLength) {
final bytes = Uint8List(maxLength);
final encoded = utf8.encode(string);
for (var i = 0; i < maxLength - 1 && i < encoded.length; i++) {
// Grapheme-safe: a raw byte copy would cut a multi-byte character in half
// and put invalid UTF-8 on the wire. (#636)
final encoded = utf8TruncateToBytes(string, maxLength - 1);
for (var i = 0; i < encoded.length; i++) {
bytes[i] = encoded[i];
}
writeBytes(bytes);
@ -213,6 +244,17 @@ const int cmdSetAutoAddConfig = 58;
const int cmdGetAutoAddConfig = 59;
const int cmdSetPathHashMode = 61;
/// Read the node's 64-byte identity. Compiled out of some firmware builds
/// (`ENABLE_PRIVATE_KEY_EXPORT`), in which case the device answers
/// [respCodeDisabled] rather than [respCodePrivateKey]. (#578)
const int cmdExportPrivateKey = 23;
/// Overwrite the node's identity with a 64-byte key. Like the export command
/// this can be compiled out (`ENABLE_PRIVATE_KEY_IMPORT`). Firmware validates
/// the key and answers [respCodeErr] with [errCodeIllegalArg] if it is
/// malformed. (#578)
const int cmdImportPrivateKey = 24;
// Text message types
const int txtTypePlain = 0;
const int txtTypeCliData = 1;
@ -256,6 +298,18 @@ const int respCodeCustomVars = 21;
const int respCodeAutoAddConfig = 25;
const int respCodeStats = 24;
/// Reply to [cmdExportPrivateKey]: this byte followed by
/// [privateKeySize] bytes. (#578)
const int respCodePrivateKey = 14;
/// One-byte reply meaning the firmware was built without the requested
/// feature. Distinct from [respCodeErr], which reports a runtime failure of a
/// command the firmware does support. (#578)
const int respCodeDisabled = 15;
/// A node identity is 64 bytes: the Ed25519 secret followed by its public key.
const int privateKeySize = 64;
/// Offband fork-only extension space (0xC0+), never collides with upstream,
/// never submitted upstream. Request and reply share the code. (#135)
const int cmdOffbandGps = 0xC1;
@ -279,6 +333,13 @@ const int offbandFemLnaGet = 0x02;
const int femLnaBypass = 0x00;
const int femLnaEnabled = 0x01;
/// Fixed delay a repeater applies before queueing a CLI reply for transmit.
///
/// Firmware `CLI_REPLY_DELAY_MILLIS` in `examples/simple_repeater/MyMesh.cpp`,
/// applied on both the direct and the flood reply path. It is unconditional, so
/// every CLI round trip pays it and any budget for one must include it.
const int cliReplyDelayMs = 600;
Uint8List buildOffbandFemLnaSetFrame(bool enabled) => Uint8List.fromList([
cmdOffbandFemLna,
offbandFemLnaSet,
@ -432,6 +493,10 @@ const int errCodeIllegalArg = 6;
/// it defensively against a stale or mis-gated client. (#304)
const int errCodeUnsupportedCmd = 1;
/// `ERR_CODE_NOT_FOUND`: e.g. `CMD_GET_CONTACT_BY_KEY` for a key the radio does
/// not hold. (#762)
const int errCodeNotFound = 2;
Uint8List buildOffbandBlockAddFrame(Uint8List pubKey) =>
Uint8List.fromList([cmdOffbandBlock, offbandBlockAdd, ...pubKey]);
Uint8List buildOffbandBlockRemoveFrame(Uint8List pubKey) =>
@ -533,6 +598,75 @@ bool firmwareSupportsOffbandCaplog(int? offbandCaps, int? firmwareVerCode) =>
(offbandCaps & offbandCapCaplog) != 0 &&
(firmwareVerCode ?? 0) >= 17;
/// Packet-hash query capability (firmware #611, cap byte 2 bit 3). Lets the
/// client ask firmware for the authoritative on-air hash of a channel message
/// it sent, keyed by (msg_timestamp, channel_idx), to correlate against
/// CoreScope observer counts (#524). Allocation provisional until the firmware
/// PR merges; confirm against it before release.
const int offbandCap2PktHash = 0x08;
/// True iff this radio supports the 0xC6 packet-hash query. Requires both the
/// cap-byte-2 bit AND FIRMWARE_VER_CODE >= 22. The client must never emit 0xC6
/// unless this is true.
bool firmwareSupportsPktHash(int? offbandCaps2, int? firmwareVerCode) =>
offbandCaps2 != null &&
(offbandCaps2 & offbandCap2PktHash) != 0 &&
(firmwareVerCode ?? 0) >= 22;
/// 0xC6 CMD_OFFBAND_PKT_HASH (firmware #611). Client-issued query, never a push;
/// the stock channel-send OK reply is untouched.
const int cmdOffbandPktHash = 0xC6;
const int pktHashReqGet = 0x01;
const int pktHashRespGet = 0x01;
const int pktHashRespErr = 0x7F;
/// Build a 0xC6 GET request for the hash of a sent channel message, keyed by
/// the (msg_timestamp, channel_idx) the client used in CMD_SEND_CHANNEL_TXT_MSG.
/// Wire: [0xC6][0x01][ts:4 LE][chan:1] = 7 bytes.
Uint8List buildOffbandPktHashGetFrame(int msgTimestamp, int channelIdx) {
final frame = Uint8List(7);
frame[0] = cmdOffbandPktHash;
frame[1] = pktHashReqGet;
ByteData.sublistView(frame, 2, 6).setUint32(0, msgTimestamp, Endian.little);
frame[6] = channelIdx & 0xFF;
return frame;
}
/// A parsed 0xC6 success reply: the on-air packet hash plus the echoed key,
/// so a reply can be matched to its request without relying on ordering.
class OffbandPktHash {
const OffbandPktHash({
required this.timestamp,
required this.channelIdx,
required this.hashHex,
});
/// msg_timestamp echoed from the request.
final int timestamp;
/// channel_idx echoed from the request.
final int channelIdx;
/// 16 lowercase hex chars, matching CoreScope's hash and the client's own
/// [_computePacketHash] format.
final String hashHex;
}
/// Parse a 0xC6 reply. Returns the hash on a success reply
/// ([0xC6][0x01][ts:4][chan:1][hash:8], 15 bytes), or null on the error reply
/// ([0xC6][0x7F][reason]) or any malformed frame.
OffbandPktHash? parseOffbandPktHashReply(Uint8List frame) {
if (frame.length < 15) return null;
if (frame[0] != cmdOffbandPktHash || frame[1] != pktHashRespGet) return null;
final ts = ByteData.sublistView(frame, 2, 6).getUint32(0, Endian.little);
final chan = frame[6];
final hashHex = frame
.sublist(7, 15)
.map((b) => b.toRadixString(16).padLeft(2, '0'))
.join();
return OffbandPktHash(timestamp: ts, channelIdx: chan, hashHex: hashHex);
}
const int statsTypeCore = 0;
const int statsTypeRadio = 1;
const int statsTypePackets = 2;
@ -588,6 +722,9 @@ const int payloadTypeRawCustom =
0x0F; // custom packet as raw bytes, for applications with custom encryption, payloads, etc
//auto-add flags
/// Firmware clamps `autoadd_max_hops` to this value. 0 means no limit. (#578)
const int autoAddMaxHopsLimit = 64;
const int autoAddOverwriteOldestFlag =
1 << 0; // 0x01 - overwrite oldest non-favourite when full
const int autoAddChatFlag =
@ -637,6 +774,23 @@ int maxChannelMessageBytes(String? senderName, {int? maxFrameBytes}) {
return _minPositive(byPayload, byFrame);
}
/// Fewest bytes a composer needs before it is worth calling usable.
///
/// Judgement call, not a protocol constant: below this a user cannot say
/// anything meaningful, so an apparently-normal text field is misleading and
/// the guard in #684 explains itself instead. Deliberately larger than the
/// degenerate values #592 produced (DM 4, channel 1 or 0) so the guard also
/// catches the near-miss cases, not only the literal zero.
const int minUsableComposerBytes = 16;
/// Whether [maxBytes] leaves a composer able to carry a real message.
///
/// A budget of 0 rejects every keystroke, which is the #592 symptom that read
/// as a dead keyboard. A budget of 1-15 accepts input but cannot carry a
/// sentence. Both are cases the user must be told about rather than left to
/// discover by typing into a field that ignores them (SAFELANE 6).
bool isComposerBudgetUsable(int maxBytes) => maxBytes >= minUsableComposerBytes;
int _senderNameBytes(String? senderName) {
if (senderName == null || senderName.isEmpty) return maxNameSize - 1;
final bytes = utf8.encode(senderName);
@ -889,13 +1043,19 @@ Uint8List buildSendTextMsgFrame(
// Build CMD_SEND_CHANNEL_TXT_MSG frame
// Format: [cmd][txt_type][channel_idx][timestamp x4][text...]
Uint8List buildSendChannelTextMsgFrame(int channelIndex, String text) {
final timestamp = DateTime.now().millisecondsSinceEpoch ~/ 1000;
// [timestamp] (seconds) may be supplied by the caller so it can correlate the
// send to the firmware packet hash (0xC6, #524); defaults to now.
Uint8List buildSendChannelTextMsgFrame(
int channelIndex,
String text, {
int? timestamp,
}) {
final ts = timestamp ?? DateTime.now().millisecondsSinceEpoch ~/ 1000;
final writer = BufferWriter();
writer.writeByte(cmdSendChannelTxtMsg);
writer.writeByte(txtTypePlain);
writer.writeByte(channelIndex);
writer.writeUInt32LE(timestamp);
writer.writeUInt32LE(ts);
writer.writeString(text);
writer.writeByte(0);
return writer.toBytes();
@ -983,13 +1143,14 @@ Uint8List buildSendSelfAdvertFrame({bool flood = false}) {
// Build CMD_SET_ADVERT_NAME frame
// Format: [cmd][name...]
Uint8List buildSetAdvertNameFrame(String name) {
final nameBytes = utf8.encode(name);
final nameLen = nameBytes.length < maxNameSize
? nameBytes.length
: maxNameSize - 1;
// Grapheme-safe. This one matters most of the three: it sets THIS device's
// own advert name, which is what every other node on the mesh sees, what is
// embedded in the contact cards this device emits, and what other clients
// match against. Corrupt it once and the corruption propagates outward.
// (#636)
final writer = BufferWriter();
writer.writeByte(cmdSetAdvertName);
writer.writeBytes(Uint8List.fromList(nameBytes.sublist(0, nameLen)));
writer.writeBytes(utf8TruncateToBytes(name, maxNameSize - 1));
return writer.toBytes();
}
@ -1046,7 +1207,8 @@ Uint8List buildSetChannelFrame(int channelIndex, String name, Uint8List psk) {
// Build CMD_SET_RADIO_PARAMS frame
// Format: [cmd][freq x4][bw x4][sf][cr] (pre-v9)
// [cmd][freq x4][bw x4][sf][cr][repeat] (firmware v9+)
// freq: frequency in Hz (300000-2500000)
// freq: frequency in kHz despite the parameter name (stock firmware stores
// freq / 1000.0 as MHz and accepts 150000-2500000)
// bw: bandwidth in Hz (7000-500000)
// sf: spreading factor (5-12)
// cr: coding rate (5-8)
@ -1106,6 +1268,7 @@ Uint8List buildUpdateContactPathFrame(
double? lat,
double? lon,
DateTime? lastModified,
DateTime? lastAdvert,
}) {
final writer = BufferWriter();
writer.writeByte(cmdAddUpdateContact);
@ -1120,9 +1283,20 @@ Uint8List buildUpdateContactPathFrame(
// Name (32 bytes, null-padded)
writer.writeCString(name, maxNameSize);
// Timestamp
final timestamp = DateTime.now().millisecondsSinceEpoch ~/ 1000;
writer.writeUInt32LE(timestamp);
// Mandatory last_advert_timestamp. Defaults to now, which is right for the
// path-update callers: they refresh a contact the radio already learned from
// a real advert.
//
// A key-only add MUST pass the epoch instead (#627). The firmware compares
// this field against every incoming advert with
// `timestamp <= last_advert_timestamp` and silently discards the non-greater
// ones as replay attacks (`BaseChatMesh.cpp:142-145`). Advert timestamps come
// from the SENDER's clock, and clocks in the field run years behind, so
// stamping "now" on a contact that has never adverted would leave it
// permanently deaf to its own adverts. Zero lets any genuine advert win.
final advertSeconds =
(lastAdvert ?? DateTime.now()).millisecondsSinceEpoch ~/ 1000;
writer.writeUInt32LE(advertSeconds < 0 ? 0 : advertSeconds);
// Optional [Lat x4, Lon x4][timestamp x4] tail per the doc comment above.
// Emit 8 bytes of position (zero-filled when only lastModified is provided)
@ -1326,6 +1500,7 @@ Uint8List buildSetAutoAddConfigFrame({
required bool autoAddRoomServer,
required bool autoAddSensor,
required bool overwriteOldest,
int? maxHops,
}) {
final writer = BufferWriter();
writer.writeByte(cmdSetAutoAddConfig);
@ -1336,6 +1511,32 @@ Uint8List buildSetAutoAddConfigFrame({
if (autoAddSensor) flags |= autoAddSensorFlag;
if (overwriteOldest) flags |= autoAddOverwriteOldestFlag;
writer.writeByte(flags);
// Firmware applies the hop limit only when the frame carries a third byte,
// so omitting [maxHops] leaves the device's current limit untouched. It
// clamps to [autoAddMaxHopsLimit] on its side; we clamp here too so the
// value we believe we sent is the value that lands. (#578)
if (maxHops != null) {
writer.writeByte(maxHops.clamp(0, autoAddMaxHopsLimit));
}
return writer.toBytes();
}
/// Request the node's identity. See [cmdExportPrivateKey] for availability.
Uint8List buildExportPrivateKeyFrame() =>
Uint8List.fromList([cmdExportPrivateKey]);
/// Overwrite the node's identity. [identity] must be [privateKeySize] bytes.
Uint8List buildImportPrivateKeyFrame(Uint8List identity) {
if (identity.length != privateKeySize) {
throw ArgumentError.value(
identity.length,
'identity',
'a node identity is exactly $privateKeySize bytes',
);
}
final writer = BufferWriter();
writer.writeByte(cmdImportPrivateKey);
writer.writeBytes(identity);
return writer.toBytes();
}

@ -241,12 +241,17 @@ class ObserverConfigClient {
}
}
/// Extract the value from a scalar reply ("key = value\n" → "value").
/// Falls back to the trimmed whole string if there's no " = ".
/// Extract the value from a scalar reply (`key = value` -> `value`).
///
/// Splits on the FIRST `=` (config keys never contain `=`; values may). A
/// blank field replies `key =` with nothing after the `=`, so the old
/// ` = ` (space-equals-space) match failed and leaked the whole `key =` line
/// as the value (#469). Splitting on `=` and trimming handles blank values
/// (-> empty) and values containing `=` correctly.
static String extractScalarValue(String reply) {
final trimmed = reply.replaceAll('\n', '').trimRight();
final i = trimmed.indexOf(' = ');
return i < 0 ? trimmed : trimmed.substring(i + 3);
final line = reply.replaceAll('\n', '');
final i = line.indexOf('=');
return i < 0 ? line.trim() : line.substring(i + 1).trim();
}
/// Read a NUL-terminated UTF-8 string from [f] starting at [start].

@ -0,0 +1,17 @@
/// Returns a channel-send timestamp (Unix seconds) strictly greater than
/// [lastSecs] for the same channel, so no two sends on one channel ever share a
/// `(ts, channel_idx)` key.
///
/// This is a correctness requirement for the 0xC6 packet-hash correlation
/// (#524/#611): `msg_timestamp` is only second-resolution and MeshCore channel
/// encryption is deterministic (AES-128-ECB), so two different messages on the
/// same channel within one second would otherwise map to the same key but
/// different hashes, and the client would query CoreScope with the wrong hash.
///
/// Uses [nowSecs] unless it would collide with or precede [lastSecs], in which
/// case it bumps to `lastSecs + 1`. Mirrors the firmware's own
/// `getCurrentTimeUnique()`.
int monotonicChannelSendTs(int nowSecs, int? lastSecs) {
if (lastSecs != null && nowSecs <= lastSecs) return lastSecs + 1;
return nowSecs;
}

@ -0,0 +1,102 @@
import '../models/radio_preset.dart';
// Radio presets on remote nodes (repeater, room server, sensor) through the
// stock admin CLI (#733). Kept out of the screen so it can be tested.
/// Default `tempradio` duration (owner decision on #662).
const int kTempRadioDefaultMinutes = 1440;
/// Longest `tempradio` duration that works. Firmware schedules the revert at
/// `futureMillis(2000 + timeout_mins * 60 * 1000)` in a 32-bit int
/// (simple_repeater/MyMesh.cpp), which overflows past this.
const int kTempRadioMaxMinutes = 35791;
String _bandwidthKHz(int bandwidthHz) => '${bandwidthHz / 1000}';
/// Stock CLI: persist radio params (applied after a reboot).
String setRadioCommand(
String frequencyText,
int bandwidthHz,
int spreadingFactor,
int codingRate,
) =>
'set radio $frequencyText,${_bandwidthKHz(bandwidthHz)},'
'$spreadingFactor,$codingRate';
/// Stock CLI: apply radio params now, reverting after [minutes]. Nothing is
/// saved on the node. Coding rate is the 4/x denominator (4/5 is 5), which
/// is what firmware range-checks (5-8).
String tempRadioCommand(
String frequencyText,
int bandwidthHz,
int spreadingFactor,
int codingRate,
int minutes,
) =>
'tempradio $frequencyText,${_bandwidthKHz(bandwidthHz)},'
'$spreadingFactor,$codingRate,$minutes';
/// A valid `tempradio` duration in minutes (1 to [kTempRadioMaxMinutes]),
/// or null.
int? parseTempRadioMinutes(String text) {
final minutes = int.tryParse(text.trim());
if (minutes == null || minutes < 1 || minutes > kTempRadioMaxMinutes) {
return null;
}
return minutes;
}
/// `tempradio` retunes the node 2 s after it replies, so anything sent after
/// it in the same save would go out on the old frequency. Keep the original
/// order otherwise, with retuning commands moved to the end.
List<T> withRetuneLast<T>(List<T> commands, bool Function(T) retunes) => [
...commands.where((c) => !retunes(c)),
...commands.where(retunes),
];
bool isRetuneCommand(String command) => command.startsWith('tempradio ');
/// Stock CLI: path hash mode, zero-based (2 bytes = mode 1).
String setPathHashModeCommand(int mode) => 'set path.hash.mode $mode';
/// Whether a path hash that came from a preset goes out in this save (#735).
/// Firmware has no temporary path hash, so with a temporary radio change it
/// would outlive the revert; it stays pending for a normal save instead. A
/// path hash the user set by hand is always sent.
bool sendsPresetPathHash({
required bool temporaryRadio,
required bool pathHashFromPreset,
}) => !(temporaryRadio && pathHashFromPreset);
/// The preset whose radio values match the form's, or null for custom values.
/// The form holds frequency as text (the repeater reports e.g. "908.205017"),
/// so frequency matches to the nearest kHz. TX power is not compared: the
/// remote screen sets it separately. A preset with a path hash only matches
/// a node on that mode (#747): MeshCore's "Canada" and "USA" differ only there.
String? matchRemotePresetId(
List<RadioPreset> presets, {
required String frequencyText,
required int? bandwidthHz,
required int? spreadingFactor,
required int? codingRate,
required int pathHashMode,
}) {
final mhz = double.tryParse(frequencyText.trim());
if (mhz == null ||
bandwidthHz == null ||
spreadingFactor == null ||
codingRate == null) {
return null;
}
final khz = (mhz * 1000).round();
for (final p in presets) {
if (p.frequencyKHz == khz &&
p.bandwidth.hz == bandwidthHz &&
p.spreadingFactor.value == spreadingFactor &&
p.codingRate.value == codingRate &&
presetPathHashMatches(p, pathHashMode + 1)) {
return p.id;
}
}
return null;
}

@ -1,56 +1,25 @@
import 'package:flutter/material.dart';
// showDismissibleSnackBar shows a [SnackBar] with tap to dismiss
// all other properties are default and optional
import '../widgets/top_toast.dart';
/// Shows a transient notification that dismisses on tap, on an upward swipe,
/// or after [duration].
///
/// Kept under its original name so existing call sites are unchanged; the
/// notification itself moved from a bottom [SnackBar] to a top-anchored
/// overlay (#638), because the bottom placement covered the chat composer.
void showDismissibleSnackBar(
BuildContext context, {
Key? key,
required Widget content,
Color? backgroundColor,
double? elevation,
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
double? width,
ShapeBorder? shape,
HitTestBehavior? hitTestBehavior,
SnackBarBehavior? behavior,
SnackBarAction? action,
double? actionOverflowThreshold,
bool? showCloseIcon,
Color? closeIconColor,
Duration? duration,
bool? persist,
Animation<double>? animation,
void Function()? onVisible,
DismissDirection? dismissDirection,
Clip? clipBehavior,
}) {
final messenger = ScaffoldMessenger.of(context);
messenger.showSnackBar(
SnackBar(
key: key,
content: GestureDetector(
onTap: () => messenger.hideCurrentSnackBar(),
child: content,
),
backgroundColor: backgroundColor,
elevation: elevation,
margin: margin,
padding: padding,
width: width,
shape: shape,
hitTestBehavior: hitTestBehavior,
behavior: behavior,
action: action,
actionOverflowThreshold: actionOverflowThreshold,
showCloseIcon: showCloseIcon,
closeIconColor: closeIconColor,
duration: duration ?? const Duration(seconds: 4),
persist: persist,
animation: animation,
onVisible: onVisible,
dismissDirection: dismissDirection ?? DismissDirection.down,
clipBehavior: clipBehavior ?? Clip.hardEdge,
),
TopToast.show(
context,
content: content,
backgroundColor: backgroundColor,
duration: duration ?? TopToast.defaultDuration,
persist: persist ?? false,
);
}

@ -134,6 +134,26 @@
"scanner_scan": "Scan",
"scanner_bluetoothOff": "Bluetooth is off",
"scanner_bluetoothOffMessage": "Please turn on Bluetooth to scan for devices",
"scanner_connectFailedTransient": "The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.",
"@scanner_connectFailedTransient": {
"description": "Human-readable text for an Android GATT 133 connect failure after the bounded retry also failed (#698)."
},
"scanner_connectFailedTimeout": "The connection timed out. Check that the radio is powered, in range, and not already connected to another device.",
"@scanner_connectFailedTimeout": {
"description": "Human-readable text for a connect timeout (#698)."
},
"scanner_connectFailedGeneric": "Could not connect to the radio. Details are in the App Debug Log.",
"@scanner_connectFailedGeneric": {
"description": "Human-readable fallback for any other connect failure; the raw exception goes to the log only (#522/#698)."
},
"scanner_bleReleaseWarning": "Radio may still be held by this device",
"@scanner_bleReleaseWarning": {
"description": "Persistent banner title when a BLE disconnect was never confirmed by the OS, so the radio may stay latched and stop advertising (#697)."
},
"scanner_bleReleaseWarningMessage": "The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.",
"@scanner_bleReleaseWarningMessage": {
"description": "Persistent banner body naming the recovery for an unconfirmed BLE release (#697)."
},
"scanner_chromeRequired": "Chrome Browser Required",
"scanner_chromeRequiredMessage": "This web application requires Google Chrome or a Chromium-based browser for Bluetooth support.",
"scanner_enableBluetooth": "Enable Bluetooth",
@ -215,6 +235,24 @@
"settings_rebootDeviceSubtitle": "Restart the MeshCore device",
"settings_rebootDeviceConfirm": "Are you sure you want to reboot the device? You will be disconnected.",
"settings_debug": "Debug",
"settings_experimental": "Experimental",
"settings_experimentalSubtitle": "Advanced and in-development features",
"settings_experimentalDescription": "These features are experimental and may change or be removed at any time. They default to off.",
"settings_coreScopeObserverCount": "CoreScope observer counts",
"settings_coreScopeObserverCountSubtitle": "On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.",
"settings_coreScopeObserverCountUnsupported": "Requires a firmware build with packet-hash support (v22+).",
"settings_experimentalDisable": "Disable experimental features",
"settings_experimentalDisableSubtitle": "Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.",
"settings_experimentalUnlocked": "Experimental features unlocked",
"settings_experimentalAlreadyUnlocked": "Experimental features are already unlocked",
"settings_experimentalCountdown": "{count} more taps to unlock experimental features",
"@settings_experimentalCountdown": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"settings_companionDebugLog": "Companion Debug Log",
"settings_companionDebugLogSubtitle": "BLE/TCP/USB commands, responses, and raw data",
"settings_appDebugLog": "App Debug Log",
@ -228,9 +266,15 @@
}
}
},
"settings_aboutLegalese": "2026 MeshCore Open Source Project",
"settings_aboutDescription": "An open-source Flutter client for MeshCore LoRa mesh networking devices.",
"settings_aboutLegalese": "© 2026 Offband. Based on MeshCore Open by zjs81, MIT licensed.",
"settings_aboutDescription": "Offband Meshcore is an open-source client for MeshCore LoRa mesh networking devices.",
"settings_aboutLicenses": "View licenses",
"settings_aboutWebsite": "Offband website",
"settings_aboutPlayStore": "Google Play",
"settings_aboutDonate": "Donate or sponsor",
"settings_aboutLinkFailed": "Could not open the link",
"settings_aboutOpenMeteoAttribution": "LOS elevation data: Open-Meteo (CC BY 4.0)",
"settings_aboutPresetsAttribution": "Regional radio presets: MeshCore's suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.",
"settings_infoName": "Name",
"settings_infoId": "ID",
"settings_infoStatus": "Status",
@ -246,6 +290,20 @@
"settings_infoContactsCount": "Contacts Count",
"settings_infoChannelCount": "Channel Count",
"settings_presets": "Presets",
"settings_presetSourceMeshCore": "MeshCore",
"settings_presetSourceOffband": "Offband",
"settings_presetsRefresh": "Update presets",
"settings_presetsUpdating": "Updating presets...",
"settings_presetsUpdateFailed": "Couldn't update presets. Showing the saved list.",
"settings_presetsUpdatedAt": "Presets updated {date}",
"@settings_presetsUpdatedAt": {
"placeholders": {
"date": {
"type": "String"
}
}
},
"settings_presetsBundled": "Presets included with this version of the app",
"settings_frequency": "Frequency (MHz)",
"settings_frequencyHelper": "300.0 - 2500.0",
"settings_frequencyInvalid": "Invalid frequency (300-2500 MHz)",
@ -483,6 +541,7 @@
}
},
"contacts_manageRepeater": "Manage Repeater",
"contacts_manageSensor": "Manage Sensor",
"contacts_manageRoom": "Manage Room Server",
"contacts_roomLogin": "Room Server Login",
"contacts_openChat": "Open Chat",
@ -721,6 +780,17 @@
}
}
},
"composerBudgetBlockedTitle": "Can't send messages on this connection",
"composerBudgetLimitedTitle": "Only {maxBytes} characters will fit",
"@composerBudgetLimitedTitle": {
"placeholders": {
"maxBytes": {
"type": "int"
}
}
},
"composerBudgetBluetoothCause": "The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.",
"composerBudgetGenericCause": "The connection to the radio left no room for message text. Try reconnecting.",
"chat_messageCopied": "Message copied",
"chat_messageDeleted": "Message deleted",
"chat_retryingMessage": "Retrying message",
@ -858,6 +928,59 @@
}
}
},
"channel_coreScopeTooltip": "Seen by {count, plural, =1{1 CoreScope observer} other{{count} CoreScope observers}}",
"@channel_coreScopeTooltip": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"channel_coreScopeRefresh": "Refresh CoreScope observers",
"channel_coreScopeRefreshFailed": "CoreScope unreachable",
"channel_coreScopeNotFound": "Not seen by CoreScope yet",
"channel_coreScopeCounts": "{observers, plural, =1{1 observer} other{{observers} observers}} · {observations} observations",
"@channel_coreScopeCounts": {
"placeholders": {
"observers": {
"type": "int"
},
"observations": {
"type": "int"
}
}
},
"channel_senderNameUnknown": "No node known by that name",
"channel_senderNameUnknownHint": "Adding needs an advert from this node",
"channel_senderAlreadyContact": "Already in contacts",
"channel_senderMultipleMatches": "{count} nodes use this name",
"@channel_senderMultipleMatches": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"channel_senderAddNotConnected": "Not connected to a radio, so this sender can't be added yet",
"channel_senderAddFailed": "Couldn't add this sender: {error}",
"@channel_senderAddFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"channel_senderCandidate": "{keyPrefix} · {type}",
"@channel_senderCandidate": {
"placeholders": {
"keyPrefix": {
"type": "String"
},
"type": {
"type": "String"
}
}
},
"chat_successes": "successes",
"chat_score": "Score",
"chat_removePath": "Remove path",
@ -1337,6 +1460,18 @@
"repeater_bandwidth": "Bandwidth",
"repeater_spreadingFactor": "Spreading Factor",
"repeater_codingRate": "Coding Rate",
"repeater_tempRadio": "Apply temporarily",
"repeater_tempRadioSubtitle": "Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.",
"repeater_tempRadioMinutes": "Duration (minutes)",
"repeater_tempRadioPathHashNote": "This preset's path hash size isn't applied with a temporary change: the node can't revert it on its own. It stays pending for a normal save.",
"repeater_tempRadioMinutesInvalid": "1 to {max} minutes",
"@repeater_tempRadioMinutesInvalid": {
"placeholders": {
"max": {
"type": "int"
}
}
},
"repeater_locationSettings": "Location Settings",
"repeater_latitude": "Latitude",
"repeater_latitudeHelper": "Decimal degrees (e.g., 37.7749)",
@ -1522,6 +1657,14 @@
}
}
},
"repeater_cliCommandTimeout": "Command timed out after {seconds} seconds",
"@repeater_cliCommandTimeout": {
"placeholders": {
"seconds": {
"type": "String"
}
}
},
"repeater_cliQuickGetName": "Get Name",
"repeater_cliQuickGetRadio": "Get Radio",
"repeater_cliQuickGetTx": "Get TX",
@ -2396,6 +2539,56 @@
"contacts_floodAdvert": "Flood Advert",
"contacts_copyAdvertToClipboard": "Copy Advert to Clipboard",
"contacts_addContactFromClipboard": "Add Contact from Clipboard",
"contacts_addByKey": "Add by public key",
"contacts_addByKeyDescription": "Add someone using the public key they gave you. Works even if you have never heard their advert.",
"contacts_publicKeyLabel": "Public key",
"contacts_publicKeyHelper": "64 hex characters, or paste a meshcore:// contact link",
"contacts_publicKeyInvalid": "Enter 64 hex characters, or a meshcore:// contact link",
"contacts_nameLabel": "Name",
"contacts_typeLabel": "Type",
"contacts_addByKeyUnverifiedNote": "Not confirmed on air yet. The name is whatever you type here until this node sends an advert.",
"contacts_addByKeyAdded": "Added {name}",
"@contacts_addByKeyAdded": {
"placeholders": {
"name": {
"type": "String"
}
}
},
"contacts_addByKeyFailed": "Could not add the contact. Check the radio connection.",
"contacts_myContactQr": "My contact QR",
"contacts_myContactQrInstructions": "Have them scan this, or send them the link below. It works even if they have never heard your advert.",
"contacts_contactLinkCopied": "Contact link copied",
"contacts_qrNeedsConnection": "Connect to a radio first, so the app knows your public key.",
"contacts_scanContactQr": "Scan contact QR",
"contacts_scanContactQrInstructions": "Point the camera at a MeshCore contact QR",
"contacts_invalidContactQr": "That QR is not a MeshCore contact",
"contacts_verifiedByAdvert": "Confirmed on air. This node sent a signed advert.",
"contacts_verifiedByMessage": "Key confirmed. A message with this contact went through, which only works with the matching key.",
"contacts_verifiedKeyOnly": "Added from a key. Nothing has confirmed it on air yet.",
"contacts_lastSeenNever": "Not heard yet",
"contacts_cardAddContact": "Add {name}",
"@contacts_cardAddContact": {
"placeholders": {
"name": {
"type": "String"
}
}
},
"contacts_cardAlreadyAdded": "{name}",
"@contacts_cardAlreadyAdded": {
"placeholders": {
"name": {
"type": "String"
}
}
},
"contacts_cardAlreadyAddedTooltip": "Already in your contacts",
"chat_attachTooltip": "Add to message",
"chat_attachGif": "GIF",
"chat_attachMyContact": "My contact card",
"chat_attachMyContactSubtitle": "Puts your public key in the message so anyone here can add you",
"chat_contactCardNeedsConnection": "Connect to a radio first, so the app knows your public key.",
"contacts_ShareContact": "Copy contact to Clipboard",
"contacts_ShareContactZeroHop": "Share contact by advert",
"contacts_zeroHopContactAdvertSent": "Sent contact by advert.",
@ -2689,5 +2882,312 @@
"batteryOptimizationOpenFailed": "Couldn't open battery settings",
"@batteryOptimizationOpenFailed": {
"description": "Snackbar shown when the battery-optimization settings screen could not be opened (#443)."
},
"stockConfig_selectAll": "Select All",
"@stockConfig_selectAll": {
"description": "Button selecting every section on the stock config export/import screens (#568)."
},
"stockConfig_deselectAll": "Deselect All",
"@stockConfig_deselectAll": {
"description": "Button clearing every section on the stock config export/import screens (#568)."
},
"stockConfig_sectionName": "Name",
"@stockConfig_sectionName": {
"description": "Config section holding the device's display name (#568)."
},
"stockConfig_sectionIdentity": "Private Identity Key",
"@stockConfig_sectionIdentity": {
"description": "Config section holding the node's key pair (#568)."
},
"stockConfig_sectionRadio": "Radio Settings",
"@stockConfig_sectionRadio": {
"description": "Config section holding LoRa radio parameters (#568)."
},
"stockConfig_sectionPosition": "Position Settings",
"@stockConfig_sectionPosition": {
"description": "Config section holding the device's advertised position (#568)."
},
"stockConfig_sectionOther": "Other Settings",
"@stockConfig_sectionOther": {
"description": "Config section holding miscellaneous device preferences (#568)."
},
"stockConfig_sectionAutoAdd": "Auto Add Settings",
"@stockConfig_sectionAutoAdd": {
"description": "Config section holding automatic contact-add preferences (#568)."
},
"stockConfig_sectionChannels": "Channels ({count})",
"@stockConfig_sectionChannels": {
"description": "Config section holding channels, with how many there are (#568).",
"placeholders": { "count": { "type": "int" } }
},
"stockConfig_sectionContacts": "Contacts ({count})",
"@stockConfig_sectionContacts": {
"description": "Config section holding contacts, with how many there are (#568).",
"placeholders": { "count": { "type": "int" } }
},
"stockConfig_identityWarning": "Your private key must be kept secret. It should only be exported as a backup.",
"@stockConfig_identityWarning": {
"description": "Warning shown beside the identity section when exporting (#568)."
},
"stockConfig_publicKeyLabel": "Public Key: {key}",
"@stockConfig_publicKeyLabel": {
"description": "Abbreviated public key shown under the identity section (#568).",
"placeholders": { "key": { "type": "String" } }
},
"stockConfig_privateKeyHidden": "Private Key: hidden",
"@stockConfig_privateKeyHidden": {
"description": "Placeholder shown instead of the private key, which is never displayed (#568)."
},
"exportConfig_title": "Export Config",
"@exportConfig_title": {
"description": "Title of the stock config export screen (#574)."
},
"exportConfig_instruction": "Please select data to export.",
"@exportConfig_instruction": {
"description": "Banner instructing the user to pick sections to export (#574)."
},
"exportConfig_allChannels": "All channels will be exported.",
"@exportConfig_allChannels": {
"description": "Note that channels export as a whole, with no per-channel choice (#574)."
},
"exportConfig_allContacts": "All contacts will be exported.",
"@exportConfig_allContacts": {
"description": "Note that contacts export as a whole, with no per-contact choice (#574)."
},
"exportConfig_nothingSelected": "Select at least one section to export.",
"@exportConfig_nothingSelected": {
"description": "Shown when the user tries to export with every section unchecked (#574)."
},
"exportConfig_lossyNotice": "This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.",
"@exportConfig_lossyNotice": {
"description": "Explains that an export drops Offband-only contact fields (#574)."
},
"exportConfig_omittedTitle": "Some sections could not be exported",
"@exportConfig_omittedTitle": {
"description": "Title of the dialog listing sections that could not be gathered (#574)."
},
"exportConfig_omittedUnsupported": "{section}: this radio's firmware was built without it.",
"@exportConfig_omittedUnsupported": {
"description": "Reason line when firmware lacks the feature entirely, so retrying cannot help (#574).",
"placeholders": { "section": { "type": "String" } }
},
"exportConfig_omittedNoReply": "{section}: the device did not respond.",
"@exportConfig_omittedNoReply": {
"description": "Reason line when the device did not answer in time (#574).",
"placeholders": { "section": { "type": "String" } }
},
"exportConfig_omittedRejected": "{section}: the device refused the request.",
"@exportConfig_omittedRejected": {
"description": "Reason line when the device refused the request (#574).",
"placeholders": { "section": { "type": "String" } }
},
"exportConfig_omittedUnavailable": "{section}: the device has not reported this yet.",
"@exportConfig_omittedUnavailable": {
"description": "Reason line when the value is not known to the app yet (#574).",
"placeholders": { "section": { "type": "String" } }
},
"exportConfig_exportAnyway": "Export anyway",
"@exportConfig_exportAnyway": {
"description": "Confirms writing the file even though some sections are missing (#574)."
},
"exportConfig_cancel": "Cancel",
"@exportConfig_cancel": {
"description": "Dismisses the export without writing a file (#574)."
},
"exportConfig_shareSubject": "MeshCore config",
"@exportConfig_shareSubject": {
"description": "Subject line used when sharing an exported config file (#574)."
},
"exportConfig_failed": "Export failed: {message}",
"@exportConfig_failed": {
"description": "Snackbar shown when writing the export file failed (#574).",
"placeholders": { "message": { "type": "String" } }
},
"exportConfig_notConnected": "Connect to a device before exporting.",
"@exportConfig_notConnected": {
"description": "Shown when the export screen has no connected radio to read from (#574)."
},
"importConfig_title": "Import Config",
"@importConfig_title": {
"description": "Title of the stock config import screen (#576)."
},
"importConfig_instruction": "Please select data to import.",
"@importConfig_instruction": {
"description": "Banner instructing the user to pick which sections to import (#576)."
},
"importConfig_chooseFile": "Choose a config file",
"@importConfig_chooseFile": {
"description": "Button that opens the file picker to load a config file (#576)."
},
"importConfig_identityWarning": "Importing this private key will overwrite your current identity.",
"@importConfig_identityWarning": {
"description": "Warning under the identity section, matching the wording stock uses (#576)."
},
"importConfig_channelsNote": "New channels will be added. Existing channels will not change.",
"@importConfig_channelsNote": {
"description": "Explains the additive channel rule, matching stock's wording (#576)."
},
"importConfig_contactsNote": "New contacts will be added. Existing contacts will be updated.",
"@importConfig_contactsNote": {
"description": "Explains the contact upsert rule, matching stock's wording (#576)."
},
"importConfig_nothingSelected": "Select at least one section to import.",
"@importConfig_nothingSelected": {
"description": "Shown when the user confirms with nothing checked (#576)."
},
"importConfig_notConnected": "Connect to a device before importing.",
"@importConfig_notConnected": {
"description": "Shown when there is no connected radio to import into (#576)."
},
"importConfig_parseFailed": "That file is not a MeshCore config. {message}",
"@importConfig_parseFailed": {
"description": "Shown when the chosen file could not be parsed (#576).",
"placeholders": { "message": { "type": "String" } }
},
"importConfig_confirmIdentityTitle": "Overwrite this node's identity?",
"@importConfig_confirmIdentityTitle": {
"description": "Title of the confirmation shown before a destructive identity import (#576)."
},
"importConfig_confirmIdentityBody": "The node's current identity will be replaced with the one in this file, and every contact's record of this node becomes stale. This cannot be undone except by importing the previous key.",
"@importConfig_confirmIdentityBody": {
"description": "Body of the destructive identity import confirmation (#576)."
},
"importConfig_confirmIdentityAccept": "Overwrite identity",
"@importConfig_confirmIdentityAccept": {
"description": "Confirms the destructive identity import (#576)."
},
"importConfig_cancel": "Cancel",
"@importConfig_cancel": {
"description": "Dismisses a config import confirmation (#576)."
},
"importConfig_resultTitle": "Import finished",
"@importConfig_resultTitle": {
"description": "Title of the dialog summarising what an import did (#576)."
},
"importConfig_resultCounts": "Sent {contacts} contacts and {channels} channels to the device.",
"@importConfig_resultCounts": {
"description": "Summary counts after an import. Deliberately says sent, not applied: apart from identity these commands are not confirmed by the device yet (#576).",
"placeholders": {
"contacts": { "type": "int" },
"channels": { "type": "int" }
}
},
"importConfig_resultSkippedHeading": "Channels not imported",
"@importConfig_resultSkippedHeading": {
"description": "Heading above the list of channels that were skipped (#576)."
},
"importConfig_resultFailedHeading": "Sections not applied",
"@importConfig_resultFailedHeading": {
"description": "Heading above the list of sections that could not be applied (#576)."
},
"importConfig_reasonAlreadyPresent": "already on this device, so it was left unchanged",
"@importConfig_reasonAlreadyPresent": {
"description": "Skip reason: stock never overwrites an existing channel (#576)."
},
"importConfig_reasonNoFreeSlot": "no free channel slot on the device",
"@importConfig_reasonNoFreeSlot": {
"description": "Skip reason: every channel slot is occupied (#576)."
},
"importConfig_reasonAbsentFromFile": "not present in this file",
"@importConfig_reasonAbsentFromFile": {
"description": "Failure reason: the file did not contain the section (#576)."
},
"importConfig_reasonNoReply": "the device did not respond",
"@importConfig_reasonNoReply": {
"description": "Failure reason: no answer from the device (#576)."
},
"importConfig_reasonUnsupported": "this radio's firmware was built without it",
"@importConfig_reasonUnsupported": {
"description": "Failure reason: firmware lacks the feature entirely (#576)."
},
"importConfig_reasonRejected": "the device refused it",
"@importConfig_reasonRejected": {
"description": "Failure reason: the device refused the request (#576)."
},
"importConfig_reasonNotWritable": "this app cannot write every value in it",
"@importConfig_reasonNotWritable": {
"description": "Failure reason: no supported way to write the value (#576)."
},
"importConfig_entryLine": "{item}: {reason}",
"@importConfig_entryLine": {
"description": "One line pairing a channel or section with why it was skipped (#576).",
"placeholders": {
"item": { "type": "String" },
"reason": { "type": "String" }
}
},
"importConfig_close": "Close",
"@importConfig_close": {
"description": "Dismisses the import result dialog (#576)."
},
"settings_exportConfig": "Export Config",
"@settings_exportConfig": {
"description": "Settings entry opening the config export screen (#568)."
},
"settings_importConfig": "Import Config",
"@settings_importConfig": {
"description": "Settings entry opening the config import screen (#568)."
},
"settings_configBackupSubtitle": "Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.",
"@settings_configBackupSubtitle": {
"description": "Explains what the config export and import entries do (#568)."
},
"contactSyncShortfallTitle": "Contact sync incomplete",
"@contactSyncShortfallTitle": {
"description": "Persistent banner title when the radio sent fewer contacts than it reported (#668)."
},
"contactSyncShortfallBody": "The radio reported {declared} contacts; after checking again the app has {received}. Your saved contacts were kept.",
"@contactSyncShortfallBody": {
"description": "Persistent banner body for a short contact sync (#668).",
"placeholders": {
"declared": {
"type": "int"
},
"received": {
"type": "int"
}
}
},
"contactSyncShortfallBodyNoTotal": "The radio did not report how many contacts it holds; after checking again the app has {received}. Your saved contacts were kept.",
"@contactSyncShortfallBodyNoTotal": {
"description": "Persistent banner body for a contact sync whose total the radio did not report (#668).",
"placeholders": {
"received": {
"type": "int"
}
}
},
"contactSyncDecisionTitle": "Contact sync still incomplete",
"@contactSyncDecisionTitle": {
"description": "Dialog title after the automatic retry of a short contact sync was also short (#668)."
},
"contactSyncDecisionBody": "After checking again the app still has only {received} of the radio's contacts. Keep your saved contacts, or use the radio's list? Using the radio's list removes {removed} contacts from this app.",
"@contactSyncDecisionBody": {
"description": "Dialog body asking whether to keep saved contacts or accept the radio's shorter list (#668).",
"placeholders": {
"received": {
"type": "int"
},
"removed": {
"type": "int"
}
}
},
"contactSyncKeep": "Keep my contacts",
"@contactSyncKeep": {
"description": "Default dialog action: keep the saved contact list after a short sync (#668)."
},
"contactSyncUseRadio": "Use the radio's list",
"@contactSyncUseRadio": {
"description": "Dialog action: replace the saved contacts with the radio's shorter list (#668)."
},
"contactSyncConfirmedGone": "{count, plural, =1{1 saved contact is no longer on the radio.} other{{count} saved contacts are no longer on the radio.}}",
"@contactSyncConfirmedGone": {
"description": "Extra sentence on the short-sync banner and dialog: saved contacts the radio answered 'not found' for (#764).",
"placeholders": {
"count": {
"type": "int"
}
}
}
}

@ -640,6 +640,36 @@ abstract class AppLocalizations {
/// **'Please turn on Bluetooth to scan for devices'**
String get scanner_bluetoothOffMessage;
/// Human-readable text for an Android GATT 133 connect failure after the bounded retry also failed (#698).
///
/// In en, this message translates to:
/// **'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.'**
String get scanner_connectFailedTransient;
/// Human-readable text for a connect timeout (#698).
///
/// In en, this message translates to:
/// **'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.'**
String get scanner_connectFailedTimeout;
/// Human-readable fallback for any other connect failure; the raw exception goes to the log only (#522/#698).
///
/// In en, this message translates to:
/// **'Could not connect to the radio. Details are in the App Debug Log.'**
String get scanner_connectFailedGeneric;
/// Persistent banner title when a BLE disconnect was never confirmed by the OS, so the radio may stay latched and stop advertising (#697).
///
/// In en, this message translates to:
/// **'Radio may still be held by this device'**
String get scanner_bleReleaseWarning;
/// Persistent banner body naming the recovery for an unconfirmed BLE release (#697).
///
/// In en, this message translates to:
/// **'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.'**
String get scanner_bleReleaseWarningMessage;
/// No description provided for @scanner_chromeRequired.
///
/// In en, this message translates to:
@ -1090,6 +1120,72 @@ abstract class AppLocalizations {
/// **'Debug'**
String get settings_debug;
/// No description provided for @settings_experimental.
///
/// In en, this message translates to:
/// **'Experimental'**
String get settings_experimental;
/// No description provided for @settings_experimentalSubtitle.
///
/// In en, this message translates to:
/// **'Advanced and in-development features'**
String get settings_experimentalSubtitle;
/// No description provided for @settings_experimentalDescription.
///
/// In en, this message translates to:
/// **'These features are experimental and may change or be removed at any time. They default to off.'**
String get settings_experimentalDescription;
/// No description provided for @settings_coreScopeObserverCount.
///
/// In en, this message translates to:
/// **'CoreScope observer counts'**
String get settings_coreScopeObserverCount;
/// No description provided for @settings_coreScopeObserverCountSubtitle.
///
/// In en, this message translates to:
/// **'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.'**
String get settings_coreScopeObserverCountSubtitle;
/// No description provided for @settings_coreScopeObserverCountUnsupported.
///
/// In en, this message translates to:
/// **'Requires a firmware build with packet-hash support (v22+).'**
String get settings_coreScopeObserverCountUnsupported;
/// No description provided for @settings_experimentalDisable.
///
/// In en, this message translates to:
/// **'Disable experimental features'**
String get settings_experimentalDisable;
/// No description provided for @settings_experimentalDisableSubtitle.
///
/// In en, this message translates to:
/// **'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.'**
String get settings_experimentalDisableSubtitle;
/// No description provided for @settings_experimentalUnlocked.
///
/// In en, this message translates to:
/// **'Experimental features unlocked'**
String get settings_experimentalUnlocked;
/// No description provided for @settings_experimentalAlreadyUnlocked.
///
/// In en, this message translates to:
/// **'Experimental features are already unlocked'**
String get settings_experimentalAlreadyUnlocked;
/// No description provided for @settings_experimentalCountdown.
///
/// In en, this message translates to:
/// **'{count} more taps to unlock experimental features'**
String settings_experimentalCountdown(int count);
/// No description provided for @settings_companionDebugLog.
///
/// In en, this message translates to:
@ -1129,21 +1225,57 @@ abstract class AppLocalizations {
/// No description provided for @settings_aboutLegalese.
///
/// In en, this message translates to:
/// **'2026 MeshCore Open Source Project'**
/// **'© 2026 Offband. Based on MeshCore Open by zjs81, MIT licensed.'**
String get settings_aboutLegalese;
/// No description provided for @settings_aboutDescription.
///
/// In en, this message translates to:
/// **'An open-source Flutter client for MeshCore LoRa mesh networking devices.'**
/// **'Offband Meshcore is an open-source client for MeshCore LoRa mesh networking devices.'**
String get settings_aboutDescription;
/// No description provided for @settings_aboutLicenses.
///
/// In en, this message translates to:
/// **'View licenses'**
String get settings_aboutLicenses;
/// No description provided for @settings_aboutWebsite.
///
/// In en, this message translates to:
/// **'Offband website'**
String get settings_aboutWebsite;
/// No description provided for @settings_aboutPlayStore.
///
/// In en, this message translates to:
/// **'Google Play'**
String get settings_aboutPlayStore;
/// No description provided for @settings_aboutDonate.
///
/// In en, this message translates to:
/// **'Donate or sponsor'**
String get settings_aboutDonate;
/// No description provided for @settings_aboutLinkFailed.
///
/// In en, this message translates to:
/// **'Could not open the link'**
String get settings_aboutLinkFailed;
/// No description provided for @settings_aboutOpenMeteoAttribution.
///
/// In en, this message translates to:
/// **'LOS elevation data: Open-Meteo (CC BY 4.0)'**
String get settings_aboutOpenMeteoAttribution;
/// No description provided for @settings_aboutPresetsAttribution.
///
/// In en, this message translates to:
/// **'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.'**
String get settings_aboutPresetsAttribution;
/// No description provided for @settings_infoName.
///
/// In en, this message translates to:
@ -1234,6 +1366,48 @@ abstract class AppLocalizations {
/// **'Presets'**
String get settings_presets;
/// No description provided for @settings_presetSourceMeshCore.
///
/// In en, this message translates to:
/// **'MeshCore'**
String get settings_presetSourceMeshCore;
/// No description provided for @settings_presetSourceOffband.
///
/// In en, this message translates to:
/// **'Offband'**
String get settings_presetSourceOffband;
/// No description provided for @settings_presetsRefresh.
///
/// In en, this message translates to:
/// **'Update presets'**
String get settings_presetsRefresh;
/// No description provided for @settings_presetsUpdating.
///
/// In en, this message translates to:
/// **'Updating presets...'**
String get settings_presetsUpdating;
/// No description provided for @settings_presetsUpdateFailed.
///
/// In en, this message translates to:
/// **'Couldn\'t update presets. Showing the saved list.'**
String get settings_presetsUpdateFailed;
/// No description provided for @settings_presetsUpdatedAt.
///
/// In en, this message translates to:
/// **'Presets updated {date}'**
String settings_presetsUpdatedAt(String date);
/// No description provided for @settings_presetsBundled.
///
/// In en, this message translates to:
/// **'Presets included with this version of the app'**
String get settings_presetsBundled;
/// No description provided for @settings_frequency.
///
/// In en, this message translates to:
@ -2008,6 +2182,12 @@ abstract class AppLocalizations {
/// **'Manage Repeater'**
String get contacts_manageRepeater;
/// No description provided for @contacts_manageSensor.
///
/// In en, this message translates to:
/// **'Manage Sensor'**
String get contacts_manageSensor;
/// No description provided for @contacts_manageRoom.
///
/// In en, this message translates to:
@ -2650,6 +2830,30 @@ abstract class AppLocalizations {
/// **'Message too long (max {maxBytes} bytes).'**
String chat_messageTooLong(int maxBytes);
/// No description provided for @composerBudgetBlockedTitle.
///
/// In en, this message translates to:
/// **'Can\'t send messages on this connection'**
String get composerBudgetBlockedTitle;
/// No description provided for @composerBudgetLimitedTitle.
///
/// In en, this message translates to:
/// **'Only {maxBytes} characters will fit'**
String composerBudgetLimitedTitle(int maxBytes);
/// No description provided for @composerBudgetBluetoothCause.
///
/// In en, this message translates to:
/// **'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.'**
String get composerBudgetBluetoothCause;
/// No description provided for @composerBudgetGenericCause.
///
/// In en, this message translates to:
/// **'The connection to the radio left no room for message text. Try reconnecting.'**
String get composerBudgetGenericCause;
/// No description provided for @chat_messageCopied.
///
/// In en, this message translates to:
@ -3016,6 +3220,78 @@ abstract class AppLocalizations {
/// **'Heard {count, plural, =1{1 repeat} other{{count} repeats}}'**
String channel_heardTooltip(int count);
/// No description provided for @channel_coreScopeTooltip.
///
/// In en, this message translates to:
/// **'Seen by {count, plural, =1{1 CoreScope observer} other{{count} CoreScope observers}}'**
String channel_coreScopeTooltip(int count);
/// No description provided for @channel_coreScopeRefresh.
///
/// In en, this message translates to:
/// **'Refresh CoreScope observers'**
String get channel_coreScopeRefresh;
/// No description provided for @channel_coreScopeRefreshFailed.
///
/// In en, this message translates to:
/// **'CoreScope unreachable'**
String get channel_coreScopeRefreshFailed;
/// No description provided for @channel_coreScopeNotFound.
///
/// In en, this message translates to:
/// **'Not seen by CoreScope yet'**
String get channel_coreScopeNotFound;
/// No description provided for @channel_coreScopeCounts.
///
/// In en, this message translates to:
/// **'{observers, plural, =1{1 observer} other{{observers} observers}} · {observations} observations'**
String channel_coreScopeCounts(int observers, int observations);
/// No description provided for @channel_senderNameUnknown.
///
/// In en, this message translates to:
/// **'No node known by that name'**
String get channel_senderNameUnknown;
/// No description provided for @channel_senderNameUnknownHint.
///
/// In en, this message translates to:
/// **'Adding needs an advert from this node'**
String get channel_senderNameUnknownHint;
/// No description provided for @channel_senderAlreadyContact.
///
/// In en, this message translates to:
/// **'Already in contacts'**
String get channel_senderAlreadyContact;
/// No description provided for @channel_senderMultipleMatches.
///
/// In en, this message translates to:
/// **'{count} nodes use this name'**
String channel_senderMultipleMatches(int count);
/// No description provided for @channel_senderAddNotConnected.
///
/// In en, this message translates to:
/// **'Not connected to a radio, so this sender can\'t be added yet'**
String get channel_senderAddNotConnected;
/// No description provided for @channel_senderAddFailed.
///
/// In en, this message translates to:
/// **'Couldn\'t add this sender: {error}'**
String channel_senderAddFailed(String error);
/// No description provided for @channel_senderCandidate.
///
/// In en, this message translates to:
/// **'{keyPrefix} · {type}'**
String channel_senderCandidate(String keyPrefix, String type);
/// No description provided for @chat_successes.
///
/// In en, this message translates to:
@ -4418,6 +4694,36 @@ abstract class AppLocalizations {
/// **'Coding Rate'**
String get repeater_codingRate;
/// No description provided for @repeater_tempRadio.
///
/// In en, this message translates to:
/// **'Apply temporarily'**
String get repeater_tempRadio;
/// No description provided for @repeater_tempRadioSubtitle.
///
/// In en, this message translates to:
/// **'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.'**
String get repeater_tempRadioSubtitle;
/// No description provided for @repeater_tempRadioMinutes.
///
/// In en, this message translates to:
/// **'Duration (minutes)'**
String get repeater_tempRadioMinutes;
/// No description provided for @repeater_tempRadioPathHashNote.
///
/// In en, this message translates to:
/// **'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.'**
String get repeater_tempRadioPathHashNote;
/// No description provided for @repeater_tempRadioMinutesInvalid.
///
/// In en, this message translates to:
/// **'1 to {max} minutes'**
String repeater_tempRadioMinutesInvalid(int max);
/// No description provided for @repeater_locationSettings.
///
/// In en, this message translates to:
@ -5006,6 +5312,12 @@ abstract class AppLocalizations {
/// **'Error: {error}'**
String repeater_cliCommandError(String error);
/// No description provided for @repeater_cliCommandTimeout.
///
/// In en, this message translates to:
/// **'Command timed out after {seconds} seconds'**
String repeater_cliCommandTimeout(String seconds);
/// No description provided for @repeater_cliQuickGetName.
///
/// In en, this message translates to:
@ -7258,6 +7570,180 @@ abstract class AppLocalizations {
/// **'Add Contact from Clipboard'**
String get contacts_addContactFromClipboard;
/// No description provided for @contacts_addByKey.
///
/// In en, this message translates to:
/// **'Add by public key'**
String get contacts_addByKey;
/// No description provided for @contacts_addByKeyDescription.
///
/// In en, this message translates to:
/// **'Add someone using the public key they gave you. Works even if you have never heard their advert.'**
String get contacts_addByKeyDescription;
/// No description provided for @contacts_publicKeyLabel.
///
/// In en, this message translates to:
/// **'Public key'**
String get contacts_publicKeyLabel;
/// No description provided for @contacts_publicKeyHelper.
///
/// In en, this message translates to:
/// **'64 hex characters, or paste a meshcore:// contact link'**
String get contacts_publicKeyHelper;
/// No description provided for @contacts_publicKeyInvalid.
///
/// In en, this message translates to:
/// **'Enter 64 hex characters, or a meshcore:// contact link'**
String get contacts_publicKeyInvalid;
/// No description provided for @contacts_nameLabel.
///
/// In en, this message translates to:
/// **'Name'**
String get contacts_nameLabel;
/// No description provided for @contacts_typeLabel.
///
/// In en, this message translates to:
/// **'Type'**
String get contacts_typeLabel;
/// No description provided for @contacts_addByKeyUnverifiedNote.
///
/// In en, this message translates to:
/// **'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.'**
String get contacts_addByKeyUnverifiedNote;
/// No description provided for @contacts_addByKeyAdded.
///
/// In en, this message translates to:
/// **'Added {name}'**
String contacts_addByKeyAdded(String name);
/// No description provided for @contacts_addByKeyFailed.
///
/// In en, this message translates to:
/// **'Could not add the contact. Check the radio connection.'**
String get contacts_addByKeyFailed;
/// No description provided for @contacts_myContactQr.
///
/// In en, this message translates to:
/// **'My contact QR'**
String get contacts_myContactQr;
/// No description provided for @contacts_myContactQrInstructions.
///
/// In en, this message translates to:
/// **'Have them scan this, or send them the link below. It works even if they have never heard your advert.'**
String get contacts_myContactQrInstructions;
/// No description provided for @contacts_contactLinkCopied.
///
/// In en, this message translates to:
/// **'Contact link copied'**
String get contacts_contactLinkCopied;
/// No description provided for @contacts_qrNeedsConnection.
///
/// In en, this message translates to:
/// **'Connect to a radio first, so the app knows your public key.'**
String get contacts_qrNeedsConnection;
/// No description provided for @contacts_scanContactQr.
///
/// In en, this message translates to:
/// **'Scan contact QR'**
String get contacts_scanContactQr;
/// No description provided for @contacts_scanContactQrInstructions.
///
/// In en, this message translates to:
/// **'Point the camera at a MeshCore contact QR'**
String get contacts_scanContactQrInstructions;
/// No description provided for @contacts_invalidContactQr.
///
/// In en, this message translates to:
/// **'That QR is not a MeshCore contact'**
String get contacts_invalidContactQr;
/// No description provided for @contacts_verifiedByAdvert.
///
/// In en, this message translates to:
/// **'Confirmed on air. This node sent a signed advert.'**
String get contacts_verifiedByAdvert;
/// No description provided for @contacts_verifiedByMessage.
///
/// In en, this message translates to:
/// **'Key confirmed. A message with this contact went through, which only works with the matching key.'**
String get contacts_verifiedByMessage;
/// No description provided for @contacts_verifiedKeyOnly.
///
/// In en, this message translates to:
/// **'Added from a key. Nothing has confirmed it on air yet.'**
String get contacts_verifiedKeyOnly;
/// No description provided for @contacts_lastSeenNever.
///
/// In en, this message translates to:
/// **'Not heard yet'**
String get contacts_lastSeenNever;
/// No description provided for @contacts_cardAddContact.
///
/// In en, this message translates to:
/// **'Add {name}'**
String contacts_cardAddContact(String name);
/// No description provided for @contacts_cardAlreadyAdded.
///
/// In en, this message translates to:
/// **'{name}'**
String contacts_cardAlreadyAdded(String name);
/// No description provided for @contacts_cardAlreadyAddedTooltip.
///
/// In en, this message translates to:
/// **'Already in your contacts'**
String get contacts_cardAlreadyAddedTooltip;
/// No description provided for @chat_attachTooltip.
///
/// In en, this message translates to:
/// **'Add to message'**
String get chat_attachTooltip;
/// No description provided for @chat_attachGif.
///
/// In en, this message translates to:
/// **'GIF'**
String get chat_attachGif;
/// No description provided for @chat_attachMyContact.
///
/// In en, this message translates to:
/// **'My contact card'**
String get chat_attachMyContact;
/// No description provided for @chat_attachMyContactSubtitle.
///
/// In en, this message translates to:
/// **'Puts your public key in the message so anyone here can add you'**
String get chat_attachMyContactSubtitle;
/// No description provided for @chat_contactCardNeedsConnection.
///
/// In en, this message translates to:
/// **'Connect to a radio first, so the app knows your public key.'**
String get chat_contactCardNeedsConnection;
/// No description provided for @contacts_ShareContact.
///
/// In en, this message translates to:
@ -8097,6 +8583,402 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'Couldn\'t open battery settings'**
String get batteryOptimizationOpenFailed;
/// Button selecting every section on the stock config export/import screens (#568).
///
/// In en, this message translates to:
/// **'Select All'**
String get stockConfig_selectAll;
/// Button clearing every section on the stock config export/import screens (#568).
///
/// In en, this message translates to:
/// **'Deselect All'**
String get stockConfig_deselectAll;
/// Config section holding the device's display name (#568).
///
/// In en, this message translates to:
/// **'Name'**
String get stockConfig_sectionName;
/// Config section holding the node's key pair (#568).
///
/// In en, this message translates to:
/// **'Private Identity Key'**
String get stockConfig_sectionIdentity;
/// Config section holding LoRa radio parameters (#568).
///
/// In en, this message translates to:
/// **'Radio Settings'**
String get stockConfig_sectionRadio;
/// Config section holding the device's advertised position (#568).
///
/// In en, this message translates to:
/// **'Position Settings'**
String get stockConfig_sectionPosition;
/// Config section holding miscellaneous device preferences (#568).
///
/// In en, this message translates to:
/// **'Other Settings'**
String get stockConfig_sectionOther;
/// Config section holding automatic contact-add preferences (#568).
///
/// In en, this message translates to:
/// **'Auto Add Settings'**
String get stockConfig_sectionAutoAdd;
/// Config section holding channels, with how many there are (#568).
///
/// In en, this message translates to:
/// **'Channels ({count})'**
String stockConfig_sectionChannels(int count);
/// Config section holding contacts, with how many there are (#568).
///
/// In en, this message translates to:
/// **'Contacts ({count})'**
String stockConfig_sectionContacts(int count);
/// Warning shown beside the identity section when exporting (#568).
///
/// In en, this message translates to:
/// **'Your private key must be kept secret. It should only be exported as a backup.'**
String get stockConfig_identityWarning;
/// Abbreviated public key shown under the identity section (#568).
///
/// In en, this message translates to:
/// **'Public Key: {key}'**
String stockConfig_publicKeyLabel(String key);
/// Placeholder shown instead of the private key, which is never displayed (#568).
///
/// In en, this message translates to:
/// **'Private Key: hidden'**
String get stockConfig_privateKeyHidden;
/// Title of the stock config export screen (#574).
///
/// In en, this message translates to:
/// **'Export Config'**
String get exportConfig_title;
/// Banner instructing the user to pick sections to export (#574).
///
/// In en, this message translates to:
/// **'Please select data to export.'**
String get exportConfig_instruction;
/// Note that channels export as a whole, with no per-channel choice (#574).
///
/// In en, this message translates to:
/// **'All channels will be exported.'**
String get exportConfig_allChannels;
/// Note that contacts export as a whole, with no per-contact choice (#574).
///
/// In en, this message translates to:
/// **'All contacts will be exported.'**
String get exportConfig_allContacts;
/// Shown when the user tries to export with every section unchecked (#574).
///
/// In en, this message translates to:
/// **'Select at least one section to export.'**
String get exportConfig_nothingSelected;
/// Explains that an export drops Offband-only contact fields (#574).
///
/// In en, this message translates to:
/// **'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.'**
String get exportConfig_lossyNotice;
/// Title of the dialog listing sections that could not be gathered (#574).
///
/// In en, this message translates to:
/// **'Some sections could not be exported'**
String get exportConfig_omittedTitle;
/// Reason line when firmware lacks the feature entirely, so retrying cannot help (#574).
///
/// In en, this message translates to:
/// **'{section}: this radio\'s firmware was built without it.'**
String exportConfig_omittedUnsupported(String section);
/// Reason line when the device did not answer in time (#574).
///
/// In en, this message translates to:
/// **'{section}: the device did not respond.'**
String exportConfig_omittedNoReply(String section);
/// Reason line when the device refused the request (#574).
///
/// In en, this message translates to:
/// **'{section}: the device refused the request.'**
String exportConfig_omittedRejected(String section);
/// Reason line when the value is not known to the app yet (#574).
///
/// In en, this message translates to:
/// **'{section}: the device has not reported this yet.'**
String exportConfig_omittedUnavailable(String section);
/// Confirms writing the file even though some sections are missing (#574).
///
/// In en, this message translates to:
/// **'Export anyway'**
String get exportConfig_exportAnyway;
/// Dismisses the export without writing a file (#574).
///
/// In en, this message translates to:
/// **'Cancel'**
String get exportConfig_cancel;
/// Subject line used when sharing an exported config file (#574).
///
/// In en, this message translates to:
/// **'MeshCore config'**
String get exportConfig_shareSubject;
/// Snackbar shown when writing the export file failed (#574).
///
/// In en, this message translates to:
/// **'Export failed: {message}'**
String exportConfig_failed(String message);
/// Shown when the export screen has no connected radio to read from (#574).
///
/// In en, this message translates to:
/// **'Connect to a device before exporting.'**
String get exportConfig_notConnected;
/// Title of the stock config import screen (#576).
///
/// In en, this message translates to:
/// **'Import Config'**
String get importConfig_title;
/// Banner instructing the user to pick which sections to import (#576).
///
/// In en, this message translates to:
/// **'Please select data to import.'**
String get importConfig_instruction;
/// Button that opens the file picker to load a config file (#576).
///
/// In en, this message translates to:
/// **'Choose a config file'**
String get importConfig_chooseFile;
/// Warning under the identity section, matching the wording stock uses (#576).
///
/// In en, this message translates to:
/// **'Importing this private key will overwrite your current identity.'**
String get importConfig_identityWarning;
/// Explains the additive channel rule, matching stock's wording (#576).
///
/// In en, this message translates to:
/// **'New channels will be added. Existing channels will not change.'**
String get importConfig_channelsNote;
/// Explains the contact upsert rule, matching stock's wording (#576).
///
/// In en, this message translates to:
/// **'New contacts will be added. Existing contacts will be updated.'**
String get importConfig_contactsNote;
/// Shown when the user confirms with nothing checked (#576).
///
/// In en, this message translates to:
/// **'Select at least one section to import.'**
String get importConfig_nothingSelected;
/// Shown when there is no connected radio to import into (#576).
///
/// In en, this message translates to:
/// **'Connect to a device before importing.'**
String get importConfig_notConnected;
/// Shown when the chosen file could not be parsed (#576).
///
/// In en, this message translates to:
/// **'That file is not a MeshCore config. {message}'**
String importConfig_parseFailed(String message);
/// Title of the confirmation shown before a destructive identity import (#576).
///
/// In en, this message translates to:
/// **'Overwrite this node\'s identity?'**
String get importConfig_confirmIdentityTitle;
/// Body of the destructive identity import confirmation (#576).
///
/// In en, this message translates to:
/// **'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.'**
String get importConfig_confirmIdentityBody;
/// Confirms the destructive identity import (#576).
///
/// In en, this message translates to:
/// **'Overwrite identity'**
String get importConfig_confirmIdentityAccept;
/// Dismisses a config import confirmation (#576).
///
/// In en, this message translates to:
/// **'Cancel'**
String get importConfig_cancel;
/// Title of the dialog summarising what an import did (#576).
///
/// In en, this message translates to:
/// **'Import finished'**
String get importConfig_resultTitle;
/// Summary counts after an import. Deliberately says sent, not applied: apart from identity these commands are not confirmed by the device yet (#576).
///
/// In en, this message translates to:
/// **'Sent {contacts} contacts and {channels} channels to the device.'**
String importConfig_resultCounts(int contacts, int channels);
/// Heading above the list of channels that were skipped (#576).
///
/// In en, this message translates to:
/// **'Channels not imported'**
String get importConfig_resultSkippedHeading;
/// Heading above the list of sections that could not be applied (#576).
///
/// In en, this message translates to:
/// **'Sections not applied'**
String get importConfig_resultFailedHeading;
/// Skip reason: stock never overwrites an existing channel (#576).
///
/// In en, this message translates to:
/// **'already on this device, so it was left unchanged'**
String get importConfig_reasonAlreadyPresent;
/// Skip reason: every channel slot is occupied (#576).
///
/// In en, this message translates to:
/// **'no free channel slot on the device'**
String get importConfig_reasonNoFreeSlot;
/// Failure reason: the file did not contain the section (#576).
///
/// In en, this message translates to:
/// **'not present in this file'**
String get importConfig_reasonAbsentFromFile;
/// Failure reason: no answer from the device (#576).
///
/// In en, this message translates to:
/// **'the device did not respond'**
String get importConfig_reasonNoReply;
/// Failure reason: firmware lacks the feature entirely (#576).
///
/// In en, this message translates to:
/// **'this radio\'s firmware was built without it'**
String get importConfig_reasonUnsupported;
/// Failure reason: the device refused the request (#576).
///
/// In en, this message translates to:
/// **'the device refused it'**
String get importConfig_reasonRejected;
/// Failure reason: no supported way to write the value (#576).
///
/// In en, this message translates to:
/// **'this app cannot write every value in it'**
String get importConfig_reasonNotWritable;
/// One line pairing a channel or section with why it was skipped (#576).
///
/// In en, this message translates to:
/// **'{item}: {reason}'**
String importConfig_entryLine(String item, String reason);
/// Dismisses the import result dialog (#576).
///
/// In en, this message translates to:
/// **'Close'**
String get importConfig_close;
/// Settings entry opening the config export screen (#568).
///
/// In en, this message translates to:
/// **'Export Config'**
String get settings_exportConfig;
/// Settings entry opening the config import screen (#568).
///
/// In en, this message translates to:
/// **'Import Config'**
String get settings_importConfig;
/// Explains what the config export and import entries do (#568).
///
/// In en, this message translates to:
/// **'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.'**
String get settings_configBackupSubtitle;
/// Persistent banner title when the radio sent fewer contacts than it reported (#668).
///
/// In en, this message translates to:
/// **'Contact sync incomplete'**
String get contactSyncShortfallTitle;
/// Persistent banner body for a short contact sync (#668).
///
/// In en, this message translates to:
/// **'The radio reported {declared} contacts; after checking again the app has {received}. Your saved contacts were kept.'**
String contactSyncShortfallBody(int declared, int received);
/// Persistent banner body for a contact sync whose total the radio did not report (#668).
///
/// In en, this message translates to:
/// **'The radio did not report how many contacts it holds; after checking again the app has {received}. Your saved contacts were kept.'**
String contactSyncShortfallBodyNoTotal(int received);
/// Dialog title after the automatic retry of a short contact sync was also short (#668).
///
/// In en, this message translates to:
/// **'Contact sync still incomplete'**
String get contactSyncDecisionTitle;
/// Dialog body asking whether to keep saved contacts or accept the radio's shorter list (#668).
///
/// In en, this message translates to:
/// **'After checking again the app still has only {received} of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes {removed} contacts from this app.'**
String contactSyncDecisionBody(int received, int removed);
/// Default dialog action: keep the saved contact list after a short sync (#668).
///
/// In en, this message translates to:
/// **'Keep my contacts'**
String get contactSyncKeep;
/// Dialog action: replace the saved contacts with the radio's shorter list (#668).
///
/// In en, this message translates to:
/// **'Use the radio\'s list'**
String get contactSyncUseRadio;
/// Extra sentence on the short-sync banner and dialog: saved contacts the radio answered 'not found' for (#764).
///
/// In en, this message translates to:
/// **'{count, plural, =1{1 saved contact is no longer on the radio.} other{{count} saved contacts are no longer on the radio.}}'**
String contactSyncConfirmedGone(int count);
}
class _AppLocalizationsDelegate

@ -290,6 +290,26 @@ class AppLocalizationsBg extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Моля, активирайте Bluetooth, за да сканирате за устройства.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Изисква се браузър Chrome';
@ -540,6 +560,47 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get settings_debug => 'Отстрани';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog =>
'Лог за отстраняване на грешки (за съпътстваща програма)';
@ -571,10 +632,29 @@ class AppLocalizationsBg extends AppLocalizations {
String get settings_aboutDescription =>
'Отворен софтуер за Flutter клиент за MeshCore LoRa мрежови устройства.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'Данни за надморска височина на LOS: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Име';
@ -621,6 +701,31 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get settings_presets => 'Предварителни настройки';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Честота (MHz)';
@ -1071,6 +1176,9 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Управление на Повтарящ се Елемент';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Управление на сървър за стая';
@ -1442,6 +1550,23 @@ class AppLocalizationsBg extends AppLocalizations {
return 'Съобщението е твърде дълго (макс $maxBytes байта).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Съобщението е копирано';
@ -1661,6 +1786,66 @@ class AppLocalizationsBg extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'Успехи';
@ -2472,6 +2657,25 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get repeater_codingRate => 'Такса за кодиране';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Настройки на местоположението';
@ -2821,6 +3025,11 @@ class AppLocalizationsBg extends AppLocalizations {
return 'Грешка: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Получи име';
@ -4214,6 +4423,112 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get contacts_addContactFromClipboard => 'Добави контакт от клипборда';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Копирай контакт в клипборда';
@ -4735,4 +5050,254 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -293,6 +293,26 @@ class AppLocalizationsDe extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Bitte aktivieren Sie Bluetooth, um nach Geräten zu suchen.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Chrome Browser erforderlich';
@ -537,6 +557,47 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get settings_debug => 'Fehlerbehebung';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog =>
'Debug-Protokoll für die Begleitsoftware';
@ -566,10 +627,29 @@ class AppLocalizationsDe extends AppLocalizations {
String get settings_aboutDescription =>
'Ein Open-Source-Flutter-Client für MeshCore LoRa-Meshnetzwerkgeräte.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'LOS-Höhendaten: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Name';
@ -616,6 +696,31 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get settings_presets => 'Voreinstellungen';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Frequenz (MHz)';
@ -1066,6 +1171,9 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Repeater verwalten';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Raum-Server verwalten';
@ -1440,6 +1548,23 @@ class AppLocalizationsDe extends AppLocalizations {
return 'Nachricht ist zu lang (max $maxBytes Bytes).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Nachricht kopiert';
@ -1659,6 +1784,66 @@ class AppLocalizationsDe extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'Erfolgreich';
@ -2467,6 +2652,25 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get repeater_codingRate => 'Kodierungsrate';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Standort Einstellungen';
@ -2824,6 +3028,11 @@ class AppLocalizationsDe extends AppLocalizations {
return 'Fehler: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Name erhalten';
@ -4226,6 +4435,112 @@ class AppLocalizationsDe extends AppLocalizations {
String get contacts_addContactFromClipboard =>
'Kontakt aus Zwischenablage hinzufügen';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Kontakt in die Zwischenablage kopieren';
@ -4752,4 +5067,254 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -287,6 +287,26 @@ class AppLocalizationsEn extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Please turn on Bluetooth to scan for devices';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Chrome Browser Required';
@ -528,6 +548,47 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get settings_debug => 'Debug';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog => 'Companion Debug Log';
@ -550,16 +611,36 @@ class AppLocalizationsEn extends AppLocalizations {
}
@override
String get settings_aboutLegalese => '2026 MeshCore Open Source Project';
String get settings_aboutLegalese =>
'© 2026 Offband. Based on MeshCore Open by zjs81, MIT licensed.';
@override
String get settings_aboutDescription =>
'An open-source Flutter client for MeshCore LoRa mesh networking devices.';
'Offband Meshcore is an open-source client for MeshCore LoRa mesh networking devices.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'LOS elevation data: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Name';
@ -606,6 +687,31 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get settings_presets => 'Presets';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Frequency (MHz)';
@ -1049,6 +1155,9 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Manage Repeater';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Manage Room Server';
@ -1412,6 +1521,23 @@ class AppLocalizationsEn extends AppLocalizations {
return 'Message too long (max $maxBytes bytes).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Message copied';
@ -1629,6 +1755,66 @@ class AppLocalizationsEn extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'successes';
@ -2422,6 +2608,25 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get repeater_codingRate => 'Coding Rate';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Location Settings';
@ -2764,6 +2969,11 @@ class AppLocalizationsEn extends AppLocalizations {
return 'Error: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Get Name';
@ -4147,6 +4357,112 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get contacts_addContactFromClipboard => 'Add Contact from Clipboard';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Copy contact to Clipboard';
@ -4657,4 +4973,254 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -291,6 +291,26 @@ class AppLocalizationsEs extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Por favor, active el Bluetooth para escanear dispositivos.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Navegador Chrome requerido';
@ -538,6 +558,47 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get settings_debug => 'Depurar';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog => 'Registro de depuración asociado';
@ -567,10 +628,29 @@ class AppLocalizationsEs extends AppLocalizations {
String get settings_aboutDescription =>
'Un cliente de código abierto de Flutter para dispositivos de red mesh LoRa de MeshCore.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'Datos de elevación LOS: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Nombre';
@ -617,6 +697,31 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get settings_presets => 'Preajustes';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Frecuencia (MHz)';
@ -1065,6 +1170,9 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Gestionar Repetidor';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Gestionar Servidor de Habitación';
@ -1439,6 +1547,23 @@ class AppLocalizationsEs extends AppLocalizations {
return 'Mensaje demasiado largo (máximo $maxBytes bytes).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Mensaje copiado';
@ -1656,6 +1781,66 @@ class AppLocalizationsEs extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'Éxitos';
@ -2464,6 +2649,25 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get repeater_codingRate => 'Tasa de Programación';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Configuración de Ubicación';
@ -2815,6 +3019,11 @@ class AppLocalizationsEs extends AppLocalizations {
return 'Error: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Obtener Nombre';
@ -4215,6 +4424,112 @@ class AppLocalizationsEs extends AppLocalizations {
String get contacts_addContactFromClipboard =>
'Agregar contacto desde el portapapeles';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Copiar contacto al Portapapeles';
@ -4740,4 +5055,254 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -293,6 +293,26 @@ class AppLocalizationsFr extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Veuillez activer le Bluetooth pour rechercher des appareils.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Navigateur Chrome requis';
@ -542,6 +562,47 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get settings_debug => 'Déboguer';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog => 'Journal de débogage associé';
@ -571,10 +632,29 @@ class AppLocalizationsFr extends AppLocalizations {
String get settings_aboutDescription =>
'Un client Flutter open source pour les appareils de réseau mesh MeshCore LoRa.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'Données d\'élévation LOS : Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Nom';
@ -621,6 +701,31 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get settings_presets => 'Préréglages';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Fréquence (MHz)';
@ -1071,6 +1176,9 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Gérer le répéteur';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Gérer le Room Server';
@ -1444,6 +1552,23 @@ class AppLocalizationsFr extends AppLocalizations {
return 'Message trop long (max $maxBytes octets).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Message copié';
@ -1663,6 +1788,66 @@ class AppLocalizationsFr extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'Succès';
@ -2476,6 +2661,25 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get repeater_codingRate => 'Taux de codage (CR)';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Paramètres de localisation';
@ -2837,6 +3041,11 @@ class AppLocalizationsFr extends AppLocalizations {
return 'Erreur : $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Obtenir le nom';
@ -4237,6 +4446,112 @@ class AppLocalizationsFr extends AppLocalizations {
String get contacts_addContactFromClipboard =>
'Ajouter un contact depuis le presse-papiers';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact =>
'Copier le contact dans le presse-papiers';
@ -4768,4 +5083,254 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -290,6 +290,26 @@ class AppLocalizationsHu extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Kérjük, kapcsolja be a Bluetooth-ot, hogy eszközök keresése lehessen.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Chrome böngésző szükséges';
@ -540,6 +560,47 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get settings_debug => 'Hibakeresés';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog => 'Párhuzamos hibakeresési napló';
@ -569,10 +630,29 @@ class AppLocalizationsHu extends AppLocalizations {
String get settings_aboutDescription =>
'Egy nyílt forráskódú Flutter kliens a MeshCore LoRa hálózati eszközök számára.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'LOS magassági adatok: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Név';
@ -619,6 +699,31 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get settings_presets => 'Előre beállított beállítások';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Frekvencia (MHz)';
@ -1072,6 +1177,9 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Ellenőriző eszköz kezelése';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'A szobai szerver kezelése';
@ -1447,6 +1555,23 @@ class AppLocalizationsHu extends AppLocalizations {
return 'A üzenet túl hosszú (a maximális $maxBytes bájt).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Üzenet másolva';
@ -1668,6 +1793,66 @@ class AppLocalizationsHu extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'sikerek';
@ -2480,6 +2665,25 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get repeater_codingRate => 'Kódolási sebesség';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Helyszínbeállítások';
@ -2828,6 +3032,11 @@ class AppLocalizationsHu extends AppLocalizations {
return 'Hiba: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Kapcsold össze a nevet';
@ -4232,6 +4441,112 @@ class AppLocalizationsHu extends AppLocalizations {
String get contacts_addContactFromClipboard =>
'Adjon hozzá egy kapcsolatot a kiválasztott listából';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Másolja a kapcsolatot a kiválasztóba';
@ -4757,4 +5072,254 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -293,6 +293,26 @@ class AppLocalizationsIt extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Si prega di attivare il Bluetooth per effettuare la scansione dei dispositivi.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Browser Chrome richiesto';
@ -540,6 +560,47 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get settings_debug => 'Risoluzione dei problemi';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog => 'Registro di debug per il supporto';
@ -569,10 +630,29 @@ class AppLocalizationsIt extends AppLocalizations {
String get settings_aboutDescription =>
'Un client Flutter open-source per i dispositivi di rete mesh LoRa Core di MeshCore.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'Dati di elevazione LOS: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Nome';
@ -619,6 +699,31 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get settings_presets => 'Preset';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Frequenza (MHz)';
@ -1067,6 +1172,9 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Gestisci Ripetitore';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Gestisci Server Camera';
@ -1441,6 +1549,23 @@ class AppLocalizationsIt extends AppLocalizations {
return 'Messaggio troppo lungo (massimo $maxBytes byte).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Messaggio copiato';
@ -1658,6 +1783,66 @@ class AppLocalizationsIt extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'successi';
@ -2468,6 +2653,25 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get repeater_codingRate => 'Tasso di Codifica';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Impostazioni Luogo';
@ -2821,6 +3025,11 @@ class AppLocalizationsIt extends AppLocalizations {
return 'Errore: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Ottieni Nome';
@ -4220,6 +4429,112 @@ class AppLocalizationsIt extends AppLocalizations {
String get contacts_addContactFromClipboard =>
'Aggiungere contatto dalla clipboard';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Copia contatto negli Appunti';
@ -4745,4 +5060,254 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -280,6 +280,26 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get scanner_bluetoothOffMessage => 'Bluetoothを有効にして、デバイスを検索してください。';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Chrome ブラウザが必須です';
@ -514,6 +534,47 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get settings_debug => 'デバッグ';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog => '同伴デバッグログ';
@ -542,10 +603,29 @@ class AppLocalizationsJa extends AppLocalizations {
String get settings_aboutDescription =>
'MeshCore LoRaメッシュネットワークデバイス用の、オープンソースのFlutterクライアント。';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'LOS 標高データ:Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => '名前';
@ -592,6 +672,31 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get settings_presets => 'プリセット';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => '周波数 (MHz)';
@ -1019,6 +1124,9 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get contacts_manageRepeater => 'リピーターの管理';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'ルームサーバーの管理';
@ -1378,6 +1486,23 @@ class AppLocalizationsJa extends AppLocalizations {
return 'メッセージが長すぎる($maxBytes バイトを超える)。';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'メッセージがコピーされました';
@ -1593,6 +1718,66 @@ class AppLocalizationsJa extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => '成功事例';
@ -2374,6 +2559,25 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get repeater_codingRate => 'コーディング速度';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => '場所設定';
@ -2701,6 +2905,11 @@ class AppLocalizationsJa extends AppLocalizations {
return 'エラー:$error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => '名前を取得する';
@ -4017,6 +4226,112 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get contacts_addContactFromClipboard => 'クリップボードから連絡先を追加する';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => '連絡先をクリップボードにコピー';
@ -4511,4 +4826,254 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -279,6 +279,26 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get scanner_bluetoothOffMessage => '블루투스를 켜서 장치를 검색해주세요.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => '크롬 브라우저 필요';
@ -514,6 +534,47 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get settings_debug => '디버깅';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog => '동반 디버깅 로그';
@ -542,10 +603,29 @@ class AppLocalizationsKo extends AppLocalizations {
String get settings_aboutDescription =>
'MeshCore LoRa 메시 네트워크 장치를 위한 오픈 소스 Flutter 클라이언트.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'LOS 고도 데이터: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => '이름';
@ -592,6 +672,31 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get settings_presets => '기본 설정';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => '주파수 (MHz)';
@ -1014,6 +1119,9 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get contacts_manageRepeater => '리피터 관리';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => '방 서버 관리';
@ -1373,6 +1481,23 @@ class AppLocalizationsKo extends AppLocalizations {
return '메시지가 너무 길어서 (최대 $maxBytes 바이트).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => '메시지가 복사되었습니다';
@ -1589,6 +1714,66 @@ class AppLocalizationsKo extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => '성공 사례';
@ -2371,6 +2556,25 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get repeater_codingRate => '코딩 속도';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => '위치 설정';
@ -2699,6 +2903,11 @@ class AppLocalizationsKo extends AppLocalizations {
return '오류: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => '이름을 알려주세요';
@ -4019,6 +4228,112 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get contacts_addContactFromClipboard => '복사본에서 연락처 추가';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => '연락처를 복사';
@ -4512,4 +4827,254 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -289,6 +289,26 @@ class AppLocalizationsNl extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Zorg ervoor dat Bluetooth is ingeschakeld om naar apparaten te zoeken.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Chrome-browser vereist';
@ -534,6 +554,47 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get settings_debug => 'Foutopsporing';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog =>
'Debuglog voor aanvullende informatie';
@ -563,10 +624,29 @@ class AppLocalizationsNl extends AppLocalizations {
String get settings_aboutDescription =>
'Een open-source Flutter client voor MeshCore LoRa mesh netwerkapparaten.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'LOS-hoogtegegevens: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Naam';
@ -613,6 +693,31 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get settings_presets => 'Voorgeprogrammeerde instellingen';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Frequentie (MHz)';
@ -1060,6 +1165,9 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Beheer Repeater';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Beheer Ruimte Server';
@ -1429,6 +1537,23 @@ class AppLocalizationsNl extends AppLocalizations {
return 'Bericht is te lang (max $maxBytes bytes).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Bericht gekopieerd';
@ -1646,6 +1771,66 @@ class AppLocalizationsNl extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'Succesvol';
@ -2451,6 +2636,25 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get repeater_codingRate => 'Codeertarief';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Locatie-instellingen';
@ -2801,6 +3005,11 @@ class AppLocalizationsNl extends AppLocalizations {
return 'Fout: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Naam opvragen';
@ -4200,6 +4409,112 @@ class AppLocalizationsNl extends AppLocalizations {
String get contacts_addContactFromClipboard =>
'Contact uit klembord toevoegen';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Contact naar Klembord kopiëren';
@ -4720,4 +5035,254 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -294,6 +294,26 @@ class AppLocalizationsPl extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Prosimy włączyć Bluetooth, aby przeskanować urządzenia.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Wymagana przeglądarka Chrome';
@ -542,6 +562,47 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get settings_debug => 'Naprawianie błędów';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog =>
'Log debugowania (dla pomocy w rozwiązywaniu problemów)';
@ -571,10 +632,29 @@ class AppLocalizationsPl extends AppLocalizations {
String get settings_aboutDescription =>
'Otwartoźródłowy klient Flutter dla urządzeń MeshCore LoRa do sieci mesh.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'Dane wysokościowe LOS: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Nazwa';
@ -621,6 +701,31 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get settings_presets => 'Presety';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Częstotliwość (MHz)';
@ -1077,6 +1182,9 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Zarządzaj przekaźnikiem';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Zarządzaj Serwerem Pokoju';
@ -1451,6 +1559,23 @@ class AppLocalizationsPl extends AppLocalizations {
return 'Wiadomość jest za długa (maksymalnie $maxBytes bajtów).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Wiadomość skopiowana';
@ -1671,6 +1796,66 @@ class AppLocalizationsPl extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'Sukcesy';
@ -2482,6 +2667,25 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get repeater_codingRate => 'Współczynnik kodowania';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Ustawienia Lokalizacji';
@ -2829,6 +3033,11 @@ class AppLocalizationsPl extends AppLocalizations {
return 'Błąd: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Pobierz nazwę';
@ -4230,6 +4439,112 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get contacts_addContactFromClipboard => 'Dodaj kontakt z schowka';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Kopiuj kontakt do schowka';
@ -4757,4 +5072,254 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -292,6 +292,26 @@ class AppLocalizationsPt extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Por favor, ative o Bluetooth para escanear por dispositivos.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Navegador Chrome necessário';
@ -540,6 +560,47 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get settings_debug => 'Depurar';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog => 'Registro de depuração auxiliar';
@ -569,10 +630,29 @@ class AppLocalizationsPt extends AppLocalizations {
String get settings_aboutDescription =>
'Um cliente Flutter de código aberto para dispositivos de rede mesh LoRa Core da MeshCore.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'Dados de elevação LOS: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Nome';
@ -619,6 +699,31 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get settings_presets => 'Configurações pré-definidas';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Frequência (MHz)';
@ -1067,6 +1172,9 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Gerenciar Repetidor';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Gerenciar Servidor de Sala';
@ -1438,6 +1546,23 @@ class AppLocalizationsPt extends AppLocalizations {
return 'Mensagem muito longa (máximo $maxBytes bytes).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Mensagem copiada';
@ -1655,6 +1780,66 @@ class AppLocalizationsPt extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'Sucessos';
@ -2462,6 +2647,25 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get repeater_codingRate => 'Taxa de Codificação';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Configurações de Localização';
@ -2813,6 +3017,11 @@ class AppLocalizationsPt extends AppLocalizations {
return 'Erro: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Obter Nome';
@ -4212,6 +4421,112 @@ class AppLocalizationsPt extends AppLocalizations {
String get contacts_addContactFromClipboard =>
'Adicionar Contato da Área de Transferência';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact =>
'Copiar contato para Área de Transferência';
@ -4733,4 +5048,254 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -292,6 +292,26 @@ class AppLocalizationsRu extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Пожалуйста, включите Bluetooth, чтобы найти устройства.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Требуется браузер Chrome';
@ -539,6 +559,47 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get settings_debug => 'Отладка';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog =>
'Журнал отладки (для сопутствующего приложения)';
@ -568,10 +629,29 @@ class AppLocalizationsRu extends AppLocalizations {
String get settings_aboutDescription =>
'Открытое клиентское приложение на Flutter для устройств MeshCore с LoRa-сетями.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'Данные о высоте LOS: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Имя';
@ -618,6 +698,31 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get settings_presets => 'Пресеты';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Частота (МГц)';
@ -1068,6 +1173,9 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Управление репитером';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Управление сервером комнат';
@ -1439,6 +1547,23 @@ class AppLocalizationsRu extends AppLocalizations {
return 'Сообщение слишком длинное (макс. $maxBytes байт).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Сообщение скопировано';
@ -1659,6 +1784,66 @@ class AppLocalizationsRu extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'успешно';
@ -2468,6 +2653,25 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get repeater_codingRate => 'Коэффициент кодирования';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Настройки местоположения';
@ -2819,6 +3023,11 @@ class AppLocalizationsRu extends AppLocalizations {
return 'Ошибка: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Получить имя';
@ -4222,6 +4431,112 @@ class AppLocalizationsRu extends AppLocalizations {
String get contacts_addContactFromClipboard =>
'Добавить контакт из буфера обмена';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Копировать контакт в буфер обмена';
@ -4751,4 +5066,254 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -291,6 +291,26 @@ class AppLocalizationsSk extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Prosím, zapnite Bluetooth, aby ste mohli skenovať pre zariadenia.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Vyžaduje sa prehliadač Chrome';
@ -534,6 +554,47 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get settings_debug => 'Ladenie';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog =>
'Logovanie pre ladenie (sprievodný log)';
@ -563,10 +624,29 @@ class AppLocalizationsSk extends AppLocalizations {
String get settings_aboutDescription =>
'Otvorený zdrojový Flutter klient pre MeshCore LoRa sieťové zariadenia.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'Údaje o nadmorskej výške LOS: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Meno';
@ -613,6 +693,31 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get settings_presets => 'Prednastavenia';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Frekvencia (MHz)';
@ -1057,6 +1162,9 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Spravovať opakované zoznamy';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Spravovať server miestnosti';
@ -1429,6 +1537,23 @@ class AppLocalizationsSk extends AppLocalizations {
return 'Správa je príliš dlhá (max $maxBytes bytov).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Správa skopírovaná';
@ -1648,6 +1773,66 @@ class AppLocalizationsSk extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'Úspechy';
@ -2454,6 +2639,25 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get repeater_codingRate => 'Rýchlosť kódovania';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Nastavenia polohy';
@ -2800,6 +3004,11 @@ class AppLocalizationsSk extends AppLocalizations {
return 'Chyba: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Zísť meno';
@ -4196,6 +4405,112 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get contacts_addContactFromClipboard => 'Pridať kontakt z schránky';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Kopírovať kontakt do schránky';
@ -4717,4 +5032,254 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -289,6 +289,26 @@ class AppLocalizationsSl extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Prosimo, vklopite Bluetooth, da lahko poiščete naprave.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Zahtevan brskalnik Chrome';
@ -532,6 +552,47 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get settings_debug => 'Odpravljanje napak';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog => 'Log zapis za odpravljanje napak';
@ -560,10 +621,29 @@ class AppLocalizationsSl extends AppLocalizations {
String get settings_aboutDescription =>
'Odprtokodni Flutter klient za naprave za LoRa omrežje MeshCore.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'Podatki o višini LOS: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Ime';
@ -610,6 +690,31 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get settings_presets => 'Prednastavitve';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Frekvenca (MHz)';
@ -1056,6 +1161,9 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Upravljaj Ponovitve';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Upravljajte strežnik sobe';
@ -1427,6 +1535,23 @@ class AppLocalizationsSl extends AppLocalizations {
return 'Pošiljanje sporočila je onemogočeno, saj je preveliko (maksimalno $maxBytes byte-ov).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Sporočilo poslano';
@ -1644,6 +1769,66 @@ class AppLocalizationsSl extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'Uspešni';
@ -2450,6 +2635,25 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get repeater_codingRate => 'Programska hitrost';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Nastavitve lokacije';
@ -2799,6 +3003,11 @@ class AppLocalizationsSl extends AppLocalizations {
return 'Napaka: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Pridobi ime';
@ -4190,6 +4399,112 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get contacts_addContactFromClipboard => 'Dodaj stik iz odložišča';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Kopiraj stik v Odložišče';
@ -4715,4 +5030,254 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -288,6 +288,26 @@ class AppLocalizationsSv extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Vänligen aktivera Bluetooth för att söka efter enheter.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Chrome-webbläsare krävs';
@ -529,6 +549,47 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get settings_debug => 'Felsök';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog => 'Följande felsökningslogg';
@ -558,10 +619,29 @@ class AppLocalizationsSv extends AppLocalizations {
String get settings_aboutDescription =>
'En öppen källkods Flutter-klient för MeshCore LoRa meshnätverksenheter.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'LOS-höjddata: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Namn';
@ -608,6 +688,31 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get settings_presets => 'Fördefinierade inställningar';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Frekvens (MHz)';
@ -1051,6 +1156,9 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Hantera Upprepare';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Hantera Rumserver';
@ -1421,6 +1529,23 @@ class AppLocalizationsSv extends AppLocalizations {
return 'Meddelandet är för långt (max $maxBytes byte).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Meddelandet kopierades';
@ -1639,6 +1764,66 @@ class AppLocalizationsSv extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'framgångar';
@ -2439,6 +2624,25 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get repeater_codingRate => 'Kodningsgrad';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Platsinställningar';
@ -2785,6 +2989,11 @@ class AppLocalizationsSv extends AppLocalizations {
return 'Fel: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Hämta namn';
@ -4169,6 +4378,112 @@ class AppLocalizationsSv extends AppLocalizations {
String get contacts_addContactFromClipboard =>
'Lägg till kontakt från urklipp';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Kopiera kontakt till Urklipp';
@ -4690,4 +5005,254 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -291,6 +291,26 @@ class AppLocalizationsUk extends AppLocalizations {
String get scanner_bluetoothOffMessage =>
'Будь ласка, увімкніть Bluetooth, щоб сканувати пристрої.';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => 'Потрібен браузер Chrome';
@ -536,6 +556,47 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get settings_debug => 'Налагодження';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog =>
'Журнал відлачування (для супутника)';
@ -566,10 +627,29 @@ class AppLocalizationsUk extends AppLocalizations {
String get settings_aboutDescription =>
'Клієнт Flutter з відкритим вихідним кодом для пристроїв мережі MeshCore LoRa.';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'Дані про висоту LOS: Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => 'Ім\'я';
@ -616,6 +696,31 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get settings_presets => 'Попередні налаштування';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => 'Частота (МГц)';
@ -1063,6 +1168,9 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get contacts_manageRepeater => 'Керувати ретранслятором';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => 'Керувати сервером кімнати';
@ -1433,6 +1541,23 @@ class AppLocalizationsUk extends AppLocalizations {
return 'Повідомлення занадто довге (макс. $maxBytes байт).';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => 'Повідомлення скопійовано';
@ -1654,6 +1779,66 @@ class AppLocalizationsUk extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => 'Успішно';
@ -2465,6 +2650,25 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get repeater_codingRate => 'Швидкість кодування';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => 'Налаштування геопозиції';
@ -2817,6 +3021,11 @@ class AppLocalizationsUk extends AppLocalizations {
return 'Помилка: $error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => 'Отримати ім\'я';
@ -4221,6 +4430,112 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get contacts_addContactFromClipboard => 'Додати контакт з буфера';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => 'Копіювати контакт у буфер обміну';
@ -4752,4 +5067,254 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -277,6 +277,26 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get scanner_bluetoothOffMessage => '请开启蓝牙以搜索设备';
@override
String get scanner_connectFailedTransient =>
'The radio refused the connection (a common transient Bluetooth error). It was already retried; wait a few seconds and try again.';
@override
String get scanner_connectFailedTimeout =>
'The connection timed out. Check that the radio is powered, in range, and not already connected to another device.';
@override
String get scanner_connectFailedGeneric =>
'Could not connect to the radio. Details are in the App Debug Log.';
@override
String get scanner_bleReleaseWarning =>
'Radio may still be held by this device';
@override
String get scanner_bleReleaseWarningMessage =>
'The disconnect was not confirmed. If the radio does not reappear, toggle Bluetooth off and on, or force-stop the app.';
@override
String get scanner_chromeRequired => '需要 Chrome 浏览器';
@ -507,6 +527,47 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get settings_debug => '调试';
@override
String get settings_experimental => 'Experimental';
@override
String get settings_experimentalSubtitle =>
'Advanced and in-development features';
@override
String get settings_experimentalDescription =>
'These features are experimental and may change or be removed at any time. They default to off.';
@override
String get settings_coreScopeObserverCount => 'CoreScope observer counts';
@override
String get settings_coreScopeObserverCountSubtitle =>
'On outgoing channel messages, show how many CoreScope observers heard the packet, alongside radio-heard repeats. Needs internet.';
@override
String get settings_coreScopeObserverCountUnsupported =>
'Requires a firmware build with packet-hash support (v22+).';
@override
String get settings_experimentalDisable => 'Disable experimental features';
@override
String get settings_experimentalDisableSubtitle =>
'Turns off all experimental features and hides this section. Unlock again with 7 taps on the Build row.';
@override
String get settings_experimentalUnlocked => 'Experimental features unlocked';
@override
String get settings_experimentalAlreadyUnlocked =>
'Experimental features are already unlocked';
@override
String settings_experimentalCountdown(int count) {
return '$count more taps to unlock experimental features';
}
@override
String get settings_companionDebugLog => '调试日志';
@ -534,10 +595,29 @@ class AppLocalizationsZh extends AppLocalizations {
String get settings_aboutDescription =>
'一个开源的 Flutter 客户端,用于 MeshCore LoRa 无线网络设备。';
@override
String get settings_aboutLicenses => 'View licenses';
@override
String get settings_aboutWebsite => 'Offband website';
@override
String get settings_aboutPlayStore => 'Google Play';
@override
String get settings_aboutDonate => 'Donate or sponsor';
@override
String get settings_aboutLinkFailed => 'Could not open the link';
@override
String get settings_aboutOpenMeteoAttribution =>
'LOS 高程数据:Open-Meteo (CC BY 4.0)';
@override
String get settings_aboutPresetsAttribution =>
'Regional radio presets: MeshCore\'s suggested settings, maintained by Liam Cottle (api.meshcore.nz), with Offband additions.';
@override
String get settings_infoName => '名称';
@ -584,6 +664,31 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get settings_presets => '预设';
@override
String get settings_presetSourceMeshCore => 'MeshCore';
@override
String get settings_presetSourceOffband => 'Offband';
@override
String get settings_presetsRefresh => 'Update presets';
@override
String get settings_presetsUpdating => 'Updating presets...';
@override
String get settings_presetsUpdateFailed =>
'Couldn\'t update presets. Showing the saved list.';
@override
String settings_presetsUpdatedAt(String date) {
return 'Presets updated $date';
}
@override
String get settings_presetsBundled =>
'Presets included with this version of the app';
@override
String get settings_frequency => '频率 (MHz)';
@ -1000,6 +1105,9 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get contacts_manageRepeater => '管理转发节点';
@override
String get contacts_manageSensor => 'Manage Sensor';
@override
String get contacts_manageRoom => '管理房间服务器';
@ -1359,6 +1467,23 @@ class AppLocalizationsZh extends AppLocalizations {
return '消息过长(最多 $maxBytes 字节)';
}
@override
String get composerBudgetBlockedTitle =>
'Can\'t send messages on this connection';
@override
String composerBudgetLimitedTitle(int maxBytes) {
return 'Only $maxBytes characters will fit';
}
@override
String get composerBudgetBluetoothCause =>
'The Bluetooth link negotiated a very small packet size, which leaves no room for message text. Try reconnecting, or connect by USB or Wi-Fi instead.';
@override
String get composerBudgetGenericCause =>
'The connection to the radio left no room for message text. Try reconnecting.';
@override
String get chat_messageCopied => '消息已复制';
@ -1568,6 +1693,66 @@ class AppLocalizationsZh extends AppLocalizations {
return 'Heard $_temp0';
}
@override
String channel_coreScopeTooltip(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count CoreScope observers',
one: '1 CoreScope observer',
);
return 'Seen by $_temp0';
}
@override
String get channel_coreScopeRefresh => 'Refresh CoreScope observers';
@override
String get channel_coreScopeRefreshFailed => 'CoreScope unreachable';
@override
String get channel_coreScopeNotFound => 'Not seen by CoreScope yet';
@override
String channel_coreScopeCounts(int observers, int observations) {
String _temp0 = intl.Intl.pluralLogic(
observers,
locale: localeName,
other: '$observers observers',
one: '1 observer',
);
return '$_temp0 · $observations observations';
}
@override
String get channel_senderNameUnknown => 'No node known by that name';
@override
String get channel_senderNameUnknownHint =>
'Adding needs an advert from this node';
@override
String get channel_senderAlreadyContact => 'Already in contacts';
@override
String channel_senderMultipleMatches(int count) {
return '$count nodes use this name';
}
@override
String get channel_senderAddNotConnected =>
'Not connected to a radio, so this sender can\'t be added yet';
@override
String channel_senderAddFailed(String error) {
return 'Couldn\'t add this sender: $error';
}
@override
String channel_senderCandidate(String keyPrefix, String type) {
return '$keyPrefix · $type';
}
@override
String get chat_successes => '成功';
@ -2330,6 +2515,25 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get repeater_codingRate => '编码速率';
@override
String get repeater_tempRadio => 'Apply temporarily';
@override
String get repeater_tempRadioSubtitle =>
'Uses tempradio: the node switches now and goes back to its saved radio settings after the duration. Nothing is saved on the node.';
@override
String get repeater_tempRadioMinutes => 'Duration (minutes)';
@override
String get repeater_tempRadioPathHashNote =>
'This preset\'s path hash size isn\'t applied with a temporary change: the node can\'t revert it on its own. It stays pending for a normal save.';
@override
String repeater_tempRadioMinutesInvalid(int max) {
return '1 to $max minutes';
}
@override
String get repeater_locationSettings => '位置设置';
@ -2653,6 +2857,11 @@ class AppLocalizationsZh extends AppLocalizations {
return '错误:$error';
}
@override
String repeater_cliCommandTimeout(String seconds) {
return 'Command timed out after $seconds seconds';
}
@override
String get repeater_cliQuickGetName => '获取名称';
@ -3920,6 +4129,112 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get contacts_addContactFromClipboard => '从剪贴板添加联系人';
@override
String get contacts_addByKey => 'Add by public key';
@override
String get contacts_addByKeyDescription =>
'Add someone using the public key they gave you. Works even if you have never heard their advert.';
@override
String get contacts_publicKeyLabel => 'Public key';
@override
String get contacts_publicKeyHelper =>
'64 hex characters, or paste a meshcore:// contact link';
@override
String get contacts_publicKeyInvalid =>
'Enter 64 hex characters, or a meshcore:// contact link';
@override
String get contacts_nameLabel => 'Name';
@override
String get contacts_typeLabel => 'Type';
@override
String get contacts_addByKeyUnverifiedNote =>
'Not confirmed on air yet. The name is whatever you type here until this node sends an advert.';
@override
String contacts_addByKeyAdded(String name) {
return 'Added $name';
}
@override
String get contacts_addByKeyFailed =>
'Could not add the contact. Check the radio connection.';
@override
String get contacts_myContactQr => 'My contact QR';
@override
String get contacts_myContactQrInstructions =>
'Have them scan this, or send them the link below. It works even if they have never heard your advert.';
@override
String get contacts_contactLinkCopied => 'Contact link copied';
@override
String get contacts_qrNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_scanContactQr => 'Scan contact QR';
@override
String get contacts_scanContactQrInstructions =>
'Point the camera at a MeshCore contact QR';
@override
String get contacts_invalidContactQr => 'That QR is not a MeshCore contact';
@override
String get contacts_verifiedByAdvert =>
'Confirmed on air. This node sent a signed advert.';
@override
String get contacts_verifiedByMessage =>
'Key confirmed. A message with this contact went through, which only works with the matching key.';
@override
String get contacts_verifiedKeyOnly =>
'Added from a key. Nothing has confirmed it on air yet.';
@override
String get contacts_lastSeenNever => 'Not heard yet';
@override
String contacts_cardAddContact(String name) {
return 'Add $name';
}
@override
String contacts_cardAlreadyAdded(String name) {
return '$name';
}
@override
String get contacts_cardAlreadyAddedTooltip => 'Already in your contacts';
@override
String get chat_attachTooltip => 'Add to message';
@override
String get chat_attachGif => 'GIF';
@override
String get chat_attachMyContact => 'My contact card';
@override
String get chat_attachMyContactSubtitle =>
'Puts your public key in the message so anyone here can add you';
@override
String get chat_contactCardNeedsConnection =>
'Connect to a radio first, so the app knows your public key.';
@override
String get contacts_ShareContact => '复制联系人信息到剪贴板';
@ -4385,4 +4700,254 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get batteryOptimizationOpenFailed => 'Couldn\'t open battery settings';
@override
String get stockConfig_selectAll => 'Select All';
@override
String get stockConfig_deselectAll => 'Deselect All';
@override
String get stockConfig_sectionName => 'Name';
@override
String get stockConfig_sectionIdentity => 'Private Identity Key';
@override
String get stockConfig_sectionRadio => 'Radio Settings';
@override
String get stockConfig_sectionPosition => 'Position Settings';
@override
String get stockConfig_sectionOther => 'Other Settings';
@override
String get stockConfig_sectionAutoAdd => 'Auto Add Settings';
@override
String stockConfig_sectionChannels(int count) {
return 'Channels ($count)';
}
@override
String stockConfig_sectionContacts(int count) {
return 'Contacts ($count)';
}
@override
String get stockConfig_identityWarning =>
'Your private key must be kept secret. It should only be exported as a backup.';
@override
String stockConfig_publicKeyLabel(String key) {
return 'Public Key: $key';
}
@override
String get stockConfig_privateKeyHidden => 'Private Key: hidden';
@override
String get exportConfig_title => 'Export Config';
@override
String get exportConfig_instruction => 'Please select data to export.';
@override
String get exportConfig_allChannels => 'All channels will be exported.';
@override
String get exportConfig_allContacts => 'All contacts will be exported.';
@override
String get exportConfig_nothingSelected =>
'Select at least one section to export.';
@override
String get exportConfig_lossyNotice =>
'This is the MeshCore stock format, so it cannot carry Offband-only data such as path overrides. Importing this file back into Offband will not restore that data.';
@override
String get exportConfig_omittedTitle => 'Some sections could not be exported';
@override
String exportConfig_omittedUnsupported(String section) {
return '$section: this radio\'s firmware was built without it.';
}
@override
String exportConfig_omittedNoReply(String section) {
return '$section: the device did not respond.';
}
@override
String exportConfig_omittedRejected(String section) {
return '$section: the device refused the request.';
}
@override
String exportConfig_omittedUnavailable(String section) {
return '$section: the device has not reported this yet.';
}
@override
String get exportConfig_exportAnyway => 'Export anyway';
@override
String get exportConfig_cancel => 'Cancel';
@override
String get exportConfig_shareSubject => 'MeshCore config';
@override
String exportConfig_failed(String message) {
return 'Export failed: $message';
}
@override
String get exportConfig_notConnected =>
'Connect to a device before exporting.';
@override
String get importConfig_title => 'Import Config';
@override
String get importConfig_instruction => 'Please select data to import.';
@override
String get importConfig_chooseFile => 'Choose a config file';
@override
String get importConfig_identityWarning =>
'Importing this private key will overwrite your current identity.';
@override
String get importConfig_channelsNote =>
'New channels will be added. Existing channels will not change.';
@override
String get importConfig_contactsNote =>
'New contacts will be added. Existing contacts will be updated.';
@override
String get importConfig_nothingSelected =>
'Select at least one section to import.';
@override
String get importConfig_notConnected =>
'Connect to a device before importing.';
@override
String importConfig_parseFailed(String message) {
return 'That file is not a MeshCore config. $message';
}
@override
String get importConfig_confirmIdentityTitle =>
'Overwrite this node\'s identity?';
@override
String get importConfig_confirmIdentityBody =>
'The node\'s current identity will be replaced with the one in this file, and every contact\'s record of this node becomes stale. This cannot be undone except by importing the previous key.';
@override
String get importConfig_confirmIdentityAccept => 'Overwrite identity';
@override
String get importConfig_cancel => 'Cancel';
@override
String get importConfig_resultTitle => 'Import finished';
@override
String importConfig_resultCounts(int contacts, int channels) {
return 'Sent $contacts contacts and $channels channels to the device.';
}
@override
String get importConfig_resultSkippedHeading => 'Channels not imported';
@override
String get importConfig_resultFailedHeading => 'Sections not applied';
@override
String get importConfig_reasonAlreadyPresent =>
'already on this device, so it was left unchanged';
@override
String get importConfig_reasonNoFreeSlot =>
'no free channel slot on the device';
@override
String get importConfig_reasonAbsentFromFile => 'not present in this file';
@override
String get importConfig_reasonNoReply => 'the device did not respond';
@override
String get importConfig_reasonUnsupported =>
'this radio\'s firmware was built without it';
@override
String get importConfig_reasonRejected => 'the device refused it';
@override
String get importConfig_reasonNotWritable =>
'this app cannot write every value in it';
@override
String importConfig_entryLine(String item, String reason) {
return '$item: $reason';
}
@override
String get importConfig_close => 'Close';
@override
String get settings_exportConfig => 'Export Config';
@override
String get settings_importConfig => 'Import Config';
@override
String get settings_configBackupSubtitle =>
'Back up or restore contacts, channels, radio settings and identity, in the MeshCore stock format.';
@override
String get contactSyncShortfallTitle => 'Contact sync incomplete';
@override
String contactSyncShortfallBody(int declared, int received) {
return 'The radio reported $declared contacts; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String contactSyncShortfallBodyNoTotal(int received) {
return 'The radio did not report how many contacts it holds; after checking again the app has $received. Your saved contacts were kept.';
}
@override
String get contactSyncDecisionTitle => 'Contact sync still incomplete';
@override
String contactSyncDecisionBody(int received, int removed) {
return 'After checking again the app still has only $received of the radio\'s contacts. Keep your saved contacts, or use the radio\'s list? Using the radio\'s list removes $removed contacts from this app.';
}
@override
String get contactSyncKeep => 'Keep my contacts';
@override
String get contactSyncUseRadio => 'Use the radio\'s list';
@override
String contactSyncConfirmedGone(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count saved contacts are no longer on the radio.',
one: '1 saved contact is no longer on the radio.',
);
return '$_temp0';
}
}

@ -30,7 +30,9 @@ import 'services/block_service.dart';
import 'services/window_geometry_service.dart';
import 'services/store_consolidation_service.dart';
import 'services/storage_health_service.dart';
import 'services/radio_preset_service.dart';
import 'storage/drift/blob_store.dart';
import 'widgets/contact_sync_shortfall_banner.dart';
import 'widgets/storage_unavailable_banner.dart';
import 'storage/prefs_manager.dart';
import 'utils/app_logger.dart';
@ -118,6 +120,11 @@ void main() async {
await timeoutPredictionService.initialize();
await blockService.load();
// Regional radio presets (#728): the last good copy, or the one bundled with
// the app. The picker refreshes it from config-profiles when opened.
final radioPresetService = RadioPresetService();
await radioPresetService.load();
// Wire up connector with services
connector.initialize(
retryService: retryService,
@ -157,6 +164,7 @@ void main() async {
uiViewStateService: uiViewStateService,
timeoutPredictionService: timeoutPredictionService,
blockService: blockService,
radioPresetService: radioPresetService,
),
);
}
@ -177,6 +185,18 @@ https://open-meteo.com/en/docs/elevation-api
Attribution license reference:
Creative Commons Attribution 4.0 International (CC BY 4.0)
https://creativecommons.org/licenses/by/4.0/
''',
);
yield const LicenseEntryWithLineBreaks(
<String>['MeshCore suggested radio presets'],
'''
Regional radio presets are MeshCore's suggested settings, maintained by Liam
Cottle for MeshCore and published at https://api.meshcore.nz/api/v1/config.
Offband mirrors them unmodified in OffbandMesh/config-profiles and adds its
own regional presets alongside.
MeshCore: https://github.com/meshcore-dev/MeshCore
Mirror and credit: https://github.com/OffbandMesh/config-profiles#credit
''',
);
});
@ -198,6 +218,7 @@ class MeshCoreApp extends StatelessWidget {
final UiViewStateService uiViewStateService;
final TimeoutPredictionService timeoutPredictionService;
final BlockService blockService;
final RadioPresetService radioPresetService;
const MeshCoreApp({
super.key,
@ -216,6 +237,7 @@ class MeshCoreApp extends StatelessWidget {
required this.uiViewStateService,
required this.timeoutPredictionService,
required this.blockService,
required this.radioPresetService,
});
@override
@ -237,6 +259,7 @@ class MeshCoreApp extends StatelessWidget {
Provider.value(value: mapTileCacheService),
ChangeNotifierProvider.value(value: timeoutPredictionService),
ChangeNotifierProvider.value(value: blockService),
ChangeNotifierProvider.value(value: radioPresetService),
ChangeNotifierProvider(create: (_) => ObserverConfigService(connector)),
],
child: Consumer<AppSettingsService>(
@ -284,7 +307,20 @@ class MeshCoreApp extends StatelessWidget {
child: Consumer<StorageHealthService>(
builder: (context, health, _) => StorageUnavailableBanner(
show: !health.available,
child: child ?? const SizedBox.shrink(),
child: Consumer<MeshCoreConnector>(
builder: (context, connector, _) =>
ContactSyncShortfallBanner(
shortfall: connector.contactSyncShortfall,
decisionPending:
connector.contactSyncDecisionPending,
undeliveredCount:
connector.contactSyncUndeliveredCount,
onDismiss: connector.dismissContactSyncShortfall,
onKeep: connector.resolveContactSyncKeepLocal,
onUseRadio: connector.resolveContactSyncUseRadio,
child: child ?? const SizedBox.shrink(),
),
),
),
),
),

@ -139,6 +139,16 @@ class AppSettings {
final String themeMode;
final String? languageOverride; // null = system default
final bool appDebugLogEnabled;
/// Owner-only Experimental settings section, revealed by a 7-tap gesture on
/// the version row (#509). Not a security boundary, just keeps advanced/
/// me-centric toggles out of the default UI. Persists across restarts.
final bool experimentalUnlocked;
/// Owner-only: show CoreScope-observed repeat counts on outgoing channel
/// messages (#524). Lives under the Experimental section, default off, and
/// only takes effect when the firmware supports the 0xC6 packet-hash query.
final bool coreScopeObserverCountEnabled;
final Map<String, String> batteryChemistryByDeviceId;
final Map<String, String> batteryChemistryByRepeaterId;
final UnitSystem unitSystem;
@ -217,6 +227,8 @@ class AppSettings {
this.themeMode = 'system',
this.languageOverride,
this.appDebugLogEnabled = false,
this.experimentalUnlocked = false,
this.coreScopeObserverCountEnabled = false,
Map<String, String>? batteryChemistryByDeviceId,
Map<String, String>? batteryChemistryByRepeaterId,
this.unitSystem = UnitSystem.metric,
@ -283,6 +295,8 @@ class AppSettings {
'theme_mode': themeMode,
'language_override': languageOverride,
'app_debug_log_enabled': appDebugLogEnabled,
'experimental_unlocked': experimentalUnlocked,
'corescope_observer_count_enabled': coreScopeObserverCountEnabled,
'battery_chemistry_by_device_id': batteryChemistryByDeviceId,
'battery_chemistry_by_repeater_id': batteryChemistryByRepeaterId,
'unit_system': unitSystem.value,
@ -380,6 +394,9 @@ class AppSettings {
themeMode: json['theme_mode'] as String? ?? 'system',
languageOverride: json['language_override'] as String?,
appDebugLogEnabled: json['app_debug_log_enabled'] as bool? ?? false,
experimentalUnlocked: json['experimental_unlocked'] as bool? ?? false,
coreScopeObserverCountEnabled:
json['corescope_observer_count_enabled'] as bool? ?? false,
batteryChemistryByDeviceId:
(json['battery_chemistry_by_device_id'] as Map?)?.map(
(key, value) => MapEntry(key.toString(), value.toString()),
@ -497,6 +514,8 @@ class AppSettings {
String? themeMode,
Object? languageOverride = _unset,
bool? appDebugLogEnabled,
bool? experimentalUnlocked,
bool? coreScopeObserverCountEnabled,
Map<String, String>? batteryChemistryByDeviceId,
Map<String, String>? batteryChemistryByRepeaterId,
UnitSystem? unitSystem,
@ -556,6 +575,9 @@ class AppSettings {
? this.languageOverride
: languageOverride as String?,
appDebugLogEnabled: appDebugLogEnabled ?? this.appDebugLogEnabled,
experimentalUnlocked: experimentalUnlocked ?? this.experimentalUnlocked,
coreScopeObserverCountEnabled:
coreScopeObserverCountEnabled ?? this.coreScopeObserverCountEnabled,
batteryChemistryByDeviceId:
batteryChemistryByDeviceId ?? this.batteryChemistryByDeviceId,
batteryChemistryByRepeaterId:

@ -46,6 +46,20 @@ class ChannelMessage {
final int? channelIndex;
final String messageId;
final String? packetHash;
/// Firmware-reported on-air packet hash for an outgoing channel message
/// (from the 0xC6 query, #524/#611). Distinct from [packetHash], which for
/// received messages is the content hash used for repeat dedup. Used only to
/// query CoreScope for observer counts. Transient (not persisted).
final String? onAirHash;
/// Unique observers CoreScope reports for this message's on-air packet
/// (#524). Null until queried / when the feature is off. Transient.
final int? coreScopeObserverCount;
/// Total observations (sightings) CoreScope reports for the same packet, the
/// "Observations (N)" number in its UI. Transient. See [coreScopeObserverCount].
final int? coreScopeObservationCount;
final String? replyToMessageId;
final String? replyToSenderName;
final String? replyToText;
@ -84,6 +98,9 @@ class ChannelMessage {
this.channelIndex,
String? messageId,
this.packetHash,
this.onAirHash,
this.coreScopeObserverCount,
this.coreScopeObservationCount,
this.replyToMessageId,
this.replyToSenderName,
this.replyToText,
@ -130,6 +147,9 @@ class ChannelMessage {
Uint8List? pathBytes,
List<Uint8List>? pathVariants,
String? packetHash,
String? onAirHash,
int? coreScopeObserverCount,
int? coreScopeObservationCount,
String? replyToMessageId,
String? replyToSenderName,
String? replyToText,
@ -170,6 +190,11 @@ class ChannelMessage {
channelIndex: channelIndex,
messageId: messageId,
packetHash: packetHash ?? this.packetHash,
onAirHash: onAirHash ?? this.onAirHash,
coreScopeObserverCount:
coreScopeObserverCount ?? this.coreScopeObserverCount,
coreScopeObservationCount:
coreScopeObservationCount ?? this.coreScopeObservationCount,
replyToMessageId: replyToMessageId ?? this.replyToMessageId,
replyToSenderName: replyToSenderName ?? this.replyToSenderName,
replyToText: replyToText ?? this.replyToText,
@ -261,6 +286,7 @@ class ChannelMessage {
String text,
String senderName,
int channelIndex, {
int? timestampSecs,
String? originalText,
String? translatedLanguageCode,
String? translationModelId,
@ -272,7 +298,11 @@ class ChannelMessage {
originalText: originalText,
translatedLanguageCode: translatedLanguageCode,
translationModelId: translationModelId,
timestamp: DateTime.now(),
// When supplied, match the exact seconds put in the send frame so the
// 0xC6 (ts, channel) key correlates (#524); else fall back to now.
timestamp: timestampSecs != null
? DateTime.fromMillisecondsSinceEpoch(timestampSecs * 1000)
: DateTime.now(),
isOutgoing: true,
status: ChannelMessageStatus.pending,
pathLength: null,

@ -260,6 +260,213 @@ class Contact {
}
}
/// True once this contact has been confirmed on air by a signed advert.
///
/// [lastSeen] maps to the firmware `last_advert_timestamp`, which a contact
/// created from a bare key deliberately carries as the epoch so the advert
/// replay guard cannot mute it (#627). That same sentinel doubles as the
/// verification signal, for free, and it clears itself the moment a genuine
/// advert arrives and the radio rewrites the field. (#630)
bool get isAdvertVerified => lastSeen.millisecondsSinceEpoch != 0;
/// Reference-app contact share URI for this contact, the inverse of
/// [fromShareUri]. This is what the stock app accepts, so emitting it is
/// what makes Offband cards and QRs importable by non-Offband users. (#626)
///
/// Note this shares only the identity. It carries no path and no advert, so
/// the receiving side gets an unverified stub exactly as we do.
String toShareUri() =>
buildShareUri(publicKeyHex: publicKeyHex, name: name, type: type);
/// Builds the reference-app contact share URI from raw parts.
///
/// Separate from [toShareUri] so the local device can share its OWN identity,
/// which is a public key and a node name rather than a [Contact]. (#626)
///
/// Spaces are percent-encoded rather than emitted as `+`. Both decode to a
/// space, and this matches [Channel.toShareUri], which is already documented
/// as round-tripping with the reference app's QR. (#161)
static String buildShareUri({
required String publicKeyHex,
required String name,
int type = advTypeChat,
}) =>
'meshcore://contact/add'
'?name=${Uri.encodeComponent(name)}'
'&public_key=$publicKeyHex'
'&type=$type';
/// The body of one compact channel share, `<key:type:name>`, captured
/// without its delimiters. `[^>]*` cannot cross a closing bracket, so each
/// card matches individually even when several sit in one message.
static final RegExp _channelShareBody = RegExp(
r'<([0-9a-fA-F]{64}:\d+:[^>]*)>',
);
/// Compact contact share for a CHANNEL message, `<key:type:name>`. (#611)
///
/// This is a second, different format from [toShareUri], and deliberately so.
/// It is what real clients put on the air, observed live in `#test` and
/// `#hamradio`, and it is far cheaper: about 75 bytes against 117 for the
/// equivalent URI. Channel text shares a 160-byte payload with the
/// `Sender: ` prefix, so that difference is airtime, not neatness.
///
/// Use the URI form for a QR, a DM, or an out-of-band paste. Use this for a
/// channel.
String toChannelShare() =>
buildChannelShare(publicKeyHex: publicKeyHex, name: name, type: type);
/// Builds the compact channel share from raw parts, so this device can share
/// its OWN identity without constructing a [Contact]. (#611)
///
/// Angle brackets are the delimiters, so any in [name] are dropped: a name
/// carrying one would truncate the payload for every parser reading it. A
/// colon is left alone, because the name is the final field and a correct
/// parser splits on the first two colons only.
static String buildChannelShare({
required String publicKeyHex,
required String name,
int type = advTypeChat,
}) {
final safeName = name.replaceAll('<', '').replaceAll('>', '');
return '<$publicKeyHex:$type:$safeName>';
}
/// Parses the compact channel share `<key:type:name>`, or null. (#611)
///
/// The counterpart to [toChannelShare]. Without this the app would emit a
/// format it could not itself accept, and a user copying a card out of a
/// channel and pasting it into the add dialog would be rejected.
///
/// Splits on the FIRST TWO colons only. The name is the final field and may
/// contain colons, spaces, emoji and CJK, so splitting on the last colon or
/// on every colon corrupts real names.
///
/// Rendering a received card as a tappable Add Contact affordance is #610 and
/// is separate; this only handles text pasted or scanned into the add flow.
static Contact? fromChannelShare(String text) {
// Tolerate a card embedded in a longer message, which is how it arrives,
// and take the FIRST well-formed one.
//
// Deliberately not a scan from the first `<` to the last `>`: a message
// carrying two cards would then be read as a single span running from the
// first key to the last name and parse as garbage. That is reachable,
// because the add dialog passes raw pasted text straight to here.
// (Gemini review, #610)
final match = _channelShareBody.firstMatch(text);
if (match == null) return null;
final body = match.group(1)!;
final firstColon = body.indexOf(':');
if (firstColon < 0) return null;
final secondColon = body.indexOf(':', firstColon + 1);
if (secondColon < 0) return null;
final keyHex = body.substring(0, firstColon).toLowerCase();
if (keyHex.length != pubKeySize * 2) return null;
final Uint8List publicKey;
try {
publicKey = hex2Uint8List(keyHex);
} on FormatException {
return null;
}
final type = int.tryParse(body.substring(firstColon + 1, secondColon));
if (type == null || type < advTypeChat || type > advTypeSensor) return null;
final name = body.substring(secondColon + 1);
return Contact(
publicKey: publicKey,
name: name.isEmpty ? 'Unknown' : name,
type: type,
flags: 0,
pathLength: -1,
path: Uint8List(0),
// Same unverified stub as the URI path, and for the same reason: the
// epoch keeps the firmware advert replay guard from muting it. (#620)
lastSeen: DateTime.fromMillisecondsSinceEpoch(0),
rawPacket: null,
);
}
/// Parses a contact from the reference-app share URI, or null if malformed.
///
/// `meshcore://contact/add?name=<url-encoded>&public_key=<64 hex>&type=<1-4>`
///
/// Spec: MeshCore firmware `docs/qr_codes.md`, the format the stock mobile
/// app emits for both its contact QR and its share link. The payload is a
/// BARE public key, not a signed advert, so the result is an identity stub:
/// no path, no position, nothing the mesh has confirmed. A QR is this same
/// URI rendered visually, so scanning shares this parser. (#625)
///
/// Returns null for the fork's older `meshcore://<raw advert hex>` form,
/// whose host is the leading hex rather than `contact`. Callers keep handling
/// that separately: it carries a full signed advert and is strictly richer.
static Contact? fromShareUri(String uri) {
final parsed = Uri.tryParse(uri.trim());
if (parsed == null || parsed.scheme != 'meshcore') return null;
if (parsed.host != 'contact') return null;
if (parsed.path.replaceAll('/', '') != 'add') return null;
final keyHex = parsed.queryParameters['public_key'];
if (keyHex == null || keyHex.length != pubKeySize * 2) return null;
final Uint8List publicKey;
try {
publicKey = hex2Uint8List(keyHex);
} on FormatException {
return null;
}
// `type` is optional; stock always emits it, but a key alone is still a
// usable identity. Out-of-range values are rejected rather than clamped:
// in a three-parameter URI an impossible type signals corruption, and
// silently mis-typing a contact is a user-visible defect. Widen this
// deliberately if the spec ever adds a type.
final typeRaw = parsed.queryParameters['type'];
int type = advTypeChat;
if (typeRaw != null && typeRaw.isNotEmpty) {
final parsedType = int.tryParse(typeRaw);
if (parsedType == null ||
parsedType < advTypeChat ||
parsedType > advTypeSensor) {
return null;
}
type = parsedType;
}
final name = parsed.queryParameters['name'];
return Contact(
publicKey: publicKey,
// Matches fromFrame's convention for a nameless contact.
name: (name == null || name.isEmpty) ? 'Unknown' : name,
type: type,
flags: 0,
// Flood until the mesh teaches us a path. Mirrors the firmware's
// OUT_PATH_UNKNOWN for a contact that has never been routed to.
pathLength: -1,
path: Uint8List(0),
// Deliberately the epoch, NOT DateTime.now().
//
// This maps to the firmware's `last_advert_timestamp`, which the advert
// handler compares with `timestamp <= last_advert_timestamp` and treats
// a non-greater value as a replay attack (`BaseChatMesh.cpp:142-145`).
// Stamping "now" would leave this contact permanently deaf to its own
// adverts, because advert timestamps come from the SENDER's clock and
// clocks in the field run years behind. Zero lets any genuine advert win
// and upgrade the stub in place. (#620)
lastSeen: DateTime.fromMillisecondsSinceEpoch(0),
// No advert packet, so this contact cannot be re-shared until one
// arrives. The share path already gates on rawPacket.
rawPacket: null,
);
}
/// True if [uri] is a valid reference-app contact share URI. (#625)
static bool isValidShareUri(String uri) => fromShareUri(uri) != null;
@override
bool operator ==(Object other) =>
other is Contact && publicKeyHex == other.publicKeyHex;

@ -0,0 +1,294 @@
import 'dart:convert';
import 'radio_settings.dart';
// Regional radio presets (#647). Two sources, both published in the
// OffbandMesh/config-profiles repo under radio-presets/ (schema in its SCHEMA.md):
// - meshcore-upstream.json: MeshCore's suggested presets (maintained by Liam
// Cottle), mirrored unmodified; numbers arrive as strings.
// - offband.json: Offband's overlay; numbers are JSON numbers.
// Parsing is resilient: a malformed entry is skipped and counted, never fatal,
// but a file of the wrong format or a newer format_version is rejected.
const String kUpstreamPresetFormat = 'meshcore-upstream-radio-presets';
const String kOverlayPresetFormat = 'offband-radio-presets';
/// Highest format_version this build understands, for both files.
const int kRadioPresetFormatVersion = 1;
enum RadioPresetSource { meshcore, offband }
class RadioPreset {
const RadioPreset({
required this.id,
required this.title,
required this.region,
required this.frequencyMHz,
required this.bandwidth,
required this.spreadingFactor,
required this.codingRate,
required this.source,
this.txPowerDbm,
this.pathHashBytes,
this.offGrid = false,
});
final String id;
final String title;
/// Picker group, e.g. "USA", "Australia", "Off-Grid".
final String region;
final double frequencyMHz;
final LoRaBandwidth bandwidth;
final LoRaSpreadingFactor spreadingFactor;
final LoRaCodingRate codingRate;
final RadioPresetSource source;
/// Null leaves the radio's TX power alone (upstream presets never set it).
final int? txPowerDbm;
/// Path hash size in bytes (1-3), as published. Null leaves the radio's
/// setting alone.
final int? pathHashBytes;
/// A client-repeat (off-grid) frequency rather than a regional preset.
final bool offGrid;
/// Frequency in kHz, the unit CMD_SET_RADIO_PARAMS carries.
int get frequencyKHz => (frequencyMHz * 1000).round();
/// The firmware's path hash mode for [pathHashBytes], or null to leave it.
///
/// Presets publish the size in bytes; firmware takes a zero-based mode
/// (`sendFlood(..., path_hash_mode + 1)`): 1 byte = mode 0, 2 bytes = mode 1,
/// 3 bytes = mode 2. Passing a published 2 straight through would select
/// 3-byte hashes and put the node off its mesh.
int? get pathHashMode => pathHashModeForBytes(pathHashBytes);
}
/// Whether a radio using [radioPathHashBytes] fits [preset]'s path hash
/// (#747). Presets without a path hash fit any radio; one with a size only
/// fits a radio on that size. Without this, presets that differ only by path
/// hash (MeshCore's "Canada" 3-byte and "USA") are indistinguishable.
bool presetPathHashMatches(RadioPreset preset, int radioPathHashBytes) =>
preset.pathHashBytes == null || preset.pathHashBytes == radioPathHashBytes;
/// Zero-based firmware path hash mode for a published size in bytes (1-3).
/// Null for null or out-of-range input, so nothing is sent.
int? pathHashModeForBytes(int? bytes) {
if (bytes == null || bytes < 1 || bytes > 3) return null;
return bytes - 1;
}
class RadioPresetFormatException implements Exception {
const RadioPresetFormatException(this.message);
final String message;
@override
String toString() => 'RadioPresetFormatException: $message';
}
class RadioPresetParseResult {
const RadioPresetParseResult(this.presets, this.skipped);
final List<RadioPreset> presets;
/// Malformed entries left out, so a partly bad file never looks complete.
final int skipped;
}
/// Parse the mirrored MeshCore list (`meshcore-upstream.json`).
RadioPresetParseResult parseUpstreamPresets(String source) {
final doc = _decodeObject(source, kUpstreamPresetFormat);
final srs = doc['suggested_radio_settings'];
final entries = srs is Map ? srs['entries'] : null;
if (entries is! List) {
throw const RadioPresetFormatException(
'suggested_radio_settings.entries must be a list',
);
}
final presets = <RadioPreset>[];
var skipped = 0;
for (final e in entries) {
final preset = e is Map ? _upstreamEntry(e) : null;
if (preset == null) {
skipped++;
} else {
presets.add(preset);
}
}
return RadioPresetParseResult(presets, skipped);
}
/// Parse the Offband overlay (`offband.json`). Retired entries are dropped.
RadioPresetParseResult parseOverlayPresets(String source) {
final doc = _decodeObject(source, kOverlayPresetFormat);
final entries = doc['presets'];
if (entries is! List) {
throw const RadioPresetFormatException('presets must be a list');
}
final presets = <RadioPreset>[];
var skipped = 0;
for (final e in entries) {
if (e is Map && e['status'] == 'retired') continue;
final preset = e is Map ? _overlayEntry(e) : null;
if (preset == null) {
skipped++;
} else {
presets.add(preset);
}
}
return RadioPresetParseResult(presets, skipped);
}
Map _decodeObject(String source, String format) {
final dynamic doc;
try {
doc = jsonDecode(source);
} on FormatException catch (e) {
throw RadioPresetFormatException('not valid JSON: ${e.message}');
}
if (doc is! Map) {
throw const RadioPresetFormatException('must be a JSON object');
}
if (doc['format'] != format) {
throw RadioPresetFormatException('format must be "$format"');
}
final version = doc['format_version'];
if (version is! int) {
throw const RadioPresetFormatException('format_version is required');
}
if (version > kRadioPresetFormatVersion) {
throw RadioPresetFormatException(
'format_version $version is newer than this app supports '
'($kRadioPresetFormatVersion). Update the app.',
);
}
return doc;
}
RadioPreset? _upstreamEntry(Map e) {
final title = e['title'];
if (title is! String || title.trim().isEmpty) return null;
final ns = e['network_settings'];
final hash = ns is Map ? _asInt(ns['path_hash_size']) : null;
if (ns is Map && ns.containsKey('path_hash_size') && !_validHash(hash)) {
return null;
}
return _build(
id: 'meshcore:$title',
title: title,
region: upstreamRegionFor(title),
frequency: _asDouble(e['frequency']),
bandwidthKHz: _asDouble(e['bandwidth']),
sf: _asInt(e['spreading_factor']),
cr: _asInt(e['coding_rate']),
source: RadioPresetSource.meshcore,
pathHashBytes: hash,
);
}
RadioPreset? _overlayEntry(Map e) {
final id = e['id'];
final title = e['title'];
final region = e['region'];
if (id is! String || id.isEmpty) return null;
if (title is! String || title.trim().isEmpty) return null;
if (region is! String || region.trim().isEmpty) return null;
// The overlay is hand-edited: numbers must be JSON numbers, not strings.
for (final key in const [
'frequency',
'bandwidth',
'spreading_factor',
'coding_rate',
]) {
if (e[key] is! num) return null;
}
final tx = e['tx_power'];
if (tx != null && (tx is! int || tx < -9 || tx > 30)) return null;
final hash = e['path_hash_size'];
if (hash != null && (hash is! int || !_validHash(hash))) return null;
final offGrid = e['off_grid'];
if (offGrid != null && offGrid is! bool) return null;
return _build(
id: 'offband:$id',
title: title,
region: region,
frequency: (e['frequency'] as num).toDouble(),
bandwidthKHz: (e['bandwidth'] as num).toDouble(),
sf: _asInt(e['spreading_factor']),
cr: _asInt(e['coding_rate']),
source: RadioPresetSource.offband,
txPowerDbm: tx as int?,
pathHashBytes: hash as int?,
offGrid: offGrid == true,
);
}
RadioPreset? _build({
required String id,
required String title,
required String region,
required double? frequency,
required double? bandwidthKHz,
required int? sf,
required int? cr,
required RadioPresetSource source,
int? txPowerDbm,
int? pathHashBytes,
bool offGrid = false,
}) {
if (frequency == null || frequency < 150 || frequency > 2500) return null;
if (bandwidthKHz == null) return null;
final bwHz = (bandwidthKHz * 1000).round();
final bandwidth = LoRaBandwidth.values
.where((b) => (b.hz - bwHz).abs() <= 50)
.firstOrNull;
final spreading = LoRaSpreadingFactor.values
.where((s) => s.value == sf)
.firstOrNull;
final coding = LoRaCodingRate.values.where((c) => c.value == cr).firstOrNull;
if (bandwidth == null || spreading == null || coding == null) return null;
return RadioPreset(
id: id,
title: title.trim(),
region: region.trim(),
frequencyMHz: frequency,
bandwidth: bandwidth,
spreadingFactor: spreading,
codingRate: coding,
source: source,
txPowerDbm: txPowerDbm,
pathHashBytes: pathHashBytes,
offGrid: offGrid,
);
}
bool _validHash(int? bytes) => bytes != null && bytes >= 1 && bytes <= 3;
double? _asDouble(Object? v) {
if (v is num) return v.toDouble();
if (v is String) return double.tryParse(v.trim());
return null;
}
int? _asInt(Object? v) {
final d = _asDouble(v);
if (d == null || d != d.roundToDouble()) return null;
return d.round();
}
/// The picker group for an upstream title, which carries no region field:
/// the part before " - ", ":" or " (" ("USA - Southern California" -> "USA",
/// "Australia: QLD" -> "Australia", "EU/UK (Narrow)" -> "EU/UK"), otherwise the
/// title without a trailing band number ("Portugal 433" -> "Portugal"),
/// otherwise the whole title ("Costa Rica").
String upstreamRegionFor(String title) {
final t = title.trim();
var cut = t.length;
for (final sep in const [' - ', ':', ' (']) {
final i = t.indexOf(sep);
if (i > 0 && i < cut) cut = i;
}
if (cut < t.length) return t.substring(0, cut).trim();
final band = RegExp(r'^(.+?)\s+\d+$').firstMatch(t);
return band != null ? band.group(1)! : t;
}

@ -1,3 +1,6 @@
// LoRa radio parameter values. The regional presets that combine them live in
// radio_preset.dart and come from OffbandMesh/config-profiles (#647).
enum LoRaBandwidth {
bw7_8(7800, '7.8 kHz'),
bw10_4(10400, '10.4 kHz'),
@ -43,489 +46,3 @@ enum LoRaCodingRate {
const LoRaCodingRate(this.value, this.label);
}
class RadioSettings {
final double frequencyMHz;
final LoRaBandwidth bandwidth;
final LoRaSpreadingFactor spreadingFactor;
final LoRaCodingRate codingRate;
final int txPowerDbm;
RadioSettings({
required this.frequencyMHz,
required this.bandwidth,
required this.spreadingFactor,
required this.codingRate,
required this.txPowerDbm,
});
// Regional preset configurations
static final List<(String, RadioSettings)> presets = [
(
'Australia',
RadioSettings(
frequencyMHz: 915.8,
bandwidth: LoRaBandwidth.bw250,
spreadingFactor: LoRaSpreadingFactor.sf10,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
(
'Australia (Narrow)',
RadioSettings(
frequencyMHz: 916.575,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf7,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
(
'Australia SA, WA, QLD',
RadioSettings(
frequencyMHz: 923.125,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
(
'Czech Republic',
RadioSettings(
frequencyMHz: 869.432,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf7,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 14,
),
),
(
'EU 433MHz',
RadioSettings(
frequencyMHz: 433.650,
bandwidth: LoRaBandwidth.bw250,
spreadingFactor: LoRaSpreadingFactor.sf11,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
(
'EU/UK (Long Range)',
RadioSettings(
frequencyMHz: 869.525,
bandwidth: LoRaBandwidth.bw250,
spreadingFactor: LoRaSpreadingFactor.sf11,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 14,
),
),
(
'EU/UK (Medium Range)',
RadioSettings(
frequencyMHz: 869.525,
bandwidth: LoRaBandwidth.bw250,
spreadingFactor: LoRaSpreadingFactor.sf10,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 14,
),
),
(
'EU/UK (Narrow)',
RadioSettings(
frequencyMHz: 869.618,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 14,
),
),
(
'New Zealand',
RadioSettings(
frequencyMHz: 917.375,
bandwidth: LoRaBandwidth.bw250,
spreadingFactor: LoRaSpreadingFactor.sf11,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
(
'New Zealand (Narrow)',
RadioSettings(
frequencyMHz: 917.375,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf7,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
(
'Portugal 433',
RadioSettings(
frequencyMHz: 433.375,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf9,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
(
'Portugal 869',
RadioSettings(
frequencyMHz: 869.618,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf7,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 14,
),
),
(
'Russia Artyom (VVO)',
RadioSettings(
frequencyMHz: 864.281,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_6,
txPowerDbm: 20,
),
),
(
'Russia Biysk (BSK)',
RadioSettings(
frequencyMHz: 869.000,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
(
'Russia Chelyabinsk (CEK)',
RadioSettings(
frequencyMHz: 868.731,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_6,
txPowerDbm: 20,
),
),
(
'Russia Cherepovets (CEE)',
RadioSettings(
frequencyMHz: 868.570,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf7,
codingRate: LoRaCodingRate.cr4_8,
txPowerDbm: 20,
),
),
(
'Russia Irkutsk (IKT)',
RadioSettings(
frequencyMHz: 868.731,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf7,
codingRate: LoRaCodingRate.cr4_7,
txPowerDbm: 20,
),
),
(
'Russia Ivanovo (IWA)',
RadioSettings(
frequencyMHz: 868.731,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_8,
txPowerDbm: 20,
),
),
(
'Russia Izhevsk (IJK)',
RadioSettings(
frequencyMHz: 868.732,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_8,
txPowerDbm: 20,
),
),
(
'Russia Kaluga (KLF)',
RadioSettings(
frequencyMHz: 868.731,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf7,
codingRate: LoRaCodingRate.cr4_7,
txPowerDbm: 20,
),
),
(
'Russia Kazan (KZN)',
RadioSettings(
frequencyMHz: 868.731,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_6,
txPowerDbm: 20,
),
),
(
'Russia Khabarovsk (KHV)',
RadioSettings(
frequencyMHz: 864.281,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_6,
txPowerDbm: 20,
),
),
(
'Russia Kirov (KVX)',
RadioSettings(
frequencyMHz: 868.731,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_8,
txPowerDbm: 20,
),
),
(
'Russia Lipetsk (LPK)',
RadioSettings(
frequencyMHz: 868.950,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf9,
codingRate: LoRaCodingRate.cr4_7,
txPowerDbm: 20,
),
),
(
'Russia Moscow (MOW)',
RadioSettings(
frequencyMHz: 868.731,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf7,
codingRate: LoRaCodingRate.cr4_7,
txPowerDbm: 20,
),
),
(
'Russia Nizhny Novgorod (GOJ)',
RadioSettings(
frequencyMHz: 868.731,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_6,
txPowerDbm: 20,
),
),
(
'Russia Novosibirsk (OVB)',
RadioSettings(
frequencyMHz: 869.000,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf9,
codingRate: LoRaCodingRate.cr4_8,
txPowerDbm: 20,
),
),
(
'Russia Rostov-on-Don (ROV)',
RadioSettings(
frequencyMHz: 868.731,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf9,
codingRate: LoRaCodingRate.cr4_7,
txPowerDbm: 20,
),
),
(
'Russia Ryazan (RZN)',
RadioSettings(
frequencyMHz: 868.880,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf9,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
(
'Russia Samara (KUF)',
RadioSettings(
frequencyMHz: 864.281,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_7,
txPowerDbm: 20,
),
),
(
'Russia Saratov (GSV)',
RadioSettings(
frequencyMHz: 864.281,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_7,
txPowerDbm: 20,
),
),
(
'Russia St. Petersburg (LED)',
RadioSettings(
frequencyMHz: 868.856,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf7,
codingRate: LoRaCodingRate.cr4_7,
txPowerDbm: 20,
),
),
(
'Russia Tambov (TBW)',
RadioSettings(
frequencyMHz: 868.950,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf10,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
(
'Russia Tula (TYA)',
RadioSettings(
frequencyMHz: 868.731,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_7,
txPowerDbm: 20,
),
),
(
'Russia Tver (KLD)',
RadioSettings(
frequencyMHz: 869.169,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_8,
txPowerDbm: 20,
),
),
(
'Russia Ufa (UFA)',
RadioSettings(
frequencyMHz: 868.732,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_8,
txPowerDbm: 20,
),
),
(
'Russia Volgograd (VOG)',
RadioSettings(
frequencyMHz: 869.525,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf7,
codingRate: LoRaCodingRate.cr4_7,
txPowerDbm: 20,
),
),
(
'Russia Voronezh (VOZ)',
RadioSettings(
frequencyMHz: 868.731,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_6,
txPowerDbm: 20,
),
),
(
'Russia Yekaterinburg (SVX)',
RadioSettings(
frequencyMHz: 869.046,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf7,
codingRate: LoRaCodingRate.cr4_7,
txPowerDbm: 20,
),
),
(
'Switzerland',
RadioSettings(
frequencyMHz: 869.618,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf8,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 14,
),
),
(
'USA Arizona',
RadioSettings(
frequencyMHz: 908.205,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf10,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
(
'USA/Canada',
RadioSettings(
frequencyMHz: 910.525,
bandwidth: LoRaBandwidth.bw62_5,
spreadingFactor: LoRaSpreadingFactor.sf7,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
(
'Vietnam',
RadioSettings(
frequencyMHz: 920.250,
bandwidth: LoRaBandwidth.bw250,
spreadingFactor: LoRaSpreadingFactor.sf11,
codingRate: LoRaCodingRate.cr4_5,
txPowerDbm: 20,
),
),
// Off-grid repeat presets (valid client_repeat frequencies)
(
'Off-Grid 433',
RadioSettings(
frequencyMHz: 433.0,
bandwidth: LoRaBandwidth.bw250,
spreadingFactor: LoRaSpreadingFactor.sf11,
codingRate: LoRaCodingRate.cr4_8,
txPowerDbm: 20,
),
),
(
'Off-Grid 869',
RadioSettings(
frequencyMHz: 869.0,
bandwidth: LoRaBandwidth.bw250,
spreadingFactor: LoRaSpreadingFactor.sf11,
codingRate: LoRaCodingRate.cr4_8,
txPowerDbm: 14,
),
),
(
'Off-Grid 918',
RadioSettings(
frequencyMHz: 918.0,
bandwidth: LoRaBandwidth.bw250,
spreadingFactor: LoRaSpreadingFactor.sf11,
codingRate: LoRaCodingRate.cr4_8,
txPowerDbm: 20,
),
),
];
int get frequencyHz => (frequencyMHz * 1000).round();
int get bandwidthHz => bandwidth.hz;
int get sf => spreadingFactor.value;
int get cr => codingRate.value;
}

@ -0,0 +1,624 @@
/// MeshCore stock companion config export format (#572, epic #568).
///
/// This is a faithful model of the JSON file the official MeshCore Companion
/// app writes from its Export Config screen, so that a stock export imports
/// into Offband and an Offband export imports into stock. The shape was
/// reverse-engineered from ten real exports across five radios (2359 contacts,
/// 76 channels); the evidence is recorded on issue #569.
///
/// Rules the format imposes, none of them obvious:
///
/// * **There is no version field.** Stock writes none, so we write none, and
/// validation is by shape alone. Every top-level section is independently
/// optional because the export screen lets the user deselect any of them.
/// * `public_key` and `private_key` are one unit: stock's single "Private
/// Identity Key" control emits both or neither.
/// * `radio_settings` mixes units: `frequency` is kHz, `bandwidth` is Hz, and
/// `coding_rate` is a bare denominator (5 means 4/5).
/// * Latitudes and longitudes are JSON **strings**, never numbers.
/// * `channels` has no index field; array position is the channel index.
/// * Contact timestamps are whatever the mesh reported and are not sanitized.
/// The real corpus contains values from epoch 14 to the year 2095.
library;
import 'dart:convert';
import 'dart:typed_data';
import '../connector/meshcore_protocol.dart' show pubKeyToHex;
/// Thrown when a config file does not match the stock format.
///
/// Carries the offending JSON path so an import screen can tell the user which
/// part of the file is wrong rather than just "invalid file".
class StockConfigFormatException implements Exception {
StockConfigFormatException(this.message, {this.path});
final String message;
/// Dotted path to the offending value, e.g. `contacts[3].out_path_list`.
final String? path;
@override
String toString() => path == null
? 'StockConfigFormatException: $message'
: 'StockConfigFormatException at $path: $message';
}
/// Firmware caps a contact name at `char name[32]`, so 31 usable characters.
const int kStockMaxContactNameChars = 31;
const int _publicKeyBytes = 32;
const int _privateKeyBytes = 64;
const int _channelSecretBytes = 16;
/// Hop-hash widths the parser will accept, in bytes.
///
/// Only width 2 has been observed in the wild (a single path across the whole
/// corpus). 1 and 3 are accepted because the firmware path-length byte encodes
/// widths 1..3 (#309) and there is no reason stock would refuse to emit them.
/// Anything else is rejected rather than guessed at.
const Set<int> kStockPathHashWidths = {1, 2, 3};
Uint8List _parseHex(String value, String path, {int? expectBytes}) {
if (value.length.isOdd) {
throw StockConfigFormatException(
'expected hex, got an odd number of characters (${value.length})',
path: path,
);
}
final bytes = Uint8List(value.length ~/ 2);
for (var i = 0; i < bytes.length; i++) {
final byte = int.tryParse(value.substring(i * 2, i * 2 + 2), radix: 16);
if (byte == null) {
throw StockConfigFormatException('expected hex characters', path: path);
}
bytes[i] = byte;
}
if (expectBytes != null && bytes.length != expectBytes) {
throw StockConfigFormatException(
'expected $expectBytes bytes, got ${bytes.length}',
path: path,
);
}
return bytes;
}
Map<String, dynamic> _asObject(Object? value, String path) {
if (value is! Map) {
throw StockConfigFormatException('expected an object', path: path);
}
return value.cast<String, dynamic>();
}
int _asInt(Object? value, String path) {
if (value is int) return value;
throw StockConfigFormatException('expected an integer', path: path);
}
bool _asBool(Object? value, String path) {
if (value is bool) return value;
throw StockConfigFormatException('expected a boolean', path: path);
}
String _asString(Object? value, String path) {
if (value is String) return value;
throw StockConfigFormatException('expected a string', path: path);
}
/// Stock writes coordinates as decimal strings, so `0.0` and `39.561991` both
/// appear verbatim. Dart's shortest-round-trip `double.toString()` reproduces
/// exactly that, which is why [_coordToJson] is a plain `toString`.
double _parseCoord(Object? value, String path) {
final text = _asString(value, path);
final parsed = double.tryParse(text);
if (parsed == null) {
throw StockConfigFormatException(
'expected a decimal coordinate string',
path: path,
);
}
return parsed;
}
String _coordToJson(double value) => value.toString();
/// LoRa parameters. Units differ per field. See the class doc on [StockConfig].
class StockRadioSettings {
const StockRadioSettings({
required this.frequencyKhz,
required this.bandwidthHz,
required this.spreadingFactor,
required this.codingRate,
required this.txPower,
});
/// `frequency`, in **kHz** (910525 means 910.525 MHz).
final int frequencyKhz;
/// `bandwidth`, in **Hz** (62500 means 62.5 kHz).
final int bandwidthHz;
final int spreadingFactor;
/// `coding_rate`, the **denominator only**, 5 means 4/5.
final int codingRate;
/// `tx_power`, in dBm.
final int txPower;
factory StockRadioSettings.fromJson(Map<String, dynamic> json, String path) {
return StockRadioSettings(
frequencyKhz: _asInt(json['frequency'], '$path.frequency'),
bandwidthHz: _asInt(json['bandwidth'], '$path.bandwidth'),
spreadingFactor: _asInt(
json['spreading_factor'],
'$path.spreading_factor',
),
codingRate: _asInt(json['coding_rate'], '$path.coding_rate'),
txPower: _asInt(json['tx_power'], '$path.tx_power'),
);
}
Map<String, dynamic> toJson() => {
'frequency': frequencyKhz,
'bandwidth': bandwidthHz,
'spreading_factor': spreadingFactor,
'coding_rate': codingRate,
'tx_power': txPower,
};
}
/// The device's own advertised position. Both values are strings on the wire.
class StockPositionSettings {
const StockPositionSettings({
required this.latitude,
required this.longitude,
});
final double latitude;
final double longitude;
factory StockPositionSettings.fromJson(
Map<String, dynamic> json,
String path,
) {
return StockPositionSettings(
latitude: _parseCoord(json['latitude'], '$path.latitude'),
longitude: _parseCoord(json['longitude'], '$path.longitude'),
);
}
Map<String, dynamic> toJson() => {
'latitude': _coordToJson(latitude),
'longitude': _coordToJson(longitude),
};
}
/// Stock's "Other Settings". Both fields are ints on the wire even though they
/// read as booleans in the UI: `manual_add_contacts` is emitted as 0/1, not
/// true/false, unlike the [StockAutoAddSettings] block.
class StockOtherSettings {
const StockOtherSettings({
required this.manualAddContacts,
required this.advertLocationPolicy,
});
final int manualAddContacts;
/// Shown in stock's UI as "Share Position in Advert".
final int advertLocationPolicy;
factory StockOtherSettings.fromJson(Map<String, dynamic> json, String path) {
return StockOtherSettings(
manualAddContacts: _asInt(
json['manual_add_contacts'],
'$path.manual_add_contacts',
),
advertLocationPolicy: _asInt(
json['advert_location_policy'],
'$path.advert_location_policy',
),
);
}
Map<String, dynamic> toJson() => {
'manual_add_contacts': manualAddContacts,
'advert_location_policy': advertLocationPolicy,
};
}
/// Stock's "Auto Add Settings". Booleans here really are JSON booleans.
class StockAutoAddSettings {
const StockAutoAddSettings({
required this.autoAddChat,
required this.autoAddRepeater,
required this.autoAddRoomServer,
required this.autoAddSensor,
required this.overwriteOldest,
required this.autoAddMaxHops,
});
final bool autoAddChat;
final bool autoAddRepeater;
final bool autoAddRoomServer;
final bool autoAddSensor;
final bool overwriteOldest;
/// `auto_add_max_hops`; stock renders 0 as "(no limit)".
final int autoAddMaxHops;
factory StockAutoAddSettings.fromJson(
Map<String, dynamic> json,
String path,
) {
return StockAutoAddSettings(
autoAddChat: _asBool(json['auto_add_chat'], '$path.auto_add_chat'),
autoAddRepeater: _asBool(
json['auto_add_repeater'],
'$path.auto_add_repeater',
),
autoAddRoomServer: _asBool(
json['auto_add_room_server'],
'$path.auto_add_room_server',
),
autoAddSensor: _asBool(json['auto_add_sensor'], '$path.auto_add_sensor'),
overwriteOldest: _asBool(
json['overwrite_oldest'],
'$path.overwrite_oldest',
),
autoAddMaxHops: _asInt(
json['auto_add_max_hops'],
'$path.auto_add_max_hops',
),
);
}
Map<String, dynamic> toJson() => {
'auto_add_chat': autoAddChat,
'auto_add_repeater': autoAddRepeater,
'auto_add_room_server': autoAddRoomServer,
'auto_add_sensor': autoAddSensor,
'overwrite_oldest': overwriteOldest,
'auto_add_max_hops': autoAddMaxHops,
};
}
/// One channel. The array position in [StockConfig.channels] is the index:
/// the record itself carries no index field.
class StockChannel {
const StockChannel({required this.name, required this.secret});
final String name;
/// The 16-byte PSK, hex on the wire.
final Uint8List secret;
factory StockChannel.fromJson(Map<String, dynamic> json, String path) {
return StockChannel(
name: _asString(json['name'], '$path.name'),
secret: _parseHex(
_asString(json['secret'], '$path.secret'),
'$path.secret',
expectBytes: _channelSecretBytes,
),
);
}
Map<String, dynamic> toJson() => {
'name': name,
'secret': pubKeyToHex(secret),
};
}
/// A contact's routing path, as carried by `out_path_list`.
///
/// Stock writes one comma-separated element per hop, each element being that
/// hop's hash in hex, so `"a1b2,c3d4"` is two hops at width 2. That maps
/// directly onto our width-aware path model (#309): [hopCount] is our hash
/// count and [hashWidth] is our per-hop width. Neither is inferred.
class StockOutPath {
StockOutPath({required this.hashWidth, required this.bytes})
: assert(hashWidth > 0),
assert(bytes.length % hashWidth == 0);
/// The `""` form of the field, as distinct from the key being null.
///
/// Both mean "no path" and the corpus contains 10 of these against 2448
/// nulls, but stock writes both and we do not know what distinguishes them.
/// Keeping them apart costs one constructor and makes an Offband re-export
/// byte-identical to its source, so we keep them apart.
StockOutPath.empty() : hashWidth = 0, bytes = _noBytes;
static final Uint8List _noBytes = Uint8List(0);
/// Bytes per hop hash, 1..3, or 0 for [StockOutPath.empty].
/// See [kStockPathHashWidths].
final int hashWidth;
/// Flattened hop hashes, `hopCount * hashWidth` bytes.
final Uint8List bytes;
int get hopCount => hashWidth == 0 ? 0 : bytes.length ~/ hashWidth;
/// Parses `out_path_list`. A null key returns null; `""` returns
/// [StockOutPath.empty]. Both mean the contact has no route.
static StockOutPath? fromJson(Object? value, String path) {
if (value == null) return null;
final text = _asString(value, path);
if (text.isEmpty) return StockOutPath.empty();
final elements = text.split(',');
final widths = elements.map((e) => e.length).toSet();
if (widths.length != 1) {
throw StockConfigFormatException(
'hop hashes must all be the same width, got $widths',
path: path,
);
}
final chars = widths.single;
if (chars.isOdd || !kStockPathHashWidths.contains(chars ~/ 2)) {
throw StockConfigFormatException(
'unsupported hop hash width of $chars characters',
path: path,
);
}
final width = chars ~/ 2;
final bytes = BytesBuilder();
for (final element in elements) {
bytes.add(_parseHex(element, path, expectBytes: width));
}
return StockOutPath(hashWidth: width, bytes: bytes.toBytes());
}
String toJson() {
if (hashWidth == 0) return '';
final hops = <String>[];
for (var i = 0; i < bytes.length; i += hashWidth) {
hops.add(pubKeyToHex(Uint8List.sublistView(bytes, i, i + hashWidth)));
}
return hops.join(',');
}
}
/// One contact. This is a near 1:1 serialization of the firmware's
/// `ContactInfo` struct, with [customName] as the one app-side addition.
class StockContact {
const StockContact({
required this.type,
required this.name,
required this.publicKey,
required this.flags,
required this.latitude,
required this.longitude,
required this.lastAdvert,
required this.lastModified,
this.customName,
this.outPath,
});
/// `ADV_TYPE_*`: 1 chat, 2 repeater, 3 room, 4 sensor.
final int type;
final String name;
/// App-side rename. Null in all 2359 contacts of the reference corpus, so
/// its round-trip behavior is carried but unverified (#569).
final String? customName;
final Uint8List publicKey;
/// Bit 0 is "favourite" (firmware `flags & 0x01`).
final int flags;
final double latitude;
final double longitude;
/// Epoch seconds by THEIR clock. **Not sanitized**: the reference corpus
/// ranges from 14 to the year 2095. Kept as a raw int so no caller mistakes
/// it for a trustworthy time.
final int lastAdvert;
/// Epoch seconds by OUR clock. Same caveat as [lastAdvert].
final int lastModified;
final StockOutPath? outPath;
bool get isFavourite => flags & 0x01 != 0;
factory StockContact.fromJson(Map<String, dynamic> json, String path) {
return StockContact(
type: _asInt(json['type'], '$path.type'),
name: _asString(json['name'], '$path.name'),
customName: json['custom_name'] == null
? null
: _asString(json['custom_name'], '$path.custom_name'),
publicKey: _parseHex(
_asString(json['public_key'], '$path.public_key'),
'$path.public_key',
expectBytes: _publicKeyBytes,
),
flags: _asInt(json['flags'], '$path.flags'),
latitude: _parseCoord(json['latitude'], '$path.latitude'),
longitude: _parseCoord(json['longitude'], '$path.longitude'),
lastAdvert: _asInt(json['last_advert'], '$path.last_advert'),
lastModified: _asInt(json['last_modified'], '$path.last_modified'),
outPath: StockOutPath.fromJson(
json['out_path_list'],
'$path.out_path_list',
),
);
}
Map<String, dynamic> toJson() {
if (name.length > kStockMaxContactNameChars) {
throw StockConfigFormatException(
'contact name is ${name.length} characters; stock firmware stores at '
'most $kStockMaxContactNameChars and would truncate it',
path: 'contacts[].name',
);
}
return {
'type': type,
'name': name,
'custom_name': customName,
'public_key': pubKeyToHex(publicKey),
'flags': flags,
'latitude': _coordToJson(latitude),
'longitude': _coordToJson(longitude),
'last_advert': lastAdvert,
'last_modified': lastModified,
'out_path_list': outPath?.toJson(),
};
}
}
/// A whole stock config export.
///
/// Every section is nullable, and null means "the user did not select this
/// section", which is distinct from an empty list. Absent sections are omitted
/// from [toJson] entirely rather than written as null, matching stock.
class StockConfig {
const StockConfig({
this.name,
this.publicKey,
this.privateKey,
this.radioSettings,
this.positionSettings,
this.otherSettings,
this.autoAddSettings,
this.channels,
this.contacts,
});
final String? name;
/// 32 bytes. Travels as a unit with [privateKey]: stock's identity control
/// emits both or neither.
final Uint8List? publicKey;
/// 64 bytes. See [publicKey].
final Uint8List? privateKey;
final StockRadioSettings? radioSettings;
final StockPositionSettings? positionSettings;
final StockOtherSettings? otherSettings;
final StockAutoAddSettings? autoAddSettings;
/// Ordered; array position is the channel index.
final List<StockChannel>? channels;
final List<StockContact>? contacts;
/// Parses a decoded JSON object.
///
/// Unknown top-level keys are ignored, not rejected: the format has no
/// version field, so tolerating additions is the only way to survive a stock
/// release that adds one.
factory StockConfig.fromJson(Map<String, dynamic> json) {
final channelsJson = json['channels'];
final contactsJson = json['contacts'];
return StockConfig(
name: json['name'] == null ? null : _asString(json['name'], 'name'),
publicKey: json['public_key'] == null
? null
: _parseHex(
_asString(json['public_key'], 'public_key'),
'public_key',
expectBytes: _publicKeyBytes,
),
privateKey: json['private_key'] == null
? null
: _parseHex(
_asString(json['private_key'], 'private_key'),
'private_key',
expectBytes: _privateKeyBytes,
),
radioSettings: json['radio_settings'] == null
? null
: StockRadioSettings.fromJson(
_asObject(json['radio_settings'], 'radio_settings'),
'radio_settings',
),
positionSettings: json['position_settings'] == null
? null
: StockPositionSettings.fromJson(
_asObject(json['position_settings'], 'position_settings'),
'position_settings',
),
otherSettings: json['other_settings'] == null
? null
: StockOtherSettings.fromJson(
_asObject(json['other_settings'], 'other_settings'),
'other_settings',
),
autoAddSettings: json['auto_add_settings'] == null
? null
: StockAutoAddSettings.fromJson(
_asObject(json['auto_add_settings'], 'auto_add_settings'),
'auto_add_settings',
),
channels: channelsJson == null
? null
: _parseList(
channelsJson,
'channels',
(item, path) =>
StockChannel.fromJson(_asObject(item, path), path),
),
contacts: contactsJson == null
? null
: _parseList(
contactsJson,
'contacts',
(item, path) =>
StockContact.fromJson(_asObject(item, path), path),
),
);
}
static List<T> _parseList<T>(
Object? value,
String path,
T Function(Object? item, String itemPath) parse,
) {
if (value is! List) {
throw StockConfigFormatException('expected an array', path: path);
}
final result = <T>[];
for (var i = 0; i < value.length; i++) {
result.add(parse(value[i], '$path[$i]'));
}
return result;
}
/// Parses raw file text.
factory StockConfig.parse(String source) {
final Object? decoded;
try {
decoded = jsonDecode(source);
} on FormatException catch (e) {
throw StockConfigFormatException('file is not valid JSON: ${e.message}');
}
return StockConfig.fromJson(_asObject(decoded, r'$'));
}
Map<String, dynamic> toJson() {
return {
if (name != null) 'name': name,
if (publicKey != null) 'public_key': pubKeyToHex(publicKey!),
if (privateKey != null) 'private_key': pubKeyToHex(privateKey!),
if (radioSettings != null) 'radio_settings': radioSettings!.toJson(),
if (positionSettings != null)
'position_settings': positionSettings!.toJson(),
if (otherSettings != null) 'other_settings': otherSettings!.toJson(),
if (autoAddSettings != null)
'auto_add_settings': autoAddSettings!.toJson(),
if (channels != null) 'channels': [for (final c in channels!) c.toJson()],
if (contacts != null) 'contacts': [for (final c in contacts!) c.toJson()],
};
}
String encode() => jsonEncode(toJson());
}

@ -11,6 +11,7 @@ import 'package:provider/provider.dart';
import '../connector/meshcore_connector.dart';
import '../models/community.dart';
import '../storage/community_store.dart';
import '../utils/app_logger.dart';
import '../utils/platform_info.dart';
import '../helpers/chat_scroll_controller.dart';
import '../connector/meshcore_protocol.dart';
@ -19,21 +20,26 @@ import '../helpers/gif_helper.dart';
import '../helpers/reaction_helper.dart';
import '../helpers/snack_bar_builder.dart';
import '../l10n/l10n.dart';
import '../l10n/contact_localization.dart';
import '../models/channel.dart';
import '../models/channel_message.dart';
import '../models/contact.dart';
import '../models/translation_support.dart';
import '../models/app_settings.dart';
import '../services/app_settings_service.dart';
import '../services/corescope_service.dart';
import '../widgets/channel_notify_mode.dart';
import '../services/block_service.dart';
import '../services/chat_text_scale_service.dart';
import '../services/translation_service.dart';
import '../utils/emoji_utils.dart';
import '../utils/route_transitions.dart';
import 'chat_screen.dart';
import 'settings_screen.dart';
import '../utils/dialog_utils.dart';
import '../widgets/app_shell.dart';
import '../widgets/channel_drawer_list.dart';
import '../widgets/composer_budget_notice.dart';
import '../widgets/mention_autocomplete.dart';
import '../helpers/emoji_shortcodes.dart';
import '../widgets/chat_zoom_wrapper.dart';
@ -639,7 +645,6 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
Future<void> _blockChannelSender(ChannelMessage message) async {
final connector = context.read<MeshCoreConnector>();
final blockService = context.read<BlockService>();
final messenger = ScaffoldMessenger.of(context);
final l10n = context.l10n;
final name = message.senderName;
final keys = connector.resolveContactKeysByName(name);
@ -648,16 +653,204 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
await blockService.block(key);
}
if (!mounted) return;
messenger.showSnackBar(SnackBar(content: Text(l10n.block_blocked(name))));
showDismissibleSnackBar(context, content: Text(l10n.block_blocked(name)));
} else {
await blockService.blockName(name);
if (!mounted) return;
messenger.showSnackBar(
SnackBar(content: Text(l10n.block_blockedNameOnly(name))),
showDismissibleSnackBar(
context,
content: Text(l10n.block_blockedNameOnly(name)),
);
}
}
/// Contact actions for the sender of a channel post (#468). Channel frames
/// carry no key, so the claimed name is resolved against known + discovered
/// contacts. Every node claiming that name gets its own row: an ambiguous
/// namesake is never resolved for the user.
void _showSenderActions(ChannelMessage message) {
if (message.isOutgoing) return;
final connector = context.read<MeshCoreConnector>();
final candidates = connector.resolveContactsByName(message.senderName);
final ambiguous = candidates.length > 1;
showModalBottomSheet(
context: context,
showDragHandle: true,
builder: (sheetContext) {
final l10n = sheetContext.l10n;
return SafeArea(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
ListTile(
leading: _buildAvatar(message.senderName),
title: Text(message.senderName),
subtitle: ambiguous
? Text(
l10n.channel_senderMultipleMatches(candidates.length),
)
: null,
),
const Divider(height: 1),
..._buildSenderContactEntries(sheetContext, message),
ListTile(
leading: Icon(Icons.block, color: Colors.red.shade700),
title: Text(l10n.block_sender),
onTap: () {
Navigator.pop(sheetContext);
_blockChannelSender(message);
},
),
ListTile(
leading: const Icon(Icons.close),
title: Text(l10n.common_cancel),
onTap: () => Navigator.pop(sheetContext),
),
],
),
);
},
);
}
/// Sender contact rows, shared by the avatar-tap sheet and the long-press
/// menu so both offer exactly the same actions. An unresolved name says so
/// outright instead of silently offering nothing.
List<Widget> _buildSenderContactEntries(
BuildContext sheetContext,
ChannelMessage message,
) {
final connector = sheetContext.read<MeshCoreConnector>();
final candidates = connector.resolveContactsByName(message.senderName);
if (candidates.isEmpty) {
// States what we actually know: nothing matches this name. Claiming the
// node was never heard would be a guess, since it may be known under an
// older advert name (#579).
return [
ListTile(
leading: const Icon(Icons.help_outline),
title: Text(sheetContext.l10n.channel_senderNameUnknown),
subtitle: Text(sheetContext.l10n.channel_senderNameUnknownHint),
),
];
}
return [
for (final candidate in candidates)
..._buildSenderCandidateTiles(
sheetContext,
candidate,
showIdentity: candidates.length > 1,
),
];
}
/// Add/view rows for one resolved sender identity. [showIdentity] prefixes an
/// identifying row (pubkey prefix + type) so colliding namesakes stay apart.
List<Widget> _buildSenderCandidateTiles(
BuildContext sheetContext,
Contact candidate, {
required bool showIdentity,
}) {
final l10n = sheetContext.l10n;
final connector = sheetContext.read<MeshCoreConnector>();
final isKnown = connector.contacts.any(
(c) => c.publicKeyHex == candidate.publicKeyHex,
);
return [
if (showIdentity)
ListTile(
dense: true,
leading: const Icon(Icons.fingerprint),
title: Text(
l10n.channel_senderCandidate(
candidate.publicKeyHex.substring(
0,
math.min(8, candidate.publicKeyHex.length),
),
candidate.typeLabel(l10n),
),
),
),
if (!isKnown)
ListTile(
leading: const Icon(Icons.add_reaction_sharp),
title: Text(l10n.discoveredContacts_addContact),
onTap: () {
Navigator.pop(sheetContext);
_addSenderContact(candidate);
},
)
// A repeater or room server reached through a channel post still needs
// its login flow, which lives on the Contacts screen. Say it is already
// known rather than dropping the user into a chat that cannot work.
else if (candidate.type == advTypeChat)
ListTile(
leading: const Icon(Icons.chat_bubble_outline),
title: Text(l10n.contacts_openChat),
onTap: () {
Navigator.pop(sheetContext);
_openSenderChat(candidate);
},
)
else
ListTile(
leading: const Icon(Icons.check_circle_outline),
title: Text(l10n.channel_senderAlreadyContact),
),
];
}
Future<void> _addSenderContact(Contact candidate) async {
final connector = context.read<MeshCoreConnector>();
final l10n = context.l10n;
// importDiscoveredContact silently no-ops without a radio, and sendFrame
// throws on a mid-write disconnect. Neither may reach the user as a tap
// that just did nothing (#565).
if (!connector.isConnected) {
_showSenderError(l10n.channel_senderAddNotConnected);
return;
}
try {
await connector.importDiscoveredContact(candidate);
} catch (e) {
appLogger.error('Adding channel sender ${candidate.name} failed: $e');
if (!mounted) return;
_showSenderError(l10n.channel_senderAddFailed(e.toString()));
return;
}
if (!mounted) return;
showDismissibleSnackBar(
context,
content: Text(l10n.discoveredContacts_contactAdded),
);
}
void _showSenderError(String message) {
showDismissibleSnackBar(
context,
content: Text(message),
backgroundColor: Theme.of(context).colorScheme.error,
persist: true,
);
}
void _openSenderChat(Contact candidate) {
final connector = context.read<MeshCoreConnector>();
final unread = connector.getUnreadCountForContactKey(
candidate.publicKeyHex,
);
connector.markContactRead(candidate.publicKeyHex);
Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
ChatScreen(contact: candidate, initialUnreadCount: unread),
),
);
}
/// A channel post is hidden only when its claimed name resolves to at least
/// one identity and *every* matching pubkey is blocked (an ambiguous namesake
/// with any unblocked match is still shown), or the name is in blockedNames.
@ -712,7 +905,13 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (!isOutgoing) ...[
_buildAvatar(message.senderName),
// The avatar is the contact-action shortcut (#468). The sender
// name text is deliberately NOT a tap target: on a phone it sits
// too close to the message body to hit reliably.
GestureDetector(
onTap: () => _showSenderActions(message),
child: _buildAvatar(message.senderName),
),
const SizedBox(width: 8),
],
Flexible(
@ -1046,6 +1245,76 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
);
}
/// The composer `+` picker. (#611)
///
/// Owner decision: one `+` beside the text entry, offering GIF and Contact
/// for now, rather than a dedicated button per thing you can attach. The
/// sendable set stays small because a channel message shares a 160-byte
/// payload with the `Sender: ` prefix.
void _showAttachPicker(BuildContext context) {
showModalBottomSheet(
context: context,
builder: (sheetContext) => SafeArea(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
ListTile(
leading: const Icon(Icons.gif_box),
title: Text(sheetContext.l10n.chat_attachGif),
onTap: () {
Navigator.pop(sheetContext);
_showGifPicker(context);
},
),
ListTile(
leading: const Icon(Icons.person_outline),
title: Text(sheetContext.l10n.chat_attachMyContact),
subtitle: Text(sheetContext.l10n.chat_attachMyContactSubtitle),
onTap: () {
Navigator.pop(sheetContext);
_insertMyContactCard(context);
},
),
],
),
),
);
}
/// Puts this device's own contact card into the composer. (#611)
///
/// Inserts rather than sends, matching the GIF picker, so the text can be
/// reviewed and captioned before it goes out.
///
/// Emits the compact `<key:type:name>` form observed on the live mesh, NOT
/// the `meshcore://` URI. The URI is ~117 bytes against ~75 here, and the
/// channel payload budget is 160 including the `Sender: ` prefix.
void _insertMyContactCard(BuildContext context) {
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
final keyHex = connector.selfPublicKeyHex;
if (keyHex.length != pubKeySize * 2) {
showDismissibleSnackBar(
context,
content: Text(context.l10n.chat_contactCardNeedsConnection),
);
return;
}
final card = Contact.buildChannelShare(
publicKeyHex: keyHex,
name: connector.selfName ?? '',
// This device is a companion.
type: advTypeChat,
);
// Append rather than replace, so a caption already typed is not lost.
final existing = _textController.text.trimRight();
_textController.text = existing.isEmpty ? card : '$existing $card';
_textController.selection = TextSelection.collapsed(
offset: _textController.text.length,
);
}
Widget _buildAvatar(String senderName) {
final initial = _getFirstCharacterOrEmoji(senderName);
final color = _getColorForName(senderName);
@ -1161,6 +1430,13 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
return Column(
mainAxisSize: MainAxisSize.min,
children: [
// Says so out loud when the link leaves no room for text, instead of
// presenting a field that silently rejects every keystroke (#684).
ComposerBudgetNotice(
maxBytes: maxBytes,
transport: connector.activeTransport,
isConnected: connector.isConnected,
),
if (_replyingToMessage != null)
Builder(
builder: (context) {
@ -1185,9 +1461,9 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
child: Row(
children: [
IconButton(
icon: const Icon(Icons.gif_box),
onPressed: () => _showGifPicker(context),
tooltip: context.l10n.chat_sendGif,
icon: const Icon(Icons.add),
onPressed: () => _showAttachPicker(context),
tooltip: context.l10n.chat_attachTooltip,
),
if (settings.translationEnabled)
MessageTranslationButton(
@ -1517,6 +1793,33 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
),
),
],
// CoreScope observer count (#524), shown parallel to the radio-heard
// count with a distinct icon, never merged into one number. Tap to
// re-query on demand (the count only ever climbs).
if (isOutgoing && (message.coreScopeObserverCount ?? 0) > 0) ...[
dot,
Tooltip(
message: _coreScopeLabel(message),
child: InkWell(
onTap: message.onAirHash == null
? null
: () => _refreshCoreScope(message),
borderRadius: BorderRadius.circular(10),
child: Padding(
// Generous padding so the small badge is a reliable tap target.
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(Icons.cloud_outlined, size: 12, color: metaColor),
const SizedBox(width: 4),
Text('${message.coreScopeObserverCount}', style: metaStyle),
],
),
),
),
),
],
if (isOutgoing) ...[
const SizedBox(width: 6),
Icon(
@ -1613,6 +1916,58 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
);
}
String _coreScopeLabel(ChannelMessage message) {
final observers = message.coreScopeObserverCount ?? 0;
final observations = message.coreScopeObservationCount;
return observations == null
? context.l10n.channel_coreScopeTooltip(observers)
: context.l10n.channel_coreScopeCounts(observers, observations);
}
Future<void> _refreshCoreScope(ChannelMessage message) async {
final hash = message.onAirHash;
if (hash == null) return;
final connector = context.read<MeshCoreConnector>();
final l10n = context.l10n;
final result = await connector.refreshCoreScopeCounts(
message.channelIndex ?? _currentChannel.index,
message.messageId,
hash,
);
if (!mounted) return;
final text = switch (result.status) {
CoreScopeStatus.found => l10n.channel_coreScopeCounts(
result.counts!.observers,
result.counts!.observations,
),
CoreScopeStatus.notFound => l10n.channel_coreScopeNotFound,
CoreScopeStatus.unreachable => l10n.channel_coreScopeRefreshFailed,
};
_showCoreScopeBanner(text);
}
/// Top banner (out of the way of the composer), auto-dismissed after a few
/// seconds. Used for the CoreScope refresh result (#524).
void _showCoreScopeBanner(String message) {
final messenger = ScaffoldMessenger.of(context);
messenger.clearMaterialBanners();
messenger.showMaterialBanner(
MaterialBanner(
content: Text(message),
leading: const Icon(Icons.cloud_outlined),
actions: [
TextButton(
onPressed: messenger.hideCurrentMaterialBanner,
child: Text(context.l10n.common_ok),
),
],
),
);
Future.delayed(const Duration(seconds: 4), () {
if (mounted) messenger.hideCurrentMaterialBanner();
});
}
void _retryChannelMessage(ChannelMessage message) {
context.read<MeshCoreConnector>().sendChannelMessage(
_currentChannel,
@ -1666,11 +2021,12 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
_showMessagePathInfo(message);
},
),
// Offer resend on an outgoing channel message until its
// ack/repeat-back arrives (status becomes sent). Channel sends are
// not auto-retried, so this is the only recovery path. (#256)
if (message.isOutgoing &&
message.status != ChannelMessageStatus.sent)
// Offer resend on an outgoing channel message until a repeater
// repeats it back (repeatCount > 0). The radio-ack checkmark
// (status == sent) does NOT mean a repeat was heard, so gate on the
// repeat-back, not status. Channel sends aren't auto-retried, so
// this is the only recovery path. (#256, #555)
if (message.isOutgoing && message.repeatCount == 0)
ListTile(
leading: const Icon(Icons.refresh),
title: Text(context.l10n.message_sendAgain),
@ -1679,6 +2035,20 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
_retryChannelMessage(message);
},
),
// CoreScope observer count refresh (#524), owner feature. A large,
// reliable tap target vs the small inline badge.
if (message.isOutgoing && message.onAirHash != null)
ListTile(
leading: const Icon(Icons.cloud_outlined),
title: Text(context.l10n.channel_coreScopeRefresh),
subtitle: message.coreScopeObserverCount != null
? Text(_coreScopeLabel(message))
: null,
onTap: () {
Navigator.pop(sheetContext);
_refreshCoreScope(message);
},
),
// Can't react to your own messages
if (!message.isOutgoing)
ListTile(
@ -1729,7 +2099,11 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
await _deleteMessage(message);
},
),
if (!message.isOutgoing)
// Same sender contact actions the avatar tap offers (#468), so
// long-press remains a superset of every gesture on the message.
if (!message.isOutgoing) ...[
const Divider(height: 1),
..._buildSenderContactEntries(sheetContext, message),
ListTile(
leading: Icon(Icons.block, color: Colors.red.shade700),
title: Text(context.l10n.block_sender),
@ -1738,6 +2112,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
_blockChannelSender(message);
},
),
],
ListTile(
leading: const Icon(Icons.close),
title: Text(context.l10n.common_cancel),

@ -32,6 +32,7 @@ import '../services/chat_text_scale_service.dart';
import '../services/path_history_service.dart';
import '../services/translation_service.dart';
import '../widgets/chat_zoom_wrapper.dart';
import '../widgets/composer_budget_notice.dart';
import '../widgets/contact_settings_dialog.dart';
import '../widgets/elements_ui.dart';
import '../widgets/mention_autocomplete.dart';
@ -600,6 +601,28 @@ class _ChatScreenState extends State<ChatScreen> {
);
final colorScheme = Theme.of(context).colorScheme;
final settings = context.watch<AppSettingsService>().settings;
return Column(
mainAxisSize: MainAxisSize.min,
children: [
// Says so out loud when the link leaves no room for text, instead of
// presenting a field that silently rejects every keystroke (#684).
ComposerBudgetNotice(
maxBytes: maxBytes,
transport: connector.activeTransport,
isConnected: connector.isConnected,
),
_buildComposerBar(context, colorScheme, settings, maxBytes, connector),
],
);
}
Widget _buildComposerBar(
BuildContext context,
ColorScheme colorScheme,
AppSettings settings,
int maxBytes,
MeshCoreConnector connector,
) {
return Container(
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(

@ -0,0 +1,46 @@
import 'package:flutter/material.dart';
import '../helpers/snack_bar_builder.dart';
import '../l10n/l10n.dart';
import '../models/contact.dart';
import '../utils/platform_info.dart';
import '../widgets/qr_scanner_widget.dart';
/// Whether a contact QR can be scanned on this platform.
///
/// `mobile_scanner` covers Android, iOS, macOS and web, but not Windows or
/// Linux. On those the QR half of the exchange is the RENDER side: show your
/// own code from the desktop and let the other person scan it with a phone.
///
/// Lives here rather than on a caller because both the key-entry field and the
/// contacts menu need it. (#629)
bool get contactQrScanAvailable =>
PlatformInfo.isMobile || PlatformInfo.isMacOS || PlatformInfo.isWeb;
/// Scans a contact QR and pops the raw `meshcore://contact/add` string. (#629)
///
/// A contact QR is only that URI rendered visually, so this validates with the
/// same [Contact.isValidShareUri] the paste path uses. There is no second
/// format and no second parser.
class ContactQrScannerScreen extends StatelessWidget {
const ContactQrScannerScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(context.l10n.contacts_scanContactQr),
centerTitle: true,
),
body: QrScannerWidget(
instructions: context.l10n.contacts_scanContactQrInstructions,
validator: Contact.isValidShareUri,
onScanned: (data) => Navigator.of(context).pop(data),
onValidationFailed: (_) => showDismissibleSnackBar(
context,
content: Text(context.l10n.contacts_invalidContactQr),
),
),
);
}
}

@ -34,10 +34,14 @@ import '../widgets/path_selection_dialog.dart';
import '../widgets/repeater_login_dialog.dart';
import '../widgets/room_login_dialog.dart';
import '../widgets/sync_progress_overlay.dart';
import '../widgets/add_contact_by_key_dialog.dart';
import '../widgets/contact_verification_badge.dart';
import '../widgets/my_contact_qr_dialog.dart';
import '../widgets/unread_badge.dart';
import '../helpers/snack_bar_builder.dart';
import 'channels_screen.dart';
import 'chat_screen.dart';
import 'contact_qr_scanner_screen.dart';
import 'discovery_screen.dart';
import 'map_screen.dart';
import 'repeater_hub_screen.dart';
@ -411,6 +415,43 @@ class _ContactsScreenState extends State<ContactsScreen>
),
),
),
// Provisional home so key entry is reachable. The proper
// add-contact surface, split away from the advert affordance,
// is #632 under epic #623.
PopupMenuItem(
child: Row(
children: [
const Icon(Icons.key_outlined),
const SizedBox(width: 8),
Text(context.l10n.contacts_addByKey),
],
),
onTap: () => showAddContactByKeyDialog(context),
),
// Scanning is a first-class way in, not just a button buried in
// the key field, so it gets its own entry here and routes
// straight into the add flow already filled in. (#629)
if (contactQrScanAvailable)
PopupMenuItem(
child: Row(
children: [
const Icon(Icons.qr_code_scanner),
const SizedBox(width: 8),
Text(context.l10n.contacts_scanContactQr),
],
),
onTap: () => _scanContactQr(context),
),
PopupMenuItem(
child: Row(
children: [
const Icon(Icons.qr_code_2),
const SizedBox(width: 8),
Text(context.l10n.contacts_myContactQr),
],
),
onTap: () => showMyContactQrDialog(context),
),
],
icon: const Icon(Icons.more_vert),
),
@ -916,6 +957,20 @@ class _ContactsScreenState extends State<ContactsScreen>
}
}
/// Scan a contact QR from the contacts menu, then hand the result to the add
/// dialog already populated. (#629)
///
/// Same scanner and same parser as the key-field button; only the entry point
/// differs. Scanning is how most people will actually add someone, so it
/// should not be reachable only from inside a field they have to open first.
Future<void> _scanContactQr(BuildContext context) async {
final scanned = await Navigator.of(context).push<String>(
MaterialPageRoute(builder: (_) => const ContactQrScannerScreen()),
);
if (!context.mounted || scanned == null) return;
await showAddContactByKeyDialog(context, initialKeyText: scanned);
}
DateTime _resolveLastSeen(Contact contact) {
if (contact.type != advTypeChat) return contact.lastSeen;
return contact.lastMessageAt.isAfter(contact.lastSeen)
@ -1454,6 +1509,20 @@ class _ContactsScreenState extends State<ContactsScreen>
},
),
] else ...[
// Sensors run the same admin login and CLI as repeaters
// (stock SensorMesh), so they share the repeater admin hub (#745).
if (contact.type == advTypeSensor)
ListTile(
leading: const Icon(
Icons.sensors_outlined,
color: Colors.orange,
),
title: Text(context.l10n.contacts_manageSensor),
onTap: () {
Navigator.pop(sheetContext);
_showRepeaterLogin(context, contact);
},
),
if (contact.pathLength > 0)
ListTile(
leading: const Icon(Icons.radar, color: Colors.green),
@ -1616,7 +1685,22 @@ class _ContactTile extends StatelessWidget {
),
],
)
: Text(contact.name, maxLines: 1, overflow: TextOverflow.ellipsis),
: Row(
children: [
// Reads as a column of state down the list. Calm by design:
// a key-added contact is not a problem, just less confirmed
// (#630).
ContactVerificationBadge(contact: contact),
const SizedBox(width: 6),
Expanded(
child: Text(
contact.name,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
],
),
subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@ -1722,6 +1806,14 @@ class _ContactTile extends StatelessWidget {
}
String _formatLastSeen(BuildContext context, DateTime lastSeen) {
// A contact added from a bare key carries the epoch deliberately, so the
// firmware advert replay guard cannot mute it (#627). Rendering that
// through the relative formatter would claim it was last seen tens of
// thousands of days ago, which is worse than saying nothing. (#630)
if (lastSeen.millisecondsSinceEpoch == 0) {
return context.l10n.contacts_lastSeenNever;
}
final now = DateTime.now();
final diff = now.difference(lastSeen);

@ -0,0 +1,310 @@
/// Stock-compatible config export (#574, epic #568).
///
/// Mirrors the stock app's Export Config screen: a list of sections, Select All
/// and Deselect All, and **everything checked by default**. The asymmetry with
/// the import screen (which starts with nothing checked) is deliberate and
/// copied from stock: opt out on the way out, opt in on the way in.
library;
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../connector/meshcore_connector.dart';
import '../l10n/l10n.dart';
import '../services/stock_config_export_service.dart';
import '../utils/stock_config_file.dart';
import '../widgets/adaptive_app_bar_title.dart';
class ExportConfigScreen extends StatefulWidget {
const ExportConfigScreen({super.key});
@override
State<ExportConfigScreen> createState() => _ExportConfigScreenState();
}
class _ExportConfigScreenState extends State<ExportConfigScreen> {
/// Every section starts selected, matching stock.
final Set<StockConfigSection> _selected = StockConfigSection.values.toSet();
bool _busy = false;
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
final connector = context.watch<MeshCoreConnector>();
return Scaffold(
appBar: AppBar(
title: AdaptiveAppBarTitle(l10n.exportConfig_title),
centerTitle: true,
actions: [
IconButton(
icon: const Icon(Icons.check),
onPressed: _busy ? null : () => _export(connector),
tooltip: l10n.exportConfig_title,
),
],
),
body: ListView(
children: [
_Banner(text: l10n.exportConfig_instruction),
_Banner(text: l10n.exportConfig_lossyNotice, subdued: true),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
TextButton(
onPressed: () =>
setState(() => _selected.addAll(StockConfigSection.values)),
child: Text(l10n.stockConfig_selectAll),
),
TextButton(
onPressed: () => setState(_selected.clear),
child: Text(l10n.stockConfig_deselectAll),
),
],
),
for (final section in StockConfigSection.values)
_SectionTile(
title: sectionLabel(context, section, connector),
subtitle: _subtitleFor(section, connector),
selected: _selected.contains(section),
onChanged: (value) => setState(() {
if (value) {
_selected.add(section);
} else {
_selected.remove(section);
}
}),
),
],
),
);
}
String? _subtitleFor(
StockConfigSection section,
MeshCoreConnector connector,
) {
final l10n = context.l10n;
switch (section) {
case StockConfigSection.name:
return connector.selfName;
case StockConfigSection.identity:
final key = connector.selfPublicKeyHex;
final abbreviated = key.length > 12
? '${key.substring(0, 6)}...${key.substring(key.length - 6)}'
: key;
// The private key is never rendered, not even abbreviated.
return '${l10n.stockConfig_identityWarning}\n'
'${l10n.stockConfig_publicKeyLabel(abbreviated)}\n'
'${l10n.stockConfig_privateKeyHidden}';
case StockConfigSection.radioSettings:
final freq = connector.currentFreqHz;
final bw = connector.currentBwHz;
if (freq == null || bw == null) return null;
// currentFreqHz is kHz despite its name; currentBwHz really is Hz.
return '${l10n.settings_frequency}: ${freq / 1000} MHz\n'
'${l10n.settings_bandwidth}: ${bw / 1000} kHz\n'
'${l10n.settings_spreadingFactor}: ${connector.currentSf}\n'
'${l10n.settings_codingRate}: ${connector.currentCr}\n'
'${l10n.settings_txPower}: ${connector.currentTxPower}';
case StockConfigSection.positionSettings:
return '${connector.selfLatitude ?? 0}, ${connector.selfLongitude ?? 0}';
case StockConfigSection.otherSettings:
return null;
case StockConfigSection.autoAddSettings:
return null;
case StockConfigSection.channels:
return l10n.exportConfig_allChannels;
case StockConfigSection.contacts:
return l10n.exportConfig_allContacts;
}
}
Future<void> _export(MeshCoreConnector connector) async {
final l10n = context.l10n;
final messenger = ScaffoldMessenger.of(context);
if (!connector.isConnected) {
messenger.showSnackBar(
SnackBar(content: Text(l10n.exportConfig_notConnected)),
);
return;
}
if (_selected.isEmpty) {
messenger.showSnackBar(
SnackBar(content: Text(l10n.exportConfig_nothingSelected)),
);
return;
}
setState(() => _busy = true);
try {
final result = await StockConfigExportService(
connector,
).build(sections: Set.of(_selected));
// A section the user asked for that could not be gathered is surfaced
// before the file is written, never dropped quietly.
if (!result.isComplete) {
if (!mounted) return;
final proceed = await _confirmOmissions(result);
if (proceed != true) return;
}
if (!mounted) return;
await saveStockConfigFile(
context,
json: result.config.encode(),
fileName: stockConfigFileName(connector.selfName, DateTime.now()),
subject: l10n.exportConfig_shareSubject,
);
} catch (e) {
messenger.showSnackBar(
SnackBar(content: Text(l10n.exportConfig_failed('$e'))),
);
} finally {
if (mounted) setState(() => _busy = false);
}
}
Future<bool?> _confirmOmissions(StockConfigExportResult result) {
final l10n = context.l10n;
final connector = context.read<MeshCoreConnector>();
return showDialog<bool>(
context: context,
builder: (context) => AlertDialog(
title: Text(l10n.exportConfig_omittedTitle),
content: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
for (final entry in result.omitted.entries)
Padding(
padding: const EdgeInsets.symmetric(vertical: 4),
child: Text(
_omissionText(
context,
sectionLabel(context, entry.key, connector),
entry.value,
),
),
),
],
),
actions: [
TextButton(
onPressed: () => Navigator.of(context).pop(false),
child: Text(l10n.exportConfig_cancel),
),
TextButton(
onPressed: () => Navigator.of(context).pop(true),
child: Text(l10n.exportConfig_exportAnyway),
),
],
),
);
}
}
String _omissionText(
BuildContext context,
String section,
StockConfigOmission reason,
) {
final l10n = context.l10n;
switch (reason) {
case StockConfigOmission.unsupported:
return l10n.exportConfig_omittedUnsupported(section);
case StockConfigOmission.noReply:
return l10n.exportConfig_omittedNoReply(section);
case StockConfigOmission.rejected:
return l10n.exportConfig_omittedRejected(section);
case StockConfigOmission.unavailable:
return l10n.exportConfig_omittedUnavailable(section);
}
}
/// Section titles, shared with the import screen so the two cannot drift.
String sectionLabel(
BuildContext context,
StockConfigSection section,
MeshCoreConnector connector,
) {
final l10n = context.l10n;
switch (section) {
case StockConfigSection.name:
return l10n.stockConfig_sectionName;
case StockConfigSection.identity:
return l10n.stockConfig_sectionIdentity;
case StockConfigSection.radioSettings:
return l10n.stockConfig_sectionRadio;
case StockConfigSection.positionSettings:
return l10n.stockConfig_sectionPosition;
case StockConfigSection.otherSettings:
return l10n.stockConfig_sectionOther;
case StockConfigSection.autoAddSettings:
return l10n.stockConfig_sectionAutoAdd;
case StockConfigSection.channels:
return l10n.stockConfig_sectionChannels(
connector.channels.where((c) => !c.isEmpty).length,
);
case StockConfigSection.contacts:
return l10n.stockConfig_sectionContacts(connector.contacts.length);
}
}
class _SectionTile extends StatelessWidget {
const _SectionTile({
required this.title,
required this.selected,
required this.onChanged,
this.subtitle,
});
final String title;
final String? subtitle;
final bool selected;
final ValueChanged<bool> onChanged;
@override
Widget build(BuildContext context) {
return CheckboxListTile(
value: selected,
onChanged: (value) => onChanged(value ?? false),
controlAffinity: ListTileControlAffinity.trailing,
isThreeLine: subtitle != null,
title: Text(title),
subtitle: subtitle == null ? null : Text(subtitle!),
);
}
}
class _Banner extends StatelessWidget {
const _Banner({required this.text, this.subdued = false});
final String text;
final bool subdued;
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Container(
width: double.infinity,
color: theme.colorScheme.surfaceContainerHighest,
padding: const EdgeInsets.all(12),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Icon(Icons.info_outline, size: 18, color: theme.colorScheme.primary),
const SizedBox(width: 8),
Expanded(
child: Text(
text,
style: subdued ? theme.textTheme.bodySmall : null,
),
),
],
),
);
}
}

@ -0,0 +1,353 @@
/// Stock-compatible config import (#576, epic #568).
///
/// Mirrors the stock app's Import Config screen, including the detail that
/// **nothing is checked by default**. Export opts out, import opts in; that
/// asymmetry is stock's and it is the safe default in each direction.
///
/// The per-section wording is stock's own, because the behavior is stock's own:
/// contacts are upserted, existing channels are never overwritten, and
/// importing an identity is destructive.
library;
import 'dart:convert';
import 'package:file_selector/file_selector.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../connector/meshcore_connector.dart';
import '../l10n/l10n.dart';
import '../models/stock_config.dart';
import '../services/stock_config_export_service.dart' show StockConfigSection;
import '../services/stock_config_import_service.dart';
import '../widgets/adaptive_app_bar_title.dart';
import 'export_config_screen.dart' show sectionLabel;
class ImportConfigScreen extends StatefulWidget {
const ImportConfigScreen({super.key});
@override
State<ImportConfigScreen> createState() => _ImportConfigScreenState();
}
class _ImportConfigScreenState extends State<ImportConfigScreen> {
StockConfig? _config;
/// Starts empty: import is opt-in, matching stock.
final Set<StockConfigSection> _selected = {};
bool _busy = false;
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
final connector = context.watch<MeshCoreConnector>();
final config = _config;
return Scaffold(
appBar: AppBar(
title: AdaptiveAppBarTitle(l10n.importConfig_title),
centerTitle: true,
actions: [
if (config != null)
IconButton(
icon: const Icon(Icons.check),
onPressed: _busy ? null : () => _import(connector, config),
tooltip: l10n.importConfig_title,
),
],
),
body: config == null
? Center(
child: FilledButton.icon(
onPressed: _busy ? null : _pickFile,
icon: const Icon(Icons.folder_open),
label: Text(l10n.importConfig_chooseFile),
),
)
: ListView(
children: [
_Banner(text: l10n.importConfig_instruction),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
TextButton(
onPressed: () =>
setState(() => _selected.addAll(_present(config))),
child: Text(l10n.stockConfig_selectAll),
),
TextButton(
onPressed: () => setState(_selected.clear),
child: Text(l10n.stockConfig_deselectAll),
),
],
),
// Only sections the file actually carries are offered.
for (final section in _present(config))
CheckboxListTile(
value: _selected.contains(section),
controlAffinity: ListTileControlAffinity.trailing,
isThreeLine: _noteFor(section) != null,
title: Text(_titleFor(section, config, connector)),
subtitle: _noteFor(section) == null
? null
: Text(_noteFor(section)!),
onChanged: (value) => setState(() {
if (value ?? false) {
_selected.add(section);
} else {
_selected.remove(section);
}
}),
),
],
),
);
}
/// The sections this particular file carries. A stock export omits whatever
/// the exporting user deselected, so an absent section is normal.
List<StockConfigSection> _present(StockConfig config) {
return [
if (config.name != null) StockConfigSection.name,
if (config.privateKey != null) StockConfigSection.identity,
if (config.radioSettings != null) StockConfigSection.radioSettings,
if (config.positionSettings != null) StockConfigSection.positionSettings,
if (config.otherSettings != null) StockConfigSection.otherSettings,
if (config.autoAddSettings != null) StockConfigSection.autoAddSettings,
if (config.channels != null) StockConfigSection.channels,
if (config.contacts != null) StockConfigSection.contacts,
];
}
String _titleFor(
StockConfigSection section,
StockConfig config,
MeshCoreConnector connector,
) {
final l10n = context.l10n;
// Channel and contact counts come from the FILE here, not the device.
switch (section) {
case StockConfigSection.channels:
return l10n.stockConfig_sectionChannels(config.channels?.length ?? 0);
case StockConfigSection.contacts:
return l10n.stockConfig_sectionContacts(config.contacts?.length ?? 0);
default:
return sectionLabel(context, section, connector);
}
}
String? _noteFor(StockConfigSection section) {
final l10n = context.l10n;
switch (section) {
case StockConfigSection.identity:
return l10n.importConfig_identityWarning;
case StockConfigSection.channels:
return l10n.importConfig_channelsNote;
case StockConfigSection.contacts:
return l10n.importConfig_contactsNote;
default:
return null;
}
}
Future<void> _pickFile() async {
final l10n = context.l10n;
final messenger = ScaffoldMessenger.of(context);
setState(() => _busy = true);
try {
final file = await openFile(
acceptedTypeGroups: const [
XTypeGroup(label: 'JSON', extensions: ['json']),
],
);
if (file == null) return;
final source = utf8.decode(
await file.readAsBytes(),
allowMalformed: true,
);
final parsed = StockConfig.parse(source);
if (!mounted) return;
setState(() {
_config = parsed;
_selected.clear();
});
} on StockConfigFormatException catch (e) {
// The exception carries the offending JSON path, so the user is told
// which part of the file is wrong rather than just "invalid".
messenger.showSnackBar(
SnackBar(content: Text(l10n.importConfig_parseFailed(e.toString()))),
);
} catch (e) {
messenger.showSnackBar(
SnackBar(content: Text(l10n.importConfig_parseFailed('$e'))),
);
} finally {
if (mounted) setState(() => _busy = false);
}
}
Future<void> _import(MeshCoreConnector connector, StockConfig config) async {
final l10n = context.l10n;
final messenger = ScaffoldMessenger.of(context);
if (!connector.isConnected) {
messenger.showSnackBar(
SnackBar(content: Text(l10n.importConfig_notConnected)),
);
return;
}
if (_selected.isEmpty) {
messenger.showSnackBar(
SnackBar(content: Text(l10n.importConfig_nothingSelected)),
);
return;
}
// Replacing the node identity is irreversible, so it gets its own explicit
// confirmation rather than riding along with the rest of the selection.
if (_selected.contains(StockConfigSection.identity)) {
final confirmed = await _confirmIdentityOverwrite();
if (confirmed != true) return;
if (!mounted) return;
}
setState(() => _busy = true);
try {
final result = await StockConfigImportService(
connector,
).apply(config: config, sections: Set.of(_selected));
if (!mounted) return;
await _showResult(result, connector);
} finally {
if (mounted) setState(() => _busy = false);
}
}
Future<bool?> _confirmIdentityOverwrite() {
final l10n = context.l10n;
return showDialog<bool>(
context: context,
builder: (context) => AlertDialog(
title: Text(l10n.importConfig_confirmIdentityTitle),
content: Text(l10n.importConfig_confirmIdentityBody),
actions: [
TextButton(
onPressed: () => Navigator.of(context).pop(false),
child: Text(l10n.importConfig_cancel),
),
TextButton(
onPressed: () => Navigator.of(context).pop(true),
child: Text(l10n.importConfig_confirmIdentityAccept),
),
],
),
);
}
/// Shows what actually happened. Skipped channels and unapplied sections are
/// listed by name with a reason; an import that quietly did less than the
/// user asked for is the silent failure SAFELANE section 6 forbids.
Future<void> _showResult(
StockConfigImportResult result,
MeshCoreConnector connector,
) {
final l10n = context.l10n;
return showDialog<void>(
context: context,
builder: (context) => AlertDialog(
title: Text(l10n.importConfig_resultTitle),
content: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
l10n.importConfig_resultCounts(
result.contactsWritten,
result.channelsAdded,
),
),
if (result.failed.isNotEmpty) ...[
const SizedBox(height: 12),
Text(
l10n.importConfig_resultFailedHeading,
style: Theme.of(context).textTheme.titleSmall,
),
for (final entry in result.failed.entries)
Text(
l10n.importConfig_entryLine(
sectionLabel(context, entry.key, connector),
_reasonText(context, entry.value),
),
),
],
if (result.skippedChannels.isNotEmpty) ...[
const SizedBox(height: 12),
Text(
l10n.importConfig_resultSkippedHeading,
style: Theme.of(context).textTheme.titleSmall,
),
for (final skipped in result.skippedChannels)
Text(
l10n.importConfig_entryLine(
skipped.name,
_reasonText(context, skipped.reason),
),
),
],
],
),
),
actions: [
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: Text(l10n.importConfig_close),
),
],
),
);
}
}
String _reasonText(BuildContext context, StockConfigImportIssue reason) {
final l10n = context.l10n;
switch (reason) {
case StockConfigImportIssue.absentFromFile:
return l10n.importConfig_reasonAbsentFromFile;
case StockConfigImportIssue.noReply:
return l10n.importConfig_reasonNoReply;
case StockConfigImportIssue.unsupported:
return l10n.importConfig_reasonUnsupported;
case StockConfigImportIssue.rejected:
return l10n.importConfig_reasonRejected;
case StockConfigImportIssue.alreadyPresent:
return l10n.importConfig_reasonAlreadyPresent;
case StockConfigImportIssue.noFreeSlot:
return l10n.importConfig_reasonNoFreeSlot;
case StockConfigImportIssue.notWritable:
return l10n.importConfig_reasonNotWritable;
}
}
class _Banner extends StatelessWidget {
const _Banner({required this.text});
final String text;
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Container(
width: double.infinity,
color: theme.colorScheme.surfaceContainerHighest,
padding: const EdgeInsets.all(12),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Icon(Icons.info_outline, size: 18, color: theme.colorScheme.primary),
const SizedBox(width: 8),
Expanded(child: Text(text)),
],
),
);
}
}

@ -103,11 +103,10 @@ class _RepeaterCliScreenState extends State<RepeaterCliScreen> {
if (parsed == null) return;
if (!_matchesRepeaterPrefix(parsed.senderPrefix)) return;
// Notify command service of response (for retry handling)
// Goes to the waiting command's future, which _sendCommand appends to the
// transcript. A reply whose window already closed is logged by the service
// to the app log and deliberately not shown here (#589).
_commandService?.handleResponse(widget.repeater, parsed.text);
// Note: The command service will handle the response via the Future
// We don't need to add it to history here anymore as _sendCommand will do it
}
bool _matchesRepeaterPrefix(Uint8List prefix) {
@ -170,10 +169,15 @@ class _RepeaterCliScreenState extends State<RepeaterCliScreen> {
}
} catch (e) {
if (mounted) {
// A timeout knows the exact window that was armed, so it reports that
// rather than a rounded-up guess (#531).
final text = e is RepeaterCommandTimeout
? context.l10n.repeater_cliCommandTimeout(e.secondsText)
: context.l10n.repeater_cliCommandError(e.toString());
setState(() {
_commandHistory.add({
'type': 'response',
'text': context.l10n.repeater_cliCommandError(e.toString()),
'text': text,
'timestamp': DateTime.now().toString(),
});
});
@ -184,7 +188,10 @@ class _RepeaterCliScreenState extends State<RepeaterCliScreen> {
_historyIndex = -1;
_commandFocusNode.requestFocus();
// Auto-scroll to bottom
_scrollToBottom();
}
void _scrollToBottom() {
Future.delayed(const Duration(milliseconds: 100), () {
if (_scrollController.hasClients) {
_scrollController.animateTo(
@ -450,6 +457,15 @@ class _RepeaterCliScreenState extends State<RepeaterCliScreen> {
itemBuilder: (context, index) {
final entry = _commandHistory[index];
final isCommand = entry['type'] == 'command';
final scheme = Theme.of(context).colorScheme;
final badgeColor = isCommand
? scheme.primaryContainer
: scheme.secondaryContainer;
final badgeIconColor = isCommand
? scheme.onPrimaryContainer
: scheme.onSecondaryContainer;
final badgeIcon = isCommand ? Icons.chevron_right : Icons.arrow_back;
return Padding(
padding: const EdgeInsets.only(bottom: 12),
@ -459,18 +475,10 @@ class _RepeaterCliScreenState extends State<RepeaterCliScreen> {
Container(
padding: const EdgeInsets.all(6),
decoration: BoxDecoration(
color: isCommand
? Theme.of(context).colorScheme.primaryContainer
: Theme.of(context).colorScheme.secondaryContainer,
color: badgeColor,
borderRadius: BorderRadius.circular(4),
),
child: Icon(
isCommand ? Icons.chevron_right : Icons.arrow_back,
size: 16,
color: isCommand
? Theme.of(context).colorScheme.onPrimaryContainer
: Theme.of(context).colorScheme.onSecondaryContainer,
),
child: Icon(badgeIcon, size: 16, color: badgeIconColor),
),
const SizedBox(width: 12),
Expanded(
@ -482,9 +490,7 @@ class _RepeaterCliScreenState extends State<RepeaterCliScreen> {
style: TextStyle(
fontFamily: 'monospace',
fontSize: 13,
color: isCommand
? Theme.of(context).colorScheme.primary
: Theme.of(context).colorScheme.onSurface,
color: isCommand ? scheme.primary : scheme.onSurface,
),
),
],

@ -6,9 +6,13 @@ import '../l10n/l10n.dart';
import '../models/contact.dart';
import '../connector/meshcore_connector.dart';
import '../connector/meshcore_protocol.dart';
import '../models/radio_preset.dart';
import '../services/radio_preset_service.dart';
import '../services/repeater_command_service.dart';
import '../services/storage_service.dart';
import '../widgets/path_management_dialog.dart';
import '../widgets/radio_preset_picker.dart';
import '../helpers/remote_radio_commands.dart';
import '../helpers/snack_bar_builder.dart';
class RepeaterSettingsScreen extends StatefulWidget {
@ -123,6 +127,12 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
int? _spreadingFactor;
int? _codingRate;
/// Apply the radio params with `tempradio` (reverting after the duration)
/// instead of persisting them with `set radio` (#662).
bool _tempRadio = false;
final TextEditingController _tempRadioMinutesController =
TextEditingController(text: '$kTempRadioDefaultMinutes');
// Location settings
final TextEditingController _latController = TextEditingController();
final TextEditingController _lonController = TextEditingController();
@ -150,6 +160,9 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
// Advanced
int _pathHashMode = 0; // 0-2
/// The pending path hash came from a preset rather than the user (#735).
bool _pathHashFromPreset = false;
final TextEditingController _txDelayController = TextEditingController();
final TextEditingController _directTxDelayController =
TextEditingController();
@ -185,8 +198,47 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
_commandService = RepeaterCommandService(connector);
_setupMessageListener();
_loadSettings();
WidgetsBinding.instance.addPostFrameCallback((_) {
if (!mounted) return;
Provider.of<RadioPresetService>(context, listen: false).refreshIfStale();
});
}
/// Fill the radio fields from a preset (#734). TX power is not part of a
/// remote preset: it is a separate command on these nodes.
void _applyPreset(RadioPreset preset) {
setState(() {
_freqController.text = preset.frequencyMHz.toStringAsFixed(3);
final bw = preset.bandwidth.hz;
if (!_bandwidthOptions.contains(bw)) {
_bandwidthOptions
..add(bw)
..sort();
}
_bandwidth = bw;
_spreadingFactor = preset.spreadingFactor.value;
_codingRate = preset.codingRate.value;
final hashMode = preset.pathHashMode;
if (hashMode != null) {
_pathHashMode = hashMode;
_pathHashFromPreset = true;
}
});
_markChanged(_SettingField.radio);
if (preset.pathHashMode != null) {
_markChanged(_SettingField.pathHashMode);
}
}
String? _selectedPresetId(List<RadioPreset> presets) => matchRemotePresetId(
presets,
frequencyText: _freqController.text,
bandwidthHz: _bandwidth,
spreadingFactor: _spreadingFactor,
codingRate: _codingRate,
pathHashMode: _pathHashMode,
);
@override
void dispose() {
_frameSubscription?.cancel();
@ -196,6 +248,7 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
_guestPasswordController.dispose();
_freqController.dispose();
_txPowerController.dispose();
_tempRadioMinutesController.dispose();
_latController.dispose();
_lonController.dispose();
_ownerInfoController.dispose();
@ -709,6 +762,22 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
final repeater = _resolveRepeater(connector);
final tempRadioMinutes = parseTempRadioMinutes(
_tempRadioMinutesController.text,
);
if (_tempRadio &&
_dirtyFields.contains(_SettingField.radio) &&
tempRadioMinutes == null) {
showDismissibleSnackBar(
context,
content: Text(
context.l10n.repeater_tempRadioMinutesInvalid(kTempRadioMaxMinutes),
),
backgroundColor: Colors.red,
);
return;
}
setState(() {
_isLoading = true;
});
@ -750,11 +819,22 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
_codingRate != null) {
final freqText = _freqController.text.trim();
if (double.tryParse(freqText) != null) {
final bwKHz = _bandwidth! / 1000;
pending.add((
field: _SettingField.radio,
command:
'set radio $freqText,$bwKHz,$_spreadingFactor,$_codingRate',
command: _tempRadio
? tempRadioCommand(
freqText,
_bandwidth!,
_spreadingFactor!,
_codingRate!,
tempRadioMinutes!,
)
: setRadioCommand(
freqText,
_bandwidth!,
_spreadingFactor!,
_codingRate!,
),
));
}
}
@ -846,10 +926,15 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
command: 'set owner.info $encoded',
));
}
if (_dirtyFields.contains(_SettingField.pathHashMode)) {
final holdPresetPathHash = !sendsPresetPathHash(
temporaryRadio: _tempRadio,
pathHashFromPreset: _pathHashFromPreset,
);
if (_dirtyFields.contains(_SettingField.pathHashMode) &&
!holdPresetPathHash) {
pending.add((
field: _SettingField.pathHashMode,
command: 'set path.hash.mode $_pathHashMode',
command: setPathHashModeCommand(_pathHashMode),
));
}
if (_dirtyFields.contains(_SettingField.txDelay) &&
@ -893,7 +978,10 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
final retainDirty = <_SettingField>{};
var passwordsFailed = false;
var rebootNeeded = false;
for (final entry in pending) {
for (final entry in withRetuneLast(
pending,
(e) => isRetuneCommand(e.command),
)) {
var failed = false;
try {
final response = await _commandService!.sendCommand(
@ -924,6 +1012,15 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
await Future.delayed(const Duration(milliseconds: 200));
}
// A preset path hash held back from a temporary save stays pending,
// so a later normal save can still apply it.
if (holdPresetPathHash &&
_dirtyFields.contains(_SettingField.pathHashMode)) {
retainDirty.add(_SettingField.pathHashMode);
} else if (!retainDirty.contains(_SettingField.pathHashMode)) {
_pathHashFromPreset = false;
}
// Only clear password fields if every password command succeeded,
// otherwise the user keeps their typed value to retry.
if (!passwordsFailed) {
@ -1249,6 +1346,20 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
onRefresh: _refreshRadioSettings,
),
const Divider(),
Consumer<RadioPresetService>(
builder: (context, service, _) {
final presets = service.presets
.where((p) => !p.offGrid)
.toList();
return RadioPresetPicker(
service: service,
presets: presets,
selectedId: _selectedPresetId(presets),
onSelected: _applyPreset,
);
},
),
const SizedBox(height: 8),
TextField(
controller: _freqController,
decoration: InputDecoration(
@ -1347,6 +1458,43 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
}
},
),
CheckboxListTile(
contentPadding: EdgeInsets.zero,
controlAffinity: ListTileControlAffinity.leading,
title: Text(l10n.repeater_tempRadio),
subtitle: Text(l10n.repeater_tempRadioSubtitle),
value: _tempRadio,
onChanged: (value) {
setState(() => _tempRadio = value ?? false);
_markChanged(_SettingField.radio);
},
),
if (_tempRadio)
TextField(
controller: _tempRadioMinutesController,
decoration: InputDecoration(
labelText: l10n.repeater_tempRadioMinutes,
helperText: l10n.repeater_tempRadioMinutesInvalid(
kTempRadioMaxMinutes,
),
border: const OutlineInputBorder(),
suffixText: 'min',
),
keyboardType: TextInputType.number,
onChanged: (_) => _markChanged(_SettingField.radio),
),
if (_tempRadio &&
_pathHashFromPreset &&
_dirtyFields.contains(_SettingField.pathHashMode))
Padding(
padding: const EdgeInsets.only(top: 8),
child: Text(
l10n.repeater_tempRadioPathHashNote,
style: Theme.of(context).textTheme.bodySmall?.copyWith(
color: Theme.of(context).colorScheme.onSurfaceVariant,
),
),
),
const SizedBox(height: 8),
_buildFeatureToggleRow(
title: l10n.repeater_rxGain,
@ -1976,7 +2124,10 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
],
onChanged: (v) {
if (v != null) {
setState(() => _pathHashMode = v);
setState(() {
_pathHashMode = v;
_pathHashFromPreset = false;
});
_markChanged(_SettingField.pathHashMode);
}
},

@ -133,6 +133,13 @@ class _ScannerScreenState extends State<ScannerScreen> {
if (_bluetoothState == BluetoothAdapterState.off)
_bluetoothOffWarning(context),
// Unconfirmed BLE release: the OS never confirmed the last
// disconnect, so this device may still hold the radio and
// keep it from advertising (#689). Persistent until
// dismissed, per the error-visibility standard.
if (connector.bleReleaseUnconfirmed)
_bleReleaseWarning(context, connector),
// Status bar
_buildStatusBar(context, connector),
@ -339,16 +346,35 @@ class _ScannerScreenState extends State<ScannerScreen> {
);
return;
}
// Never show a raw exception to the user (#522/#698): the full detail
// goes to the log, the snackbar gets a plain-language message and
// persists until dismissed.
appLogger.error('Connect failed: $e', tag: 'ScannerScreen');
if (context.mounted) {
showDismissibleSnackBar(
context,
content: Text(context.l10n.scanner_connectionFailed(e.toString())),
content: Text(
context.l10n.scanner_connectionFailed(_describeConnectError(e)),
),
backgroundColor: Colors.red,
persist: true,
);
}
}
}
String _describeConnectError(Object e) {
final l10n = context.l10n;
if (e is FlutterBluePlusException && e.code == 133) {
return l10n.scanner_connectFailedTransient;
}
if (e is TimeoutException ||
(e is FlutterBluePlusException && e.function == 'connect')) {
return l10n.scanner_connectFailedTimeout;
}
return l10n.scanner_connectFailedGeneric;
}
Future<String?> _promptLinuxPairingPin(
BuildContext context,
String deviceName,
@ -435,6 +461,48 @@ class _ScannerScreenState extends State<ScannerScreen> {
return pin;
}
Widget _bleReleaseWarning(BuildContext context, MeshCoreConnector connector) {
final errorColor = Theme.of(context).colorScheme.error;
return Container(
width: double.infinity,
padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 16),
color: errorColor.withValues(alpha: 0.15),
child: Row(
children: [
Icon(Icons.bluetooth_connected, size: 24, color: errorColor),
const SizedBox(width: 12),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
context.l10n.scanner_bleReleaseWarning,
style: TextStyle(
color: errorColor,
fontWeight: FontWeight.w600,
fontSize: 14,
),
),
const SizedBox(height: 4),
Text(
context.l10n.scanner_bleReleaseWarningMessage,
style: TextStyle(
color: errorColor.withValues(alpha: 0.85),
fontSize: 12,
),
),
],
),
),
TextButton(
onPressed: connector.clearBleReleaseWarning,
child: Text(context.l10n.common_ok),
),
],
),
);
}
Widget _bluetoothOffWarning(BuildContext context) {
final errorColor = Theme.of(context).colorScheme.error;
return Container(

@ -1,4 +1,5 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:flutter/material.dart';
@ -8,6 +9,7 @@ import 'package:provider/provider.dart';
import '../connector/caplog_reassembler.dart';
import '../connector/meshcore_connector.dart';
import '../connector/meshcore_protocol.dart';
import '../helpers/snack_bar_builder.dart';
import '../utils/log_export.dart';
/// Serial-capture diagnostics screen (#430).
@ -37,6 +39,7 @@ class _SerialCaptureScreenState extends State<SerialCaptureScreen> {
int _durationMinutes = 5;
bool _busy = false;
String? _error;
String? _warning;
bool _wasConnected = false;
DateTime? _startedAt;
@ -247,27 +250,48 @@ class _SerialCaptureScreenState extends State<SerialCaptureScreen> {
setState(() {
_busy = true;
_error = null;
_warning = null;
});
try {
final bytes = await c.downloadCaplog();
final result = await c.downloadCaplog();
if (!mounted) return;
if (bytes.isEmpty) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Buffer is empty, nothing to download.'),
),
if (result.bytes.isEmpty) {
showDismissibleSnackBar(
context,
content: const Text('Buffer is empty, nothing to download.'),
);
return;
}
// A truncated capture is kept, not discarded: mark the file partial (so a
// partial log is never mistaken for a complete one) and warn the user, but
// still write and offer to save/share it (#580).
final dir = await getTemporaryDirectory();
final ts = DateTime.now();
final name =
'serial-capture-'
'${ts.year}${_pad2(ts.month)}${_pad2(ts.day)}-'
'${_pad2(ts.hour)}${_pad2(ts.minute)}${_pad2(ts.second)}.txt';
'${_pad2(ts.hour)}${_pad2(ts.minute)}${_pad2(ts.second)}'
'${result.truncated ? '-partial' : ''}.txt';
final file = File('${dir.path}${Platform.pathSeparator}$name');
await file.writeAsBytes(bytes);
if (result.truncated) {
final header = utf8.encode(
'# PARTIAL Offband serial capture: '
'${result.received} of ${result.expected} bytes in '
'${result.chunks} chunks. Incomplete '
'(see OffbandMesh/meshcore-firmware#711).\n\n',
);
await file.writeAsBytes([...header, ...result.bytes]);
} else {
await file.writeAsBytes(result.bytes);
}
if (!mounted) return;
if (result.truncated) {
setState(
() => _warning =
'Partial capture: ${result.received} of ${result.expected} '
'bytes. Saving what was captured.',
);
}
await LogExport.shareFile(
context,
file,
@ -279,8 +303,6 @@ class _SerialCaptureScreenState extends State<SerialCaptureScreen> {
() => _error = 'Device busy (another transfer in progress). Retry.',
);
}
} on CaplogTruncatedException catch (e) {
if (mounted) setState(() => _error = 'Capture truncated: $e');
} on TimeoutException {
if (mounted) setState(() => _error = 'No response from device.');
} catch (e) {
@ -381,6 +403,24 @@ class _SerialCaptureScreenState extends State<SerialCaptureScreen> {
),
),
),
if (_warning != null)
Card(
color: Theme.of(context).colorScheme.tertiaryContainer,
child: Padding(
padding: const EdgeInsets.all(12),
child: Row(
children: [
const Icon(Icons.warning_amber_outlined),
const SizedBox(width: 8),
Expanded(child: Text(_warning!)),
IconButton(
icon: const Icon(Icons.close),
onPressed: () => setState(() => _warning = null),
),
],
),
),
),
Card(
child: Padding(
padding: const EdgeInsets.all(16),
@ -451,7 +491,7 @@ class _SerialCaptureScreenState extends State<SerialCaptureScreen> {
OutlinedButton.icon(
onPressed: _busy || capturing ? null : _download,
icon: Icon(LogExport.icon),
label: const Text('Download & share'),
label: Text('Download & ${LogExport.actionVerb}'),
),
const SizedBox(height: 8),
TextButton.icon(

@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import '../../helpers/snack_bar_builder.dart';
import '../../models/observer_config.dart';
import '../../services/observer_config_service.dart';
@ -133,11 +134,10 @@ class _BrokerEditorScreenState extends State<BrokerEditorScreen> {
}
void _snack(String msg, {bool isError = false}) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(msg),
backgroundColor: isError ? Theme.of(context).colorScheme.error : null,
),
showDismissibleSnackBar(
context,
content: Text(msg),
backgroundColor: isError ? Theme.of(context).colorScheme.error : null,
);
}

@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import '../../helpers/config_profile_diff.dart';
import '../../helpers/config_profile_writes.dart';
import '../../helpers/snack_bar_builder.dart';
import '../../models/config_profile.dart';
import '../../services/observer_apply_service.dart';
import '../../services/observer_config_service.dart';
@ -79,13 +80,12 @@ class _ConfigProfilePreviewScreenState
? '$what applied.'
: '$what: ${result.failures.length} of ${result.items.length} failed '
'(${result.failures.first.error ?? 'error'}).';
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(msg),
backgroundColor: result.allOk
? null
: Theme.of(context).colorScheme.error,
),
showDismissibleSnackBar(
context,
content: Text(msg),
backgroundColor: result.allOk
? null
: Theme.of(context).colorScheme.error,
);
await _load(); // re-diff against true state (partial-save recovery)
} finally {

@ -4,6 +4,7 @@ import 'package:provider/provider.dart';
import '../../connector/meshcore_connector.dart';
import '../../models/observer_config.dart';
import '../../helpers/snack_bar_builder.dart';
import '../../services/observer_config_service.dart';
import 'config_profile_import_screen.dart';
import 'mqtt_brokers_screen.dart';
@ -163,18 +164,16 @@ class _ObserverSettingsViewState extends State<ObserverSettingsView> {
_seedFromConfig(svc.config);
if (!mounted) return;
setState(() => _saving = false);
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(
invalidInterval
? 'Status interval must be 10–3600 seconds'
: ok
? 'Observer settings saved'
: (svc.lastError ??
'Some changes failed. Re-read from the device'),
),
backgroundColor: ok ? null : Theme.of(context).colorScheme.error,
showDismissibleSnackBar(
context,
content: Text(
invalidInterval
? 'Status interval must be 10–3600 seconds'
: ok
? 'Observer settings saved'
: (svc.lastError ?? 'Some changes failed. Re-read from the device'),
),
backgroundColor: ok ? null : Theme.of(context).colorScheme.error,
);
}

@ -1,3 +1,5 @@
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@ -5,14 +7,17 @@ import 'package:meshcore_open/utils/gpx_export.dart';
import 'package:meshcore_open/widgets/elements_ui.dart';
import 'package:provider/provider.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:url_launcher/url_launcher.dart';
import '../connector/meshcore_connector.dart';
import '../connector/meshcore_protocol.dart';
import '../l10n/l10n.dart';
import '../models/offband_gps_status.dart';
import '../models/radio_preset.dart';
import '../models/radio_settings.dart';
import '../services/app_debug_log_service.dart';
import '../services/app_settings_service.dart';
import '../services/radio_preset_service.dart';
import '../connector/observer_config_client.dart';
import '../helpers/snack_bar_builder.dart';
import '../utils/build_info.dart';
@ -24,9 +29,12 @@ import 'settings/blocked_view.dart';
import 'settings/device_ui_view.dart';
import 'app_debug_log_screen.dart';
import 'ble_debug_log_screen.dart';
import 'export_config_screen.dart';
import 'import_config_screen.dart';
import 'serial_capture_screen.dart';
import 'topology_debug_screen.dart';
import 'companion_radio_stats_screen.dart';
import '../widgets/radio_preset_picker.dart';
import '../widgets/sync_progress_overlay.dart';
/// Convert device coding-rate value (1-4 on some firmware, 5-8 on others)
@ -55,12 +63,29 @@ class _SettingsScreenState extends State<SettingsScreen> {
bool _showBatteryVoltage = false;
String _appVersion = '';
// #509 hidden unlock: 7 taps on the version row within a rolling window
// reveals the Experimental settings section.
static const int _experimentalUnlockTaps = 7;
static const Duration _experimentalTapWindow = Duration(seconds: 3);
int _versionTapCount = 0;
DateTime? _lastVersionTap;
// Inline feedback shown in the version row itself (no snackbar: a bottom
// snackbar overlaps the very row being tapped and blocks the next tap).
String? _versionHint;
Timer? _versionHintTimer;
@override
void initState() {
super.initState();
_loadVersionInfo();
}
@override
void dispose() {
_versionHintTimer?.cancel();
super.dispose();
}
Future<void> _loadVersionInfo() async {
final packageInfo = await PackageInfo.fromPlatform();
if (!mounted) return;
@ -69,6 +94,42 @@ class _SettingsScreenState extends State<SettingsScreen> {
});
}
void _handleUnlockTap() {
final l10n = context.l10n;
final settingsService = context.read<AppSettingsService>();
if (settingsService.settings.experimentalUnlocked) {
_versionTapCount = 0;
_setVersionHint(l10n.settings_experimentalAlreadyUnlocked);
return;
}
final now = DateTime.now();
if (_lastVersionTap == null ||
now.difference(_lastVersionTap!) > _experimentalTapWindow) {
_versionTapCount = 0;
}
_lastVersionTap = now;
_versionTapCount++;
final remaining = _experimentalUnlockTaps - _versionTapCount;
if (remaining <= 0) {
_versionTapCount = 0;
settingsService.setExperimentalUnlocked(true);
_setVersionHint(l10n.settings_experimentalUnlocked);
} else if (remaining <= 3) {
_setVersionHint(l10n.settings_experimentalCountdown(remaining));
}
}
void _setVersionHint(String hint) {
_versionHintTimer?.cancel();
setState(() => _versionHint = hint);
_versionHintTimer = Timer(const Duration(seconds: 2), () {
if (mounted) setState(() => _versionHint = null);
});
}
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
@ -90,6 +151,12 @@ class _SettingsScreenState extends State<SettingsScreen> {
offbandCaps: c.offbandCaps ?? 0,
),
);
// Owner-only Experimental section (#509), revealed by the 7-tap gesture on
// the About version row. Selects narrowly so the category list only rebuilds
// when the flag flips, not on every connector update (same reason as above).
final experimentalUnlocked = context.select<AppSettingsService, bool>(
(s) => s.settings.experimentalUnlocked,
);
return [
SettingsCategory(
icon: Icons.badge_outlined,
@ -155,14 +222,75 @@ class _SettingsScreenState extends State<SettingsScreen> {
title: l10n.settings_actions,
builder: _actionsPane,
),
if (experimentalUnlocked)
SettingsCategory(
icon: Icons.science_outlined,
title: l10n.settings_experimental,
subtitle: l10n.settings_experimentalSubtitle,
builder: _experimentalPane,
),
SettingsCategory(
icon: Icons.build_outlined,
title: l10n.settings_debug,
builder: _diagnosticsPane,
),
SettingsCategory(
icon: Icons.info_outline,
title: l10n.settings_about,
builder: _aboutPane,
),
];
}
Widget _experimentalPane(BuildContext context) {
final l10n = context.l10n;
final settingsService = context.watch<AppSettingsService>();
final supportsPktHash = context.select<MeshCoreConnector, bool>(
(c) => c.supportsPktHash,
);
return ListView(
padding: const EdgeInsets.all(16),
children: [
Card(
child: Padding(
padding: const EdgeInsets.all(16),
child: Text(l10n.settings_experimentalDescription),
),
),
const SizedBox(height: 16),
// CoreScope observer counts (#524). Disabled until the connected radio
// advertises the 0xC6 packet-hash capability.
Card(
child: SwitchListTile(
secondary: const Icon(Icons.cloud_outlined),
title: Text(l10n.settings_coreScopeObserverCount),
subtitle: Text(
supportsPktHash
? l10n.settings_coreScopeObserverCountSubtitle
: l10n.settings_coreScopeObserverCountUnsupported,
),
value: settingsService.settings.coreScopeObserverCountEnabled,
onChanged: supportsPktHash
? (value) =>
settingsService.setCoreScopeObserverCountEnabled(value)
: null,
),
),
const SizedBox(height: 16),
// Disable, not just hide: turns off every experimental toggle and
// re-locks the section, so nothing keeps running invisibly (#553).
Card(
child: ListTile(
leading: const Icon(Icons.block),
title: Text(l10n.settings_experimentalDisable),
subtitle: Text(l10n.settings_experimentalDisableSubtitle),
onTap: () => settingsService.disableExperimental(),
),
),
],
);
}
Widget _observerPane(BuildContext context) => const ObserverSettingsView();
Widget _blockedPane(BuildContext context) => const BlockedView();
@ -409,8 +537,6 @@ class _SettingsScreenState extends State<SettingsScreen> {
_buildDebugCard(context),
const SizedBox(height: 16),
_buildExportCard(connector),
const SizedBox(height: 16),
_buildAboutCard(context),
],
);
}
@ -504,11 +630,25 @@ class _SettingsScreenState extends State<SettingsScreen> {
// #397: identity of the running binary, injected at build time and
// independent of the marketing version. Its own line so "which build
// am I on" is answerable at a glance; copyable for bug reports.
// Also the hidden 7-tap Experimental unlock anchor (#509/#553),
// mirroring Android's Software-info build-number gesture.
_buildInfoRow(
l10n.settings_infoBuild,
BuildInfo.stamp,
copyValue: BuildInfo.stamp,
onTap: _handleUnlockTap,
),
if (_versionHint != null)
Padding(
padding: const EdgeInsets.only(top: 2, bottom: 6),
child: Text(
_versionHint!,
style: TextStyle(
fontSize: 12,
color: Theme.of(context).colorScheme.primary,
),
),
),
],
),
),
@ -631,22 +771,105 @@ class _SettingsScreenState extends State<SettingsScreen> {
);
}
Widget _buildAboutCard(BuildContext context) {
// About is its own top-level Settings category (#525/#526), no longer a card
// in the Debug pane. Outbound links (offband.org / Play / donate) added by
// #527 between the info block and the licenses row.
Widget _aboutPane(BuildContext context) {
final l10n = context.l10n;
return Card(
child: ListTile(
leading: const Icon(Icons.info_outline),
title: Text(l10n.settings_about),
subtitle: Text(
l10n.settings_aboutVersion(
_appVersion.isEmpty ? l10n.common_loading : _appVersion,
return ListView(
padding: const EdgeInsets.all(16),
children: [
Card(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ListTile(
leading: const Icon(Icons.info_outline),
title: Text(l10n.appTitle),
subtitle: Text(
l10n.settings_aboutVersion(
_appVersion.isEmpty ? l10n.common_loading : _appVersion,
),
),
),
Padding(
padding: const EdgeInsets.fromLTRB(16, 0, 16, 12),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(l10n.settings_aboutDescription),
const SizedBox(height: 12),
Text(
l10n.settings_aboutLegalese,
style: Theme.of(context).textTheme.bodySmall,
),
const SizedBox(height: 4),
Text(
l10n.settings_aboutPresetsAttribution,
style: Theme.of(context).textTheme.bodySmall,
),
],
),
),
const Divider(height: 1),
ListTile(
leading: const Icon(Icons.language),
title: Text(l10n.settings_aboutWebsite),
trailing: const Icon(Icons.open_in_new, size: 18),
onTap: () => _openExternalUrl('https://offband.org'),
),
ListTile(
leading: const Icon(Icons.shop_outlined),
title: Text(l10n.settings_aboutPlayStore),
trailing: const Icon(Icons.open_in_new, size: 18),
onTap: () => _openExternalUrl(
'https://play.google.com/store/apps/details?id=app.offband.meshcore',
),
),
ListTile(
leading: const Icon(Icons.favorite_outline),
title: Text(l10n.settings_aboutDonate),
trailing: const Icon(Icons.open_in_new, size: 18),
onTap: () => _openExternalUrl('https://offband.org/donate'),
),
const Divider(height: 1),
ListTile(
leading: const Icon(Icons.description_outlined),
title: Text(l10n.settings_aboutLicenses),
trailing: const Icon(Icons.chevron_right),
onTap: () => showLicensePage(
context: context,
applicationName: l10n.appTitle,
applicationVersion: _appVersion.isEmpty ? null : _appVersion,
applicationLegalese: l10n.settings_aboutLegalese,
),
),
],
),
),
onTap: () => _showAbout(context),
),
],
);
}
Future<void> _openExternalUrl(String url) async {
try {
if (await launchUrl(
Uri.parse(url),
mode: LaunchMode.externalApplication,
)) {
return;
}
} catch (_) {
// fall through to the failure message
}
if (mounted) {
showDismissibleSnackBar(
context,
content: Text(context.l10n.settings_aboutLinkFailed),
);
}
}
Widget _buildDebugCard(BuildContext context) {
final l10n = context.l10n;
final settingsService = context.watch<AppSettingsService>();
@ -823,13 +1046,25 @@ class _SettingsScreenState extends State<SettingsScreen> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
child: SelectableText(
value,
style: theme.textTheme.bodyLarge?.copyWith(
color: valueColor,
fontWeight: FontWeight.w500,
),
),
// When the row is tappable, use a plain Text so the value is
// part of the InkWell tap target (a SelectableText would eat
// the tap for selection). Copy is still available via the
// button. (#553)
child: onTap != null
? Text(
value,
style: theme.textTheme.bodyLarge?.copyWith(
color: valueColor,
fontWeight: FontWeight.w500,
),
)
: SelectableText(
value,
style: theme.textTheme.bodyLarge?.copyWith(
color: valueColor,
fontWeight: FontWeight.w500,
),
),
),
IconButton(
icon: const Icon(Icons.copy, size: 18),
@ -838,10 +1073,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
onPressed: () async {
await Clipboard.setData(ClipboardData(text: copyValue));
if (!mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(context.l10n.settings_publicKeyCopied),
),
showDismissibleSnackBar(
context,
content: Text(context.l10n.settings_publicKeyCopied),
);
},
),
@ -1279,22 +1513,6 @@ class _SettingsScreenState extends State<SettingsScreen> {
);
}
void _showAbout(BuildContext context) {
final l10n = context.l10n;
showAboutDialog(
context: context,
applicationName: l10n.appTitle,
applicationVersion: _appVersion.isEmpty
? l10n.common_loading
: _appVersion,
applicationLegalese: l10n.settings_aboutLegalese,
children: [
const SizedBox(height: 16),
Text(l10n.settings_aboutDescription),
],
);
}
Future<void> _gpxExport(
GpxExport exporter,
String name,
@ -1344,6 +1562,30 @@ class _SettingsScreenState extends State<SettingsScreen> {
return Card(
child: Column(
children: [
// Stock-compatible whole-device backup and restore (#568), distinct
// from the GPX exports below, which are map data only.
ListTile(
leading: const Icon(Icons.save_alt),
title: Text(l10n.settings_exportConfig),
subtitle: Text(l10n.settings_configBackupSubtitle),
trailing: const Icon(Icons.chevron_right),
onTap: () => Navigator.of(context).push(
MaterialPageRoute<void>(
builder: (_) => const ExportConfigScreen(),
),
),
),
ListTile(
leading: const Icon(Icons.upload_file),
title: Text(l10n.settings_importConfig),
trailing: const Icon(Icons.chevron_right),
onTap: () => Navigator.of(context).push(
MaterialPageRoute<void>(
builder: (_) => const ImportConfigScreen(),
),
),
),
const Divider(height: 1),
ListTile(
leading: const Icon(Icons.download_outlined),
title: Text(l10n.settings_gpxExportRepeaters),
@ -1795,15 +2037,19 @@ class _RadioSettingsFormState extends State<_RadioSettingsForm> {
LoRaCodingRate _codingRate = LoRaCodingRate.cr4_5;
final _txPowerController = TextEditingController(text: '20');
bool _clientRepeat = false;
int? _selectedPresetIndex;
String? _selectedPresetId;
_RadioSettingsSnapshot? _lastNonRepeatSnapshot;
late final RadioPresetService _presetService;
AppDebugLogService get _appLog =>
Provider.of<AppDebugLogService>(context, listen: false);
List<RadioPreset> get _presets => _presetService.presets;
@override
void initState() {
super.initState();
_presetService = Provider.of<RadioPresetService>(context, listen: false);
// Populate with current settings if available
if (widget.connector.currentFreqHz != null) {
@ -1851,64 +2097,95 @@ class _RadioSettingsFormState extends State<_RadioSettingsForm> {
}
_clientRepeat = widget.connector.clientRepeat ?? false;
_selectedPresetIndex = _findMatchingPresetIndex();
_selectedPresetId = _findMatchingPresetId();
if (_clientRepeat) {
_lastNonRepeatSnapshot =
_sessionRememberedNonRepeatSnapshot() ??
_inferNonRepeatSnapshotForRepeatEnabled();
_selectedPresetIndex = _findMatchingPresetIndexForSnapshot(
_selectedPresetId = _findMatchingPresetIdForSnapshot(
_lastNonRepeatSnapshot!,
);
} else {
_lastNonRepeatSnapshot = _nonRepeatSnapshotForCurrentSelection();
}
_presetService.addListener(_onPresetsChanged);
WidgetsBinding.instance.addPostFrameCallback((_) {
if (!mounted) return;
_logRadioSettingsState('Dialog initialized');
_presetService.refreshIfStale();
});
}
@override
void dispose() {
_presetService.removeListener(_onPresetsChanged);
_frequencyController.dispose();
_txPowerController.dispose();
super.dispose();
}
void _applyPreset(int index) {
/// A refresh can change the list under an open form; re-match the selection.
void _onPresetsChanged() {
if (!mounted) return;
setState(_syncPresetSelection);
}
RadioPreset? _presetById(String? id) {
if (id == null) return null;
return _presets.where((p) => p.id == id).firstOrNull;
}
void _applyPreset(RadioPreset preset) {
setState(() {
_applyPresetState(index);
_applyPresetState(preset);
});
_logRadioSettingsState(
'Applied preset ${RadioSettings.presets[index].$1} (#$index)',
);
_logRadioSettingsState('Applied preset ${preset.title} (${preset.id})');
}
int? _findMatchingPresetIndex() {
return _findMatchingPresetIndexForSnapshot(_currentSnapshot());
String? _findMatchingPresetId() {
return _findMatchingPresetIdForSnapshot(_currentSnapshot());
}
int? _findMatchingPresetIndexForSnapshot(_RadioSettingsSnapshot snapshot) {
for (final i in _visiblePresetIndexes()) {
final preset = RadioSettings.presets[i].$2;
if (preset.frequencyHz == snapshot.frequencyHz &&
preset.bandwidth == snapshot.bandwidth &&
preset.spreadingFactor == snapshot.spreadingFactor &&
preset.codingRate == snapshot.codingRate &&
preset.txPowerDbm == snapshot.txPowerDbm) {
return i;
/// A preset without TX power (every upstream one) matches any power.
bool _presetMatches(
RadioPreset preset,
_RadioSettingsSnapshot snapshot, {
int? frequencyHz,
}) {
// _RadioSettingsSnapshot.frequencyHz is also kHz, despite its name.
return (frequencyHz ?? preset.frequencyKHz) == snapshot.frequencyHz &&
preset.bandwidth == snapshot.bandwidth &&
preset.spreadingFactor == snapshot.spreadingFactor &&
preset.codingRate == snapshot.codingRate &&
(preset.txPowerDbm == null ||
preset.txPowerDbm == snapshot.txPowerDbm) &&
presetPathHashMatches(preset, widget.connector.pathHashByteWidth);
}
String? _findMatchingPresetIdForSnapshot(_RadioSettingsSnapshot snapshot) {
for (final preset in _visiblePresets()) {
if (_presetMatches(preset, snapshot)) {
return preset.id;
}
}
return null;
}
Iterable<int> _visiblePresetIndexes() sync* {
for (var i = 0; i < RadioSettings.presets.length; i++) {
if (_isOffGridPresetIndex(i)) {
continue;
}
yield i;
}
Iterable<RadioPreset> _visiblePresets() => _presets.where((p) => !p.offGrid);
/// The snapshot a preset sets; TX power stays as it is when the preset has
/// none.
_RadioSettingsSnapshot _snapshotForPreset(
RadioPreset preset,
int currentTxPowerDbm,
) {
return _RadioSettingsSnapshot(
frequencyMHz: preset.frequencyMHz,
bandwidth: preset.bandwidth,
spreadingFactor: preset.spreadingFactor,
codingRate: preset.codingRate,
txPowerDbm: preset.txPowerDbm ?? currentTxPowerDbm,
);
}
_RadioSettingsSnapshot _currentSnapshot() {
@ -1923,10 +2200,7 @@ class _RadioSettingsFormState extends State<_RadioSettingsForm> {
);
}
bool _isOffGridPresetIndex(int? index) {
if (index == null) return false;
return RadioSettings.presets[index].$1.startsWith('Off-Grid ');
}
bool _isOffGridPreset(String? id) => _presetById(id)?.offGrid ?? false;
double _offGridFrequencyForBaseFrequency(double baseFrequencyMHz) {
if (baseFrequencyMHz < 500) return 433.0;
@ -1954,7 +2228,7 @@ class _RadioSettingsFormState extends State<_RadioSettingsForm> {
_RadioSettingsSnapshot _nonRepeatSnapshotForCurrentSelection() {
final current = _currentSnapshot();
if (!_isOffGridPresetIndex(_selectedPresetIndex)) {
if (!_isOffGridPreset(_selectedPresetId)) {
return current;
}
return _fallbackNonRepeatSnapshot(current.frequencyMHz);
@ -1968,23 +2242,12 @@ class _RadioSettingsFormState extends State<_RadioSettingsForm> {
_RadioSettingsSnapshot _inferNonRepeatSnapshotForRepeatEnabled() {
final current = _currentSnapshot();
for (final i in _visiblePresetIndexes()) {
final preset = RadioSettings.presets[i].$2;
for (final preset in _visiblePresets()) {
final offGridFreqHz =
(_offGridFrequencyForBaseFrequency(preset.frequencyMHz) * 1000)
.round();
if (offGridFreqHz == current.frequencyHz &&
preset.bandwidth == current.bandwidth &&
preset.spreadingFactor == current.spreadingFactor &&
preset.codingRate == current.codingRate &&
preset.txPowerDbm == current.txPowerDbm) {
return _RadioSettingsSnapshot(
frequencyMHz: preset.frequencyMHz,
bandwidth: preset.bandwidth,
spreadingFactor: preset.spreadingFactor,
codingRate: preset.codingRate,
txPowerDbm: preset.txPowerDbm,
);
if (_presetMatches(preset, current, frequencyHz: offGridFreqHz)) {
return _snapshotForPreset(preset, current.txPowerDbm);
}
}
return _fallbackNonRepeatSnapshot(current.frequencyMHz);
@ -1998,14 +2261,10 @@ class _RadioSettingsFormState extends State<_RadioSettingsForm> {
_txPowerController.text = snapshot.txPowerDbm.toString();
}
void _applyPresetState(int index) {
final preset = RadioSettings.presets[index].$2;
final baseSnapshot = _RadioSettingsSnapshot(
frequencyMHz: preset.frequencyMHz,
bandwidth: preset.bandwidth,
spreadingFactor: preset.spreadingFactor,
codingRate: preset.codingRate,
txPowerDbm: preset.txPowerDbm,
void _applyPresetState(RadioPreset preset) {
final baseSnapshot = _snapshotForPreset(
preset,
int.tryParse(_txPowerController.text) ?? 20,
);
final frequencyMHz = _clientRepeat
? _offGridFrequencyForBaseFrequency(baseSnapshot.frequencyMHz)
@ -2014,13 +2273,13 @@ class _RadioSettingsFormState extends State<_RadioSettingsForm> {
_bandwidth = preset.bandwidth;
_spreadingFactor = preset.spreadingFactor;
_codingRate = preset.codingRate;
_txPowerController.text = preset.txPowerDbm.toString();
_selectedPresetIndex = index;
_txPowerController.text = baseSnapshot.txPowerDbm.toString();
_selectedPresetId = preset.id;
_lastNonRepeatSnapshot = baseSnapshot;
}
void _syncPresetSelection() {
final previousPresetIndex = _selectedPresetIndex;
final previousPresetId = _selectedPresetId;
final previousLastNonRepeat = _lastNonRepeatSnapshot;
if (_clientRepeat) {
final baseSnapshot =
@ -2038,25 +2297,25 @@ class _RadioSettingsFormState extends State<_RadioSettingsForm> {
txPowerDbm: int.tryParse(_txPowerController.text) ?? 20,
);
}
_selectedPresetIndex = _findMatchingPresetIndexForSnapshot(
_selectedPresetId = _findMatchingPresetIdForSnapshot(
_lastNonRepeatSnapshot ?? baseSnapshot,
);
if (previousPresetIndex != _selectedPresetIndex ||
if (previousPresetId != _selectedPresetId ||
previousLastNonRepeat != _lastNonRepeatSnapshot) {
_logRadioSettingsState(
'Preset match updated while repeat enabled: ${_presetLabel(previousPresetIndex)} -> ${_presetLabel(_selectedPresetIndex)}',
'Preset match updated while repeat enabled: ${_presetLabel(previousPresetId)} -> ${_presetLabel(_selectedPresetId)}',
);
}
return;
}
_lastNonRepeatSnapshot = _nonRepeatSnapshotForCurrentSelection();
_selectedPresetIndex = _findMatchingPresetIndexForSnapshot(
_selectedPresetId = _findMatchingPresetIdForSnapshot(
_lastNonRepeatSnapshot!,
);
if (previousPresetIndex != _selectedPresetIndex ||
if (previousPresetId != _selectedPresetId ||
previousLastNonRepeat != _lastNonRepeatSnapshot) {
_logRadioSettingsState(
'Preset sync updated state from ${_presetLabel(previousPresetIndex)} to ${_presetLabel(_selectedPresetIndex)}',
'Preset sync updated state from ${_presetLabel(previousPresetId)} to ${_presetLabel(_selectedPresetId)}',
);
}
}
@ -2151,6 +2410,15 @@ class _RadioSettingsFormState extends State<_RadioSettingsForm> {
),
);
await widget.connector.sendFrame(buildSetRadioTxPowerFrame(txPower));
// A preset that carries a path hash size sets it too (stock
// CMD_SET_PATH_HASH_MODE, #730). Sent whenever the preset has one,
// rather than compared against the reported width, which reads as 1
// when device info is short (#240). Setting the same mode is harmless.
final pathHashMode = _presetById(_selectedPresetId)?.pathHashMode;
if (pathHashMode != null) {
_logRadioSettingsState('Setting preset path hash mode $pathHashMode');
await widget.connector.setPathHashMode(pathHashMode);
}
await widget.connector.refreshDeviceInfo();
final rememberedSnapshot = _clientRepeat
? _lastNonRepeatSnapshot
@ -2177,11 +2445,12 @@ class _RadioSettingsFormState extends State<_RadioSettingsForm> {
}
}
String _presetLabel(int? index) {
if (index == null) {
String _presetLabel(String? id) {
if (id == null) {
return 'custom';
}
return '${RadioSettings.presets[index].$1} (#$index)';
final preset = _presetById(id);
return preset == null ? id : '${preset.title} ($id)';
}
String _formatSnapshot(_RadioSettingsSnapshot? snapshot) {
@ -2205,7 +2474,7 @@ class _RadioSettingsFormState extends State<_RadioSettingsForm> {
'cr=${_codingRate.label} '
'tx=${_txPowerController.text}dBm '
'repeat=$_clientRepeat '
'preset=${_presetLabel(_selectedPresetIndex)} '
'preset=${_presetLabel(_selectedPresetId)} '
'lastNonRepeat=${_formatSnapshot(_lastNonRepeatSnapshot)}',
tag: 'RadioSettings',
);
@ -2214,31 +2483,18 @@ class _RadioSettingsFormState extends State<_RadioSettingsForm> {
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
final presetService = context.watch<RadioPresetService>();
return Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DropdownButtonFormField<int>(
key: ValueKey<int?>(_selectedPresetIndex),
initialValue: _selectedPresetIndex,
decoration: InputDecoration(
labelText: l10n.settings_presets,
border: const OutlineInputBorder(),
),
items: [
for (final i in _visiblePresetIndexes())
DropdownMenuItem(
value: i,
child: Text(RadioSettings.presets[i].$1),
),
],
onChanged: (index) {
if (index != null) {
_applyPreset(index);
}
},
RadioPresetPicker(
service: presetService,
presets: _visiblePresets().toList(),
selectedId: _selectedPresetId,
onSelected: _applyPreset,
),
const SizedBox(height: 16),
const SizedBox(height: 8),
TextField(
controller: _frequencyController,
onChanged: (_) => _handleManualSettingsChanged('frequency'),

@ -182,6 +182,27 @@ class AppSettingsService extends ChangeNotifier {
appLogger.setEnabled(value);
}
Future<void> setExperimentalUnlocked(bool value) async {
await updateSettings(_settings.copyWith(experimentalUnlocked: value));
}
Future<void> setCoreScopeObserverCountEnabled(bool value) async {
await updateSettings(
_settings.copyWith(coreScopeObserverCountEnabled: value),
);
}
/// Turn off every experimental feature flag and re-lock the section (#553).
/// Add each new experimental toggle here so "Disable" truly disables all.
Future<void> disableExperimental() async {
await updateSettings(
_settings.copyWith(
coreScopeObserverCountEnabled: false,
experimentalUnlocked: false,
),
);
}
Future<void> setMapShowDiscoveryContacts(bool value) async {
await updateSettings(_settings.copyWith(mapShowDiscoveryContacts: value));
}

@ -167,6 +167,8 @@ class BleDebugLogService extends ChangeNotifier {
return 'CMD_RESET_PATH';
case cmdRemoveContact:
return 'CMD_REMOVE_CONTACT';
case cmdGetContactByKey:
return 'CMD_GET_CONTACT_BY_KEY';
case cmdReboot:
return 'CMD_REBOOT';
case cmdGetBattAndStorage:

@ -76,6 +76,10 @@ class ConfigSourceService {
return parseConfigProfile(await _get(url));
}
/// Fetch a file's raw text (radio presets, #728). Same cache-busting and
/// failure messages as the catalog and profile fetches.
Future<String> fetchText(String url) => _get(url);
Future<String> _get(String url) async {
final http.Response resp;
try {

@ -0,0 +1,113 @@
import 'dart:convert';
import 'package:http/http.dart' as http;
import '../utils/app_logger.dart';
/// Default CoreScope instance (OKIMesh). Owner-run; its read API is public.
const String kDefaultCoreScopeHost = 'map.okimesh.org';
/// The two counts CoreScope reports for a packet. [observers] is the number of
/// distinct observers (the meaningful reach); [observations] is the total
/// sightings, which counts one observer hearing the packet via several paths
/// more than once (this is the "Observations (N)" number in CoreScope's UI).
class CoreScopeCounts {
const CoreScopeCounts({required this.observers, required this.observations});
final int observers;
final int observations;
}
/// Outcome of a CoreScope query, so the UI can tell "no record of this packet
/// yet" apart from "couldn't reach CoreScope" (#571).
enum CoreScopeStatus { found, notFound, unreachable }
class CoreScopeResult {
const CoreScopeResult(this.status, [this.counts]);
final CoreScopeStatus status;
final CoreScopeCounts? counts;
static const CoreScopeResult notFound = CoreScopeResult(
CoreScopeStatus.notFound,
);
static const CoreScopeResult unreachable = CoreScopeResult(
CoreScopeStatus.unreachable,
);
factory CoreScopeResult.found(CoreScopeCounts counts) =>
CoreScopeResult(CoreScopeStatus.found, counts);
}
/// Queries a CoreScope instance for how many observers reported a given packet,
/// keyed by the firmware/mesh packet hash (#524). Read-only and best-effort:
/// any failure (offline, timeout, non-200, bad body, unknown packet) returns
/// null so the chat UI can silently fall back to radio-only. Never throws.
class CoreScopeService {
CoreScopeService({
http.Client? client,
this.host = kDefaultCoreScopeHost,
this.useTls = true,
this.timeout = const Duration(seconds: 6),
}) : _client = client ?? http.Client();
final http.Client _client;
final String host;
final bool useTls;
final Duration timeout;
/// Distinct observers and total observations for [packetHash] (16 lowercase
/// hex chars). `notFound` = CoreScope reachable but has no record of the hash
/// yet; `unreachable` = network/HTTP/parse error. Never throws.
Future<CoreScopeResult> fetchCounts(String packetHash) async {
if (packetHash.isEmpty) return CoreScopeResult.unreachable;
final uri = Uri(
scheme: useTls ? 'https' : 'http',
host: host,
path: '/api/packets',
queryParameters: {
'hash': packetHash,
'groupByHash': 'true',
'limit': '1',
},
);
appLogger.info('GET $uri', tag: 'CoreScope');
try {
final resp = await _client.get(uri).timeout(timeout);
if (resp.statusCode != 200) {
appLogger.warn(
'HTTP ${resp.statusCode} for hash $packetHash',
tag: 'CoreScope',
);
return CoreScopeResult.unreachable;
}
final body = jsonDecode(resp.body);
if (body is! Map) return CoreScopeResult.unreachable;
final packets = body['packets'];
if (packets is! List) return CoreScopeResult.unreachable;
if (packets.isEmpty) {
appLogger.info('no record yet for $packetHash', tag: 'CoreScope');
return CoreScopeResult.notFound;
}
final first = packets.first;
if (first is! Map) return CoreScopeResult.unreachable;
final observers = first['observer_count'];
if (observers is! num) return CoreScopeResult.unreachable;
final observations = first['observation_count'];
final counts = CoreScopeCounts(
observers: observers.toInt(),
observations: observations is num
? observations.toInt()
: observers.toInt(),
);
appLogger.info(
'observers=${counts.observers} observations=${counts.observations} '
'for $packetHash',
tag: 'CoreScope',
);
return CoreScopeResult.found(counts);
} catch (e) {
appLogger.warn('Query failed for $packetHash: $e', tag: 'CoreScope');
return CoreScopeResult.unreachable;
}
}
void dispose() => _client.close();
}

@ -391,7 +391,74 @@ class MessageRetryService extends ChangeNotifier {
_onMessageResolved(messageId, contact.publicKeyHex);
}
bool updateMessageFromSent(int ackHash, int timeoutMs) {
/// Message ids whose send reached the radio but whose RESP_CODE_SENT has not
/// arrived yet.
List<String> get _sendsAwaitingConfirmation => _sentConfirmationTimers.keys
.where((id) => _pendingMessages[id]?.status == MessageStatus.pending)
.toList();
/// The radio is authoritative for the expected-ACK hash it reports in
/// RESP_CODE_SENT. Firmware forks build the message payload differently, so
/// the hash recomputed locally can disagree while the send itself is fine.
/// When that happened the message stayed pending, the 8s watchdog from #395
/// marked an already-delivered DM failed, and the genuine ACK later matched
/// nothing because every downstream map is only populated on the match path.
/// Captured on a Wadamesh radio in #449.
///
/// This frame is the reply to our own CMD_SEND_TXT_MSG, so adopt the radio's
/// value when exactly one send is awaiting confirmation. With zero or several
/// candidates the correlation would be a guess, so keep the old behaviour.
///
/// [allowed] is false when a channel message is also awaiting its
/// RESP_CODE_SENT. Channel sends share this frame, so adopting there could
/// attach a channel message's confirmation to an unrelated direct message.
String? _adoptUnpredictedSentHash(
String ackHashHex,
RetryServiceConfig config, {
required bool allowed,
}) {
if (!allowed) {
config.debugLogService?.warn(
'RESP_CODE_SENT: ACK hash $ackHashHex matches no pending message and a '
'channel send is also awaiting confirmation, not adopting',
tag: 'AckHash',
);
return null;
}
final awaiting = _sendsAwaitingConfirmation;
if (awaiting.length != 1) {
config.debugLogService?.warn(
'RESP_CODE_SENT: ACK hash $ackHashHex matches no pending message and '
'${awaiting.length} sends are awaiting confirmation, ignoring',
tag: 'AckHash',
);
return null;
}
final messageId = awaiting.first;
final message = _pendingMessages[messageId];
final text = message?.text ?? '';
final shortText = text.length > 20 ? '${text.substring(0, 20)}...' : text;
config.debugLogService?.warn(
'RESP_CODE_SENT: ACK hash $ackHashHex is not the hash we predicted, '
'adopting the radio value for "$shortText" (the radio is authoritative, '
'see #449)',
tag: 'AckHash',
);
// Drop the stale prediction so it cannot mis-match a later reply.
_expectedHashToMessageId.removeWhere((_, id) => id == messageId);
return messageId;
}
/// [allowUnpredictedAdoption] must be false when a channel message is also
/// awaiting its RESP_CODE_SENT, because that frame could belong to either.
bool updateMessageFromSent(
int ackHash,
int timeoutMs, {
bool allowUnpredictedAdoption = true,
}) {
final config = _config;
if (config == null) return false;
@ -424,8 +491,15 @@ class MessageRetryService extends ChangeNotifier {
}
if (messageId == null || contact == null) {
debugPrint('No pending message found for ACK hash: $ackHashHex');
return false;
final adopted = _adoptUnpredictedSentHash(
ackHashHex,
config,
allowed: allowUnpredictedAdoption,
);
if (adopted == null) return false;
messageId = adopted;
contact = _pendingContacts[adopted];
if (contact == null) return false;
}
final message = _pendingMessages[messageId]!;

@ -38,16 +38,16 @@ class ObserverApplyService {
}
for (final b in writes.brokers) {
// Profiles never set broker enabled (#456), preserve the device's current
// state: read wasLive for the safe-save dance and re-enable to the same.
final current = await _svc.getBroker(b.slot);
final wasLive = current?.enabled ?? false;
// Import NEVER touches enabled state (#470, owner directive): a config
// import carries no enabled/disabled, and the firmware already force-
// disables a slot on any field write (#53). We do not re-enable; the slot
// is left DISABLED and the operator re-enables intentionally. Prior enabled
// state is not carried over.
final res = await _svc.saveBroker(
b.slot,
fields: b.fields,
enable: wasLive,
wasLive: wasLive,
enable: false,
wasLive: false,
);
items.add(
res.ok

@ -0,0 +1,217 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart' show rootBundle;
import 'package:shared_preferences/shared_preferences.dart';
import '../models/radio_preset.dart';
import '../storage/prefs_manager.dart';
import '../utils/app_logger.dart';
import 'config_source_service.dart';
/// Where the preset files are published (OffbandMesh/config-profiles, #721).
const String kRadioPresetBaseUrl =
'https://raw.githubusercontent.com/OffbandMesh/config-profiles/main/radio-presets/';
const String kUpstreamPresetFile = 'meshcore-upstream.json';
const String kOverlayPresetFile = 'offband.json';
/// The copies bundled with the app, so the picker works offline.
const String kRadioPresetAssetDir = 'assets/radio_presets/';
const String _prefsPrefix = 'radio_presets_v1_';
const String _prefsRefreshedKey = '${_prefsPrefix}refreshed_at';
typedef PresetTextLoader = Future<String> Function(String location);
/// The regional radio preset list (#728): MeshCore's upstream presets plus
/// Offband's overlay, merged with the overlay winning on a matching title.
///
/// Starts from the last good copy (or the bundled one), and refreshes from
/// config-profiles on demand. A file that fails to fetch or parse never
/// replaces a good copy; the failure is logged and kept in [refreshError] so
/// the picker can show it.
class RadioPresetService extends ChangeNotifier {
RadioPresetService({
PresetTextLoader? fetch,
PresetTextLoader? loadAsset,
SharedPreferences? prefs,
DateTime Function()? clock,
}) : _fetch = fetch,
_loadAsset = loadAsset ?? rootBundle.loadString,
_prefsOverride = prefs,
_clock = clock ?? DateTime.now;
final PresetTextLoader? _fetch;
final PresetTextLoader _loadAsset;
final SharedPreferences? _prefsOverride;
final DateTime Function() _clock;
ConfigSourceService? _source;
SharedPreferences get _prefs => _prefsOverride ?? PrefsManager.instance;
RadioPresetParseResult _upstream = const RadioPresetParseResult([], 0);
RadioPresetParseResult _overlay = const RadioPresetParseResult([], 0);
List<RadioPreset> _presets = const [];
String? _refreshError;
DateTime? _lastRefreshed;
bool _refreshing = false;
List<RadioPreset> get presets => _presets;
/// Entries left out of the files in use because they were malformed.
int get skipped => _upstream.skipped + _overlay.skipped;
/// Why the last refresh (or load) failed, or null when it succeeded.
String? get refreshError => _refreshError;
DateTime? get lastRefreshed => _lastRefreshed;
bool get refreshing => _refreshing;
/// Load the last good copy of each file, falling back to the bundled one.
Future<void> load() async {
final errors = <String>[];
_upstream = await _loadLocal(
kUpstreamPresetFile,
parseUpstreamPresets,
errors,
);
_overlay = await _loadLocal(
kOverlayPresetFile,
parseOverlayPresets,
errors,
);
final stamp = _prefs.getString(_prefsRefreshedKey);
_lastRefreshed = stamp == null ? null : DateTime.tryParse(stamp);
_refreshError = errors.isEmpty ? null : errors.join('; ');
_rebuild();
}
/// Refresh when the copy in use is older than [maxAge] or was never
/// refreshed. Returns whether a refresh ran and succeeded.
Future<bool> refreshIfStale({
Duration maxAge = const Duration(hours: 12),
}) async {
final last = _lastRefreshed;
if (last != null && _clock().difference(last) < maxAge) return false;
return refresh();
}
/// Fetch both files from config-profiles. Each file that parses replaces
/// its copy and is saved as the new last good copy; each that fails keeps
/// the copy in use. Returns true only when both succeeded.
Future<bool> refresh() async {
if (_refreshing) return false;
_refreshing = true;
notifyListeners();
final errors = <String>[];
final upstream = await _fetchRemote(
kUpstreamPresetFile,
parseUpstreamPresets,
errors,
);
final overlay = await _fetchRemote(
kOverlayPresetFile,
parseOverlayPresets,
errors,
);
if (upstream != null) _upstream = upstream;
if (overlay != null) _overlay = overlay;
if (errors.isEmpty) {
_lastRefreshed = _clock();
await _prefs.setString(
_prefsRefreshedKey,
_lastRefreshed!.toIso8601String(),
);
_refreshError = null;
} else {
_refreshError = errors.join('; ');
}
_refreshing = false;
_rebuild();
return errors.isEmpty;
}
Future<RadioPresetParseResult> _loadLocal(
String file,
RadioPresetParseResult Function(String) parse,
List<String> errors,
) async {
final cached = _prefs.getString('$_prefsPrefix$file');
if (cached != null) {
try {
return parse(cached);
} catch (e) {
appLogger.warn(
'Saved copy of $file unusable, using the bundled one: $e',
tag: 'RadioPresets',
);
}
}
try {
return parse(await _loadAsset('$kRadioPresetAssetDir$file'));
} catch (e) {
appLogger.error('Bundled $file failed to load: $e', tag: 'RadioPresets');
errors.add('$file: $e');
return const RadioPresetParseResult([], 0);
}
}
Future<RadioPresetParseResult?> _fetchRemote(
String file,
RadioPresetParseResult Function(String) parse,
List<String> errors,
) async {
final url = '$kRadioPresetBaseUrl$file';
try {
final text = _fetch != null
? await _fetch(url)
: await (_source ??= ConfigSourceService()).fetchText(url);
final parsed = parse(text);
if (parsed.presets.isEmpty) {
throw RadioPresetFormatException('$file has no usable presets');
}
await _prefs.setString('$_prefsPrefix$file', text);
if (parsed.skipped > 0) {
appLogger.warn(
'$file: ${parsed.skipped} malformed preset(s) skipped',
tag: 'RadioPresets',
);
}
return parsed;
} catch (e) {
appLogger.warn('Refreshing $file failed: $e', tag: 'RadioPresets');
errors.add('$file: $e');
return null;
}
}
void _rebuild() {
_presets = mergeRadioPresets(_upstream.presets, _overlay.presets);
notifyListeners();
}
@override
void dispose() {
_source?.dispose();
super.dispose();
}
}
/// Upstream presets plus the overlay. An overlay entry whose title matches an
/// upstream one (ignoring case) replaces it. Sorted by region, then title.
List<RadioPreset> mergeRadioPresets(
List<RadioPreset> upstream,
List<RadioPreset> overlay,
) {
final byTitle = <String, RadioPreset>{
for (final p in upstream) p.title.toLowerCase(): p,
};
for (final p in overlay) {
byTitle[p.title.toLowerCase()] = p;
}
final merged = byTitle.values.toList()
..sort((a, b) {
final r = a.region.toLowerCase().compareTo(b.region.toLowerCase());
return r != 0
? r
: a.title.toLowerCase().compareTo(b.title.toLowerCase());
});
return merged;
}

@ -1,8 +1,66 @@
import 'dart:async';
import 'package:flutter/foundation.dart';
import '../models/contact.dart';
import '../models/path_selection.dart';
import '../connector/meshcore_connector.dart';
import '../connector/meshcore_protocol.dart';
import '../utils/app_logger.dart';
/// A repeater reply that arrived with no command waiting to receive it.
///
/// [command] carries the original request when the reply could be traced back
/// to one that already timed out, and is null when the reply cannot be
/// attributed to anything this service sent.
class UnmatchedRepeaterResponse {
final String repeaterKeyHex;
final String response;
final String? command;
final Duration? sinceTimeout;
const UnmatchedRepeaterResponse({
required this.repeaterKeyHex,
required this.response,
this.command,
this.sinceTimeout,
});
/// True when this answers a request that timed out rather than arriving
/// unsolicited.
bool get isLateReply => command != null;
}
/// Thrown when a CLI command's window closes with no reply.
///
/// Carries the window that was actually armed, so callers can report the real
/// figure. The previous message printed `(timeoutMs / 1000).ceil()`, so a
/// 4074 ms window announced "timeout after 5 seconds": every window in
/// (4000, 5000] reported the same 5, and the number shown was never the number
/// used (#531).
class RepeaterCommandTimeout implements Exception {
final String command;
final int timeoutMs;
const RepeaterCommandTimeout({
required this.command,
required this.timeoutMs,
});
/// The armed window in seconds to one decimal, e.g. `28.7`.
String get secondsText => (timeoutMs / 1000).toStringAsFixed(1);
/// Non-localized fallback for logs and for callers without a
/// [BuildContext]. UI paths should prefer [secondsText] with their own
/// localized string.
@override
String toString() => 'Command timed out after $secondsText seconds';
}
class _ExpiredCommand {
final String command;
final DateTime expiredAt;
const _ExpiredCommand({required this.command, required this.expiredAt});
}
class RepeaterCommandService {
final MeshCoreConnector _connector;
@ -10,10 +68,27 @@ class RepeaterCommandService {
final Map<String, Timer> _commandTimeouts = {};
final Map<String, String> _commandPrefixes = {};
final Map<String, String> _pendingByPrefix = {};
final Map<String, _ExpiredCommand> _expiredCommands = {};
int _prefixCounter = 0;
static const int maxRetries = 5;
/// How long a timed-out command stays remembered so a reply arriving after
/// its window can still be presented with the request it answers.
static const Duration lateReplyRetention = Duration(minutes: 2);
/// Invoked when a reply cannot be handed to a waiting command.
///
/// Every such reply is already written to the app log by
/// [_surfaceUnmatchedResponse], which is the diagnostics channel and is what
/// keeps this from being a silent drop (#528).
///
/// This sink exists for tests and for any future diagnostics view. **No
/// screen wires it.** Late arrivals became ordinary noise once #529 widened
/// the window, and the owner asked for them off the UI: log them, do not put
/// them in front of users (#589).
void Function(UnmatchedRepeaterResponse)? onUnmatchedResponse;
RepeaterCommandService(this._connector);
/// Send a CLI command to a repeater with automatic retries
@ -27,6 +102,7 @@ class RepeaterCommandService {
}) async {
final attemptCount = retries < 1 ? 1 : retries;
final selection = await _connector.preparePathForContactSend(repeater);
final attemptPrefixes = <String>[];
for (int attempt = 0; attempt < attemptCount; attempt++) {
onAttempt?.call(attempt + 1);
@ -36,7 +112,13 @@ class RepeaterCommandService {
command,
selection,
attempt,
attemptPrefixes,
);
// The caller has its answer, so a straggler from an earlier attempt of
// this same command is noise rather than a lost response.
for (final prefix in attemptPrefixes) {
_expiredCommands.remove(prefix);
}
onResponse?.call(response);
return response;
} catch (e) {
@ -52,14 +134,13 @@ class RepeaterCommandService {
String command,
PathSelection selection,
int attempt,
List<String> attemptPrefixes,
) async {
final repeaterKey = repeater.publicKeyHex;
final prefix = _nextPrefixToken();
final commandId = '${repeaterKey}_$prefix';
final completer = Completer<String>();
_pendingCommands[commandId] = completer;
_commandPrefixes[commandId] = prefix;
_pendingByPrefix[prefix] = commandId;
final completer = _registerPending(commandId, prefix);
attemptPrefixes.add(prefix);
try {
final framedCommand = '$prefix$command';
@ -81,11 +162,10 @@ class RepeaterCommandService {
final responseBytes = frame.length > maxFrameSize
? frame.length
: maxFrameSize;
final timeoutMs = _connector.calculateTimeout(
final timeoutMs = _connector.calculateCliTimeout(
pathLength: pathLengthValue,
messageBytes: responseBytes,
);
final timeoutSeconds = (timeoutMs / 1000).ceil();
await _connector.sendFrame(frame);
_commandTimeouts[commandId]?.cancel();
_commandTimeouts[commandId] = Timer(
@ -93,8 +173,19 @@ class RepeaterCommandService {
() {
final completer = _pendingCommands[commandId];
if (completer != null && !completer.isCompleted) {
// Prune here as well as on receive. A run of commands that all
// time out with no traffic coming back would otherwise accumulate
// records until disposal, since handleResponse is the only other
// place that prunes and it never runs (Gemini review).
_pruneExpiredCommands();
// Remember what this prefix asked so a reply arriving after the
// window can still reach the user with its question attached.
_expiredCommands[prefix] = _ExpiredCommand(
command: command,
expiredAt: DateTime.now(),
);
completer.completeError(
'Command timeout after $timeoutSeconds seconds',
RepeaterCommandTimeout(command: command, timeoutMs: timeoutMs),
);
_cleanup(commandId);
}
@ -114,29 +205,129 @@ class RepeaterCommandService {
/// Call this when a text message response is received from a repeater
void handleResponse(Contact repeater, String responseText) {
// Find pending command for this repeater and complete it
final repeaterKey = repeater.publicKeyHex;
_pruneExpiredCommands();
String? commandId;
String? prefix;
String responsePayload = responseText;
if (responseText.length >= 3 && responseText[2] == '|') {
final prefix = responseText.substring(0, 3);
commandId = _pendingByPrefix[prefix];
prefix = responseText.substring(0, 3);
responsePayload = responseText.substring(3).trimLeft();
}
commandId ??= _pendingCommands.keys.firstWhere(
(id) => id.startsWith(repeaterKey),
orElse: () => '',
);
// A reply that carries a prefix is self-identifying. If that prefix matches
// nothing pending, the answer belongs to a command that already completed
// or expired, and forcing it onto whatever else is in flight would report
// one command's output as another command's result (#532). Only a reply
// with no prefix at all, which carries no correlation token, may fall back
// to matching by repeater.
final matchedId = prefix != null ? _pendingByPrefix[prefix] : null;
final commandId =
matchedId ?? (prefix != null ? '' : _solePendingFor(repeaterKey));
if (commandId.isEmpty) return;
if (commandId.isNotEmpty) {
final completer = _pendingCommands[commandId];
if (completer != null && !completer.isCompleted) {
completer.complete(responsePayload);
_cleanup(commandId);
return;
}
}
final completer = _pendingCommands[commandId];
if (completer != null && !completer.isCompleted) {
completer.complete(responsePayload);
_cleanup(commandId);
// Nothing is waiting for this reply. It is still a real answer from the
// repeater, so it gets surfaced and logged rather than dropped (#528).
_surfaceUnmatchedResponse(repeaterKey, prefix, responsePayload);
}
void _surfaceUnmatchedResponse(
String repeaterKey,
String? prefix,
String responsePayload,
) {
final expired = prefix != null ? _expiredCommands.remove(prefix) : null;
final sinceTimeout = expired == null
? null
: DateTime.now().difference(expired.expiredAt);
if (expired != null) {
appLogger.warn(
'Late reply to "${expired.command}" from $repeaterKey arrived '
'${sinceTimeout!.inMilliseconds}ms after its window closed: '
'$responsePayload',
tag: 'RepeaterCommand',
);
} else {
appLogger.warn(
'Reply from $repeaterKey matched no pending or recently expired '
'command (prefix: ${prefix ?? 'none'}): $responsePayload',
tag: 'RepeaterCommand',
);
}
onUnmatchedResponse?.call(
UnmatchedRepeaterResponse(
repeaterKeyHex: repeaterKey,
response: responsePayload,
command: expired?.command,
sinceTimeout: sinceTimeout,
),
);
}
/// The one command awaiting a reply from [repeaterKey], or `''` when that is
/// ambiguous.
///
/// An unprefixed reply carries no correlation token, so position is all that
/// is left to match on. Firmware only echoes the prefix when the command is
/// longer than four characters including it (`simple_repeater/MyMesh.cpp`
/// `strlen(command) > 4 && command[2] == '|'`), so a very short command can
/// legitimately answer without one and the fallback has to stay.
///
/// It is only sound with exactly one candidate though. With two or more,
/// "first" is map-iteration order, and choosing one would hand a caller
/// another command's output. Ambiguity is surfaced instead of guessed.
String _solePendingFor(String repeaterKey) {
String? only;
for (final id in _pendingCommands.keys) {
if (!id.startsWith(repeaterKey)) continue;
if (only != null) return '';
only = id;
}
return only ?? '';
}
Completer<String> _registerPending(String commandId, String prefix) {
final completer = Completer<String>();
_pendingCommands[commandId] = completer;
_commandPrefixes[commandId] = prefix;
_pendingByPrefix[prefix] = commandId;
return completer;
}
/// Puts a command in flight without performing the send, so a test can set up
/// two concurrent commands to one repeater. Deliberately routes through the
/// same [_registerPending] the real send path uses, so the two cannot drift.
@visibleForTesting
Future<String> registerPendingForTest(String repeaterKeyHex, String prefix) =>
_registerPending('${repeaterKeyHex}_$prefix', prefix).future;
/// Records a timed-out command so a reply arriving later can still be
/// attributed to it. Exposed because a test cannot drive a real
/// send-then-time-out cycle without a connected transport.
@visibleForTesting
void recordExpiredCommandForTest(String prefix, String command) {
_expiredCommands[prefix] = _ExpiredCommand(
command: command,
expiredAt: DateTime.now(),
);
}
void _pruneExpiredCommands() {
if (_expiredCommands.isEmpty) return;
final cutoff = DateTime.now().subtract(lateReplyRetention);
_expiredCommands.removeWhere(
(_, entry) => entry.expiredAt.isBefore(cutoff),
);
}
void _cleanup(String commandId) {
@ -157,6 +348,8 @@ class RepeaterCommandService {
_pendingCommands.clear();
_commandPrefixes.clear();
_pendingByPrefix.clear();
_expiredCommands.clear();
onUnmatchedResponse = null;
}
String _nextPrefixToken() {

@ -0,0 +1,260 @@
/// Builds a stock-compatible config export from the connected device (#573,
/// epic #568).
///
/// The wire format lives in `models/stock_config.dart`; this service is only
/// concerned with reading live state and mapping it across. Section selection
/// mirrors stock's Export Config screen, where every section is individually
/// checkable and the file simply omits what was not selected.
library;
import 'dart:typed_data';
import '../connector/meshcore_connector.dart';
import '../models/channel.dart';
import '../models/contact.dart';
import '../models/stock_config.dart';
/// One checkbox on the export screen. [identity] covers the public and private
/// key together, matching stock's single "Private Identity Key" control.
enum StockConfigSection {
name,
identity,
radioSettings,
positionSettings,
otherSettings,
autoAddSettings,
channels,
contacts,
}
/// Why a requested section did not make it into the file.
enum StockConfigOmission {
/// The device is not connected, or did not answer in time.
noReply,
/// The radio's firmware was built without the feature. Retrying is pointless.
unsupported,
/// The device refused the request.
rejected,
/// The device has not reported this value, so there is nothing to write.
unavailable,
}
/// The outcome of an export attempt.
///
/// [omitted] is the important half: a section the user ticked that could not be
/// gathered must be reported, never dropped quietly. The export screen shows
/// these before writing the file.
class StockConfigExportResult {
const StockConfigExportResult({
required this.config,
required this.included,
required this.omitted,
});
final StockConfig config;
final Set<StockConfigSection> included;
final Map<StockConfigSection, StockConfigOmission> omitted;
bool get isComplete => omitted.isEmpty;
}
class StockConfigExportService {
StockConfigExportService(this._connector);
final MeshCoreConnector _connector;
/// Gathers [sections] from the connected device.
///
/// Reading the identity is the only step that talks to the radio; everything
/// else is already in connector state from the SELF_INFO handshake and the
/// contact and channel syncs.
Future<StockConfigExportResult> build({
required Set<StockConfigSection> sections,
}) async {
final included = <StockConfigSection>{};
final omitted = <StockConfigSection, StockConfigOmission>{};
void include(StockConfigSection section) => included.add(section);
void omit(StockConfigSection section, StockConfigOmission why) =>
omitted[section] = why;
String? name;
if (sections.contains(StockConfigSection.name)) {
name = _connector.selfName;
if (name == null) {
omit(StockConfigSection.name, StockConfigOmission.unavailable);
} else {
include(StockConfigSection.name);
}
}
Uint8List? publicKey;
Uint8List? privateKey;
if (sections.contains(StockConfigSection.identity)) {
final result = await _connector.exportPrivateKey();
switch (result.outcome) {
case IdentityTransfer.ok:
// The keys travel as a pair, so a missing public key means we write
// neither rather than half an identity.
final self = _connector.selfPublicKey;
if (self == null) {
omit(StockConfigSection.identity, StockConfigOmission.unavailable);
} else {
publicKey = self;
privateKey = result.identity;
include(StockConfigSection.identity);
}
case IdentityTransfer.unsupported:
omit(StockConfigSection.identity, StockConfigOmission.unsupported);
case IdentityTransfer.rejected:
omit(StockConfigSection.identity, StockConfigOmission.rejected);
case IdentityTransfer.noReply:
omit(StockConfigSection.identity, StockConfigOmission.noReply);
}
}
StockRadioSettings? radio;
if (sections.contains(StockConfigSection.radioSettings)) {
radio = _buildRadioSettings();
if (radio == null) {
omit(StockConfigSection.radioSettings, StockConfigOmission.unavailable);
} else {
include(StockConfigSection.radioSettings);
}
}
StockPositionSettings? position;
if (sections.contains(StockConfigSection.positionSettings)) {
position = StockPositionSettings(
latitude: _connector.selfLatitude ?? 0,
longitude: _connector.selfLongitude ?? 0,
);
include(StockConfigSection.positionSettings);
}
StockOtherSettings? other;
if (sections.contains(StockConfigSection.otherSettings)) {
other = StockOtherSettings(
// The raw device byte, not the connector's inverted convenience flag.
manualAddContacts: _connector.manualAddContactsRaw,
advertLocationPolicy: _connector.advertLocationPolicy,
);
include(StockConfigSection.otherSettings);
}
StockAutoAddSettings? autoAdd;
if (sections.contains(StockConfigSection.autoAddSettings)) {
autoAdd = StockAutoAddSettings(
autoAddChat: _connector.autoAddUsers ?? false,
autoAddRepeater: _connector.autoAddRepeaters ?? false,
autoAddRoomServer: _connector.autoAddRoomServers ?? false,
autoAddSensor: _connector.autoAddSensors ?? false,
overwriteOldest: _connector.autoAddOverwriteOldest ?? false,
autoAddMaxHops: _connector.autoAddMaxHops,
);
include(StockConfigSection.autoAddSettings);
}
List<StockChannel>? channels;
if (sections.contains(StockConfigSection.channels)) {
channels = [
for (final channel in _connector.channels)
if (!channel.isEmpty) toStockChannel(channel),
];
include(StockConfigSection.channels);
}
List<StockContact>? contacts;
if (sections.contains(StockConfigSection.contacts)) {
contacts = [
for (final contact in _connector.contacts) toStockContact(contact),
];
include(StockConfigSection.contacts);
}
return StockConfigExportResult(
config: StockConfig(
name: name,
publicKey: publicKey,
privateKey: privateKey,
radioSettings: radio,
positionSettings: position,
otherSettings: other,
autoAddSettings: autoAdd,
channels: channels,
contacts: contacts,
),
included: included,
omitted: omitted,
);
}
/// Null until the device has reported its radio parameters. Partial radio
/// state is never written: stock's reader takes the five values together.
StockRadioSettings? _buildRadioSettings() {
// `currentFreqHz` is misnamed: the value is kHz, which is what stock's
// `frequency` field also carries, so it passes through unconverted.
// `currentBwHz` really is Hz, matching stock's `bandwidth`. The units
// differ between the two fields in both our state and the file.
final frequencyKhz = _connector.currentFreqHz;
final bandwidthHz = _connector.currentBwHz;
final sf = _connector.currentSf;
final cr = _connector.currentCr;
final txPower = _connector.currentTxPower;
if (frequencyKhz == null ||
bandwidthHz == null ||
sf == null ||
cr == null ||
txPower == null) {
return null;
}
return StockRadioSettings(
frequencyKhz: frequencyKhz,
bandwidthHz: bandwidthHz,
spreadingFactor: sf,
codingRate: cr,
txPower: txPower,
);
}
}
/// Maps one of our channels onto the stock record. The channel's index is not
/// written: stock derives it from array position.
StockChannel toStockChannel(Channel channel) =>
StockChannel(name: channel.name, secret: channel.psk);
/// Maps one of our contacts onto the stock record.
StockContact toStockContact(Contact contact) {
return StockContact(
type: contact.type,
name: contact.name,
publicKey: contact.publicKey,
flags: contact.flags,
latitude: contact.latitude ?? 0,
longitude: contact.longitude ?? 0,
lastAdvert: _epochSeconds(contact.lastSeen),
lastModified: _epochSeconds(contact.lastModified ?? contact.lastSeen),
outPath: _toStockOutPath(contact),
);
}
/// Our path is a hash count plus a per-hop width (#309); stock writes one
/// comma-separated hash per hop, so the width survives as each element's
/// length. A flood route (`pathLength` of -1) and an empty path both mean
/// "no route", which stock spells as a null field.
StockOutPath? _toStockOutPath(Contact contact) {
if (contact.pathLength <= 0 || contact.path.isEmpty) return null;
final width = contact.pathHashWidth;
if (!kStockPathHashWidths.contains(width)) return null;
final usable = contact.pathLength * width;
if (usable > contact.path.length) return null;
return StockOutPath(
hashWidth: width,
bytes: Uint8List.sublistView(contact.path, 0, usable),
);
}
int _epochSeconds(DateTime time) => time.millisecondsSinceEpoch ~/ 1000;

@ -0,0 +1,396 @@
/// Applies a stock-compatible config file to the connected device (#575,
/// epic #568).
///
/// Merge semantics deliberately match the stock app, which states them on its
/// own Import Config screen:
///
/// * **Contacts**: "New contacts will be added. Existing contacts will be
/// updated." An upsert keyed on public key. Nothing is ever deleted.
/// * **Channels**: "New channels will be added. Existing channels will not
/// change." Purely additive, so a rotated PSK for a channel the user already
/// has does not apply.
/// * **Identity**: "Importing this private key will overwrite your current
/// identity." Destructive, and the caller must have confirmed with the user.
///
/// We match that behavior but not stock's silence about it: anything skipped
/// comes back in [StockConfigImportResult] so the UI can name it. A channel
/// that quietly failed to import is exactly the kind of silent no-op SAFELANE
/// section 6 forbids.
library;
import 'dart:typed_data';
import '../connector/meshcore_connector.dart';
import '../connector/meshcore_protocol.dart';
import '../models/channel.dart';
import '../models/stock_config.dart';
import 'stock_config_export_service.dart' show StockConfigSection;
/// Why a section or a single channel was not applied.
enum StockConfigImportIssue {
/// The file did not contain this section.
absentFromFile,
/// The device is not connected, or did not answer.
noReply,
/// The radio's firmware was built without the feature.
unsupported,
/// The device refused the request.
rejected,
/// The device already has this channel, and stock's rule is that existing
/// channels are never overwritten.
alreadyPresent,
/// Every channel slot on the device is occupied.
noFreeSlot,
/// We have no supported way to write this value to the device.
notWritable,
}
/// A channel present in the file that did not land on the device.
class SkippedChannel {
const SkippedChannel(this.name, this.reason);
final String name;
final StockConfigImportIssue reason;
}
class StockConfigImportResult {
const StockConfigImportResult({
required this.applied,
required this.failed,
required this.skippedChannels,
required this.contactsWritten,
required this.channelsAdded,
});
/// Sections whose commands were **sent** to the device without error.
///
/// This is not device confirmation. Apart from the identity import, which
/// waits for a real OK or ERR, the firmware's generic OK for these commands
/// is not currently awaited, so a frame lost or refused after it left our
/// side would still land here. Wiring per-command confirmation is tracked
/// separately; until then this set means "sent", and the UI says so rather
/// than claiming more than we know.
final Set<StockConfigSection> applied;
final Map<StockConfigSection, StockConfigImportIssue> failed;
/// Channels in the file that were not written, each with a reason. Shown to
/// the user; never discarded.
final List<SkippedChannel> skippedChannels;
/// Contacts whose write command was sent. See [applied] for why this is a
/// send count and not a confirmed count.
final int contactsWritten;
/// Channels whose write command was sent. Same caveat as [contactsWritten].
final int channelsAdded;
bool get isComplete => failed.isEmpty && skippedChannels.isEmpty;
}
class StockConfigImportService {
StockConfigImportService(this._connector);
final MeshCoreConnector _connector;
/// Applies the selected [sections] of [config] to the device.
///
/// [StockConfigSection.identity] is destructive and is only applied when the
/// caller includes it; confirming that with the user is the UI's job.
Future<StockConfigImportResult> apply({
required StockConfig config,
required Set<StockConfigSection> sections,
}) async {
final applied = <StockConfigSection>{};
final failed = <StockConfigSection, StockConfigImportIssue>{};
final skippedChannels = <SkippedChannel>[];
var contactsWritten = 0;
var channelsAdded = 0;
if (!_connector.isConnected) {
return StockConfigImportResult(
applied: const {},
failed: {for (final s in sections) s: StockConfigImportIssue.noReply},
skippedChannels: const [],
contactsWritten: 0,
channelsAdded: 0,
);
}
if (sections.contains(StockConfigSection.name)) {
final name = config.name;
if (name == null) {
failed[StockConfigSection.name] = StockConfigImportIssue.absentFromFile;
} else {
await _connector.setNodeName(name);
applied.add(StockConfigSection.name);
}
}
if (sections.contains(StockConfigSection.identity)) {
final identity = config.privateKey;
if (identity == null) {
failed[StockConfigSection.identity] =
StockConfigImportIssue.absentFromFile;
} else {
// Destructive: replaces the node's identity outright.
switch (await _connector.importPrivateKey(identity)) {
case IdentityTransfer.ok:
applied.add(StockConfigSection.identity);
case IdentityTransfer.unsupported:
failed[StockConfigSection.identity] =
StockConfigImportIssue.unsupported;
case IdentityTransfer.rejected:
failed[StockConfigSection.identity] =
StockConfigImportIssue.rejected;
case IdentityTransfer.noReply:
failed[StockConfigSection.identity] =
StockConfigImportIssue.noReply;
}
}
}
if (sections.contains(StockConfigSection.radioSettings)) {
final radio = config.radioSettings;
if (radio == null) {
failed[StockConfigSection.radioSettings] =
StockConfigImportIssue.absentFromFile;
} else {
// The device takes frequency in the same kHz unit the file uses, so
// this is a straight pass-through. See the note in the export service.
await _connector.sendFrame(
buildSetRadioParamsFrame(
radio.frequencyKhz,
radio.bandwidthHz,
radio.spreadingFactor,
radio.codingRate,
),
);
applied.add(StockConfigSection.radioSettings);
}
}
if (sections.contains(StockConfigSection.positionSettings)) {
final position = config.positionSettings;
if (position == null) {
failed[StockConfigSection.positionSettings] =
StockConfigImportIssue.absentFromFile;
} else {
await _connector.setNodeLocation(
lat: position.latitude,
lon: position.longitude,
);
applied.add(StockConfigSection.positionSettings);
}
}
if (sections.contains(StockConfigSection.otherSettings)) {
final other = config.otherSettings;
if (other == null) {
failed[StockConfigSection.otherSettings] =
StockConfigImportIssue.absentFromFile;
} else {
// buildSetOtherParamsFrame deliberately pins the auto-add-contacts
// byte to disabled, so `manual_add_contacts` from the file cannot be
// written without changing app-wide behavior. Only the advert location
// policy is applied, and the section is reported as partially written
// rather than claimed as done.
await _connector.sendFrame(
buildSetOtherParamsFrame(
(_connector.telemetryModeEnv << 4) |
(_connector.telemetryModeLoc << 2) |
_connector.telemetryModeBase,
other.advertLocationPolicy,
_connector.multiAcks,
),
);
failed[StockConfigSection.otherSettings] =
StockConfigImportIssue.notWritable;
}
}
if (sections.contains(StockConfigSection.autoAddSettings)) {
final autoAdd = config.autoAddSettings;
if (autoAdd == null) {
failed[StockConfigSection.autoAddSettings] =
StockConfigImportIssue.absentFromFile;
} else {
await _connector.sendFrame(
buildSetAutoAddConfigFrame(
autoAddChat: autoAdd.autoAddChat,
autoAddRepeater: autoAdd.autoAddRepeater,
autoAddRoomServer: autoAdd.autoAddRoomServer,
autoAddSensor: autoAdd.autoAddSensor,
overwriteOldest: autoAdd.overwriteOldest,
maxHops: autoAdd.autoAddMaxHops,
),
);
applied.add(StockConfigSection.autoAddSettings);
}
}
if (sections.contains(StockConfigSection.channels)) {
final channels = config.channels;
if (channels == null) {
failed[StockConfigSection.channels] =
StockConfigImportIssue.absentFromFile;
} else {
channelsAdded = await _applyChannels(channels, skippedChannels);
applied.add(StockConfigSection.channels);
}
}
if (sections.contains(StockConfigSection.contacts)) {
final contacts = config.contacts;
if (contacts == null) {
failed[StockConfigSection.contacts] =
StockConfigImportIssue.absentFromFile;
} else {
contactsWritten = await _applyContacts(contacts);
applied.add(StockConfigSection.contacts);
}
}
return StockConfigImportResult(
applied: applied,
failed: failed,
skippedChannels: skippedChannels,
contactsWritten: contactsWritten,
channelsAdded: channelsAdded,
);
}
Future<int> _applyChannels(
List<StockChannel> incoming,
List<SkippedChannel> skipped,
) async {
final plan = planChannelImport(
existing: _connector.channels,
incoming: incoming,
maxChannels: _connector.maxChannels,
);
for (final assignment in plan.assignments) {
await _connector.setChannel(
assignment.slot,
assignment.channel.name,
assignment.channel.secret,
);
}
skipped.addAll(plan.skipped);
return plan.assignments.length;
}
/// Upserts every contact. The firmware's add-or-update command keys on the
/// public key, so an existing contact is updated in place and a new one is
/// created. Nothing is removed, in either direction.
Future<int> _applyContacts(List<StockContact> contacts) async {
var written = 0;
for (final contact in contacts) {
final path = contact.outPath;
// Position is always passed through, including (0, 0). Suppressing zero
// would be pointless here: the frame builder emits the position block
// whenever lastModified is present, which it always is below, so a
// suppressed position writes 0/0 anyway. Passing it straight through
// means the file's value is what lands, with no special case to
// misread.
await _connector.sendFrame(
buildUpdateContactPathFrame(
contact.publicKey,
path?.bytes ?? _emptyPath,
// No path in the file means flood, which the frame encodes as -1.
path == null || path.hopCount == 0 ? -1 : path.hopCount,
hashWidth: path == null || path.hashWidth == 0 ? 1 : path.hashWidth,
type: contact.type,
flags: contact.flags,
name: contact.name,
lat: contact.latitude,
lon: contact.longitude,
lastModified: DateTime.fromMillisecondsSinceEpoch(
contact.lastModified * 1000,
),
),
);
written++;
}
return written;
}
}
/// A zero-length path, which the frame builder pads out to the fixed-size
/// path field.
final Uint8List _emptyPath = Uint8List(0);
/// One incoming channel and the device slot it will occupy.
class ChannelAssignment {
const ChannelAssignment(this.slot, this.channel);
final int slot;
final StockChannel channel;
}
/// The decision of which incoming channels get written, and where.
class ChannelImportPlan {
const ChannelImportPlan(this.assignments, this.skipped);
final List<ChannelAssignment> assignments;
final List<SkippedChannel> skipped;
}
/// Decides which of [incoming] to write, honoring stock's additive rule.
///
/// A channel counts as already present when either its PSK or its name matches
/// one already on the device. Stock says only that existing channels do not
/// change, without defining what makes a channel "existing"; matching on both
/// is the non-destructive reading, and pinning down what stock actually does is
/// one of the T1 gate's questions.
///
/// New channels go into the lowest free slot. Stock's file has no index field,
/// so incoming order is the only ordering information there is, and slots
/// already occupied are left alone.
ChannelImportPlan planChannelImport({
required List<Channel> existing,
required List<StockChannel> incoming,
required int maxChannels,
}) {
final live = existing.where((c) => !c.isEmpty).toList();
final takenSlots = live.map((c) => c.index).toSet();
final psks = live.map((c) => c.pskHex).toSet();
final names = live.map((c) => c.name).toSet();
final assignments = <ChannelAssignment>[];
final skipped = <SkippedChannel>[];
for (final channel in incoming) {
final pskHex = pubKeyToHex(channel.secret);
if (psks.contains(pskHex) || names.contains(channel.name)) {
skipped.add(
SkippedChannel(channel.name, StockConfigImportIssue.alreadyPresent),
);
continue;
}
int? slot;
for (var i = 0; i < maxChannels; i++) {
if (!takenSlots.contains(i)) {
slot = i;
break;
}
}
if (slot == null) {
skipped.add(
SkippedChannel(channel.name, StockConfigImportIssue.noFreeSlot),
);
continue;
}
assignments.add(ChannelAssignment(slot, channel));
takenSlots.add(slot);
psks.add(pskHex);
names.add(channel.name);
}
return ChannelImportPlan(assignments, skipped);
}

@ -167,6 +167,10 @@ class TcpTransportService {
}
_addFrame(packet.payload);
}
final skipped = _frameDecoder.takeSkipReport();
if (skipped != null) {
_debugLogService?.error('TCP ${skipped.describe()}', tag: 'TCP');
}
}
void _handleSocketError(Object error, [StackTrace? stackTrace]) {

@ -37,13 +37,58 @@ class UsbSerialDecodedPacket {
bool get isRxFrame => frameStart == usbSerialRxFrameStart;
}
/// Bytes the decoder could not frame and discarded (#711). Lost bytes mean
/// lost frames, so callers log this as an error rather than drop it quietly.
class UsbSerialSkipReport {
const UsbSerialSkipReport({required this.count, required this.sample});
final int count;
/// The first discarded bytes, for the log.
final List<int> sample;
String describe() {
final hex = sample
.map((b) => b.toRadixString(16).padLeft(2, '0'))
.join(' ');
return 'discarded $count byte(s) that could not be framed '
'(first: $hex${count > sample.length ? ' ...' : ''})';
}
}
class UsbSerialFrameDecoder {
static const int _skipSampleLength = 16;
final List<int> _rxBuffer = <int>[];
int _startIndex = 0;
int _skipped = 0;
final List<int> _skipSample = <int>[];
void reset() {
_rxBuffer.clear();
_startIndex = 0;
_skipped = 0;
_skipSample.clear();
}
/// Returns what was discarded since the last call, or null if nothing was.
UsbSerialSkipReport? takeSkipReport() {
if (_skipped == 0) return null;
final report = UsbSerialSkipReport(
count: _skipped,
sample: List<int>.unmodifiable(_skipSample),
);
_skipped = 0;
_skipSample.clear();
return report;
}
void _skipByte() {
_skipped++;
if (_skipSample.length < _skipSampleLength) {
_skipSample.add(_rxBuffer[_startIndex]);
}
_startIndex++;
}
List<UsbSerialDecodedPacket> ingest(Uint8List bytes) {
@ -63,7 +108,7 @@ class UsbSerialFrameDecoder {
if (_rxBuffer[_startIndex] != usbSerialRxFrameStart &&
_rxBuffer[_startIndex] != usbSerialTxFrameStart) {
_startIndex++;
_skipByte();
_compactBufferIfNeeded();
continue;
}
@ -77,7 +122,7 @@ class UsbSerialFrameDecoder {
final payloadLength =
_rxBuffer[_startIndex + 1] | (_rxBuffer[_startIndex + 2] << 8);
if (payloadLength > usbSerialMaxPayloadLength) {
_startIndex++;
_skipByte();
_compactBufferIfNeeded();
continue;
}

@ -421,10 +421,16 @@ class UsbSerialService {
unawaited(disconnect().whenComplete(_closeFrameController));
}
// One readList() returns at most 8 KB, so a single read per callback left
// the rest of a burst waiting in the native ring (#702, #711). Drain it,
// bounded to the ring's 256 KB so a stuck read can never spin forever.
static const int _maxReadsPerCallback = 32;
void _handleSerialData(FlSerialEventArgs event) {
try {
final bytes = event.serial.readList();
if (bytes.isNotEmpty) {
for (var i = 0; i < _maxReadsPerCallback; i++) {
final bytes = event.serial.readList();
if (bytes.isEmpty) break;
_ingestRawBytes(Uint8List.fromList(bytes));
}
} catch (error, stack) {
@ -465,6 +471,12 @@ class UsbSerialService {
}
_addFrame(packet.payload);
}
final skipped = _frameDecoder.takeSkipReport();
if (skipped != null) {
final message = 'USB serial ${skipped.describe()}';
debugPrint(message);
_debugLogService?.error(message, tag: 'USB Serial');
}
}
void _addFrame(Uint8List payload) {

@ -546,6 +546,12 @@ class UsbSerialService {
}
_addFrame(packet.payload);
}
final skipped = _frameDecoder.takeSkipReport();
if (skipped != null) {
final message = 'USB serial ${skipped.describe()}';
debugPrint(message);
_debugLogService?.error(message, tag: 'USB Serial');
}
}
void _addFrame(Uint8List payload) {

@ -1,5 +1,6 @@
import 'dart:convert';
import 'dart:typed_data';
import 'package:flutter/foundation.dart';
import '../models/contact.dart';
import '../utils/app_logger.dart';
@ -15,6 +16,13 @@ class ContactStore {
String get keyFor => '$_keyPrefix$publicKeyHex';
// Set when the stored list for that key could not be decoded. A save there
// is refused until a load succeeds, so a partial in-memory list can never
// replace contacts the app merely failed to read (#660, #673).
String? _unreadableKey;
bool get lastLoadFailed => _unreadableKey == keyFor;
Future<List<Contact>> loadContacts() async {
if (publicKeyHex.isEmpty) {
appLogger.warn('Public key hex is not set. Cannot load contacts.');
@ -47,10 +55,31 @@ class ContactStore {
try {
final jsonList = jsonDecode(jsonString) as List<dynamic>;
return jsonList
final contacts = jsonList
.map((entry) => _fromJson(entry as Map<String, dynamic>))
.toList();
} catch (_) {
if (_unreadableKey == keyFor) _unreadableKey = null;
return contacts;
} catch (e) {
// SAFELANE 6: a decode failure is not "no contacts". Keep the raw value
// somewhere a later save cannot touch, then refuse saves to this key.
final key = keyFor;
final aside =
'$key.unreadable-${DateTime.now().toUtc().millisecondsSinceEpoch}';
_unreadableKey = key;
final message =
'Could not read saved contacts for $key: $e. Raw data kept under '
'$aside; saving contacts for this radio is disabled until they load.';
debugPrint(message);
appLogger.error(message, tag: 'Storage');
try {
await blobs.write(aside, jsonString);
} catch (writeError) {
appLogger.error(
'Could not keep unreadable contacts aside under $aside: $writeError',
tag: 'Storage',
);
}
return [];
}
}
@ -60,6 +89,14 @@ class ContactStore {
appLogger.warn('Public key hex is not set. Cannot save contacts.');
return;
}
if (lastLoadFailed) {
final message =
'Refusing to save ${contacts.length} contact(s) over $keyFor: the '
'stored list could not be read, so a save could replace it.';
debugPrint(message);
appLogger.error(message, tag: 'Storage');
return;
}
final jsonList = contacts.map(_toJson).toList();
await BlobStore.instance.write(keyFor, jsonEncode(jsonList));
}

@ -43,6 +43,11 @@ class LogExport {
: context.l10n.debugLog_saveLog;
}
/// Short verb for a compound button label like "Download & save". Mobile
/// shares via the OS sheet; desktop and web save a file (web via a browser
/// download), so "save" fits both. (#580)
static String get actionVerb => (!kIsWeb && _isMobile) ? 'share' : 'save';
/// Export the combined on-disk app+BLE log (the App/BLE log screens). On web
/// there is no on-disk file, so [webContent] supplies the text to download.
static Future<void> shareLogs(

@ -0,0 +1,70 @@
/// Naming and writing of stock-compatible config files (#574, epic #568).
library;
import 'dart:io' show File;
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:path_provider/path_provider.dart';
import 'log_export.dart';
import 'log_web_download.dart';
/// Characters Windows forbids in a file name, plus the path separators.
final _illegalFileNameChars = RegExp(r'[<>:"/\\|?*\x00-\x1F]');
/// Builds the file name stock uses: `<device name>_meshcore_config_<stamp>`.
///
/// Real device names contain emoji and, in at least one observed case, a
/// trailing space, so the name is sanitized for the filesystem here. The name
/// written *inside* the file is never touched: it must round-trip exactly.
String stockConfigFileName(String? deviceName, DateTime at) {
final safeName = _sanitizeForFileName(deviceName ?? '');
final stamp = [
at.year.toString().padLeft(4, '0'),
at.month.toString().padLeft(2, '0'),
at.day.toString().padLeft(2, '0'),
].join('-');
final time = [
at.hour.toString().padLeft(2, '0'),
at.minute.toString().padLeft(2, '0'),
at.second.toString().padLeft(2, '0'),
].join();
final prefix = safeName.isEmpty ? '' : '${safeName}_';
return '${prefix}meshcore_config_$stamp-$time.json';
}
String _sanitizeForFileName(String name) {
final cleaned = name.replaceAll(_illegalFileNameChars, '');
// Windows also rejects names ending in a space or a dot.
return cleaned.replaceAll(RegExp(r'[ .]+$'), '').trim();
}
/// Writes [json] out as [fileName], using each platform's normal mechanism:
/// the share sheet on mobile, a Save As dialog on desktop, a browser download
/// on web. Reuses [LogExport], which already owns that per-platform logic, so
/// there is only one place where export behavior can drift.
Future<void> saveStockConfigFile(
BuildContext context, {
required String json,
required String fileName,
String? subject,
}) async {
if (kIsWeb) {
downloadTextFile(fileName, json);
return;
}
// A temp file is the handoff format LogExport works in. It holds the node's
// private key when the identity section was included, so it is written under
// the app's own temp directory and never anywhere shared.
final dir = await getTemporaryDirectory();
final file = File('${dir.path}/$fileName');
await file.writeAsString(json, flush: true);
if (!context.mounted) return;
await LogExport.shareFile(
context,
file,
subject: subject,
fileName: fileName,
);
}

@ -0,0 +1,261 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../connector/meshcore_connector.dart';
import '../connector/meshcore_protocol.dart';
import '../l10n/l10n.dart';
import '../helpers/snack_bar_builder.dart';
import '../models/contact.dart';
import '../screens/contact_qr_scanner_screen.dart';
/// Adds a contact from an identity alone: a public key, a name and a type.
///
/// This is the manual half of the identity exchange (#628). It exists because
/// a public key is never present in channel traffic, so for anyone who has not
/// recently adverted there is otherwise no way to reach them at all (#620).
///
/// The field also accepts a whole `meshcore://contact/add` link, since that is
/// what someone is most likely to paste, and a QR is only that same link
/// rendered visually.
/// [initialKeyText] seeds the key field, so a scan taken from somewhere else
/// can open this already filled in rather than making the user paste. (#629)
Future<void> showAddContactByKeyDialog(
BuildContext context, {
String? initialKeyText,
}) {
return showDialog<void>(
context: context,
builder: (_) => _AddContactByKeyDialog(initialKeyText: initialKeyText),
);
}
class _AddContactByKeyDialog extends StatefulWidget {
const _AddContactByKeyDialog({this.initialKeyText});
final String? initialKeyText;
@override
State<_AddContactByKeyDialog> createState() => _AddContactByKeyDialogState();
}
class _AddContactByKeyDialogState extends State<_AddContactByKeyDialog> {
final _keyController = TextEditingController();
final _nameController = TextEditingController();
int _type = advTypeChat;
String? _keyError;
bool _submitting = false;
@override
void initState() {
super.initState();
final seed = widget.initialKeyText;
if (seed != null && seed.isNotEmpty) {
_keyController.text = seed;
// Route the seed through the same handler as a paste, so a full link
// populates name and type instead of sitting there as raw text.
_onKeyChanged(seed);
}
}
@override
void dispose() {
_keyController.dispose();
_nameController.dispose();
super.dispose();
}
/// Strips whitespace so a key copied across a line break still works.
String get _cleanedKey =>
_keyController.text.replaceAll(RegExp(r'\s+'), '').toLowerCase();
bool get _keyLooksValid => Contact.isValidShareUri(
Contact.buildShareUri(publicKeyHex: _cleanedKey, name: 'x', type: _type),
);
/// If a full contact link OR a channel contact card was pasted, absorb every
/// field from it rather than making the user retype a name they already have.
///
/// Both formats are accepted because both are real and a user will meet both:
/// the `meshcore://` link comes from a QR or a DM, and the compact
/// `<key:type:name>` card is what appears in channel traffic, including the
/// cards this app itself posts. Accepting only the link would mean rejecting
/// our own output.
void _onKeyChanged(String raw) {
final pasted = Contact.fromShareUri(raw) ?? Contact.fromChannelShare(raw);
if (pasted != null) {
setState(() {
_keyController.value = TextEditingValue(
text: pasted.publicKeyHex,
selection: TextSelection.collapsed(
offset: pasted.publicKeyHex.length,
),
);
if (pasted.name != 'Unknown') _nameController.text = pasted.name;
_type = pasted.type;
_keyError = null;
});
return;
}
if (_keyError != null) setState(() => _keyError = null);
}
Future<void> _scan() async {
final scanned = await Navigator.of(context).push<String>(
MaterialPageRoute(builder: (_) => const ContactQrScannerScreen()),
);
if (!mounted || scanned == null) return;
// Route the scan through the same handler as a paste. A QR is only the
// link rendered visually, so it must not get its own code path.
_keyController.text = scanned;
_onKeyChanged(scanned);
}
Future<void> _submit() async {
final l10n = context.l10n;
if (!_keyLooksValid) {
setState(() => _keyError = l10n.contacts_publicKeyInvalid);
return;
}
final name = _nameController.text.trim();
// Round-trip through the share URI so a manually typed contact and a
// scanned QR produce byte-identical state. One code path, no drift.
final stub = Contact.fromShareUri(
Contact.buildShareUri(publicKeyHex: _cleanedKey, name: name, type: _type),
);
if (stub == null) {
setState(() => _keyError = l10n.contacts_publicKeyInvalid);
return;
}
setState(() => _submitting = true);
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
final added = await connector.addContactByKey(stub);
if (!mounted) return;
Navigator.of(context).pop();
showDismissibleSnackBar(
context,
content: Text(
added
? l10n.contacts_addByKeyAdded(stub.name)
: l10n.contacts_addByKeyFailed,
),
);
}
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
final theme = Theme.of(context);
return AlertDialog(
title: Text(l10n.contacts_addByKey),
content: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
l10n.contacts_addByKeyDescription,
style: theme.textTheme.bodySmall?.copyWith(
color: theme.colorScheme.onSurfaceVariant,
),
),
const SizedBox(height: 16),
TextField(
controller: _keyController,
autofocus: true,
maxLines: 2,
minLines: 1,
decoration: InputDecoration(
labelText: l10n.contacts_publicKeyLabel,
helperText: l10n.contacts_publicKeyHelper,
helperMaxLines: 2,
errorText: _keyError,
errorMaxLines: 2,
border: const OutlineInputBorder(),
suffixIcon: contactQrScanAvailable
? IconButton(
icon: const Icon(Icons.qr_code_scanner),
tooltip: l10n.contacts_scanContactQr,
onPressed: _submitting ? null : _scan,
)
: null,
),
onChanged: _onKeyChanged,
),
const SizedBox(height: 16),
TextField(
controller: _nameController,
decoration: InputDecoration(
labelText: l10n.contacts_nameLabel,
border: const OutlineInputBorder(),
),
),
const SizedBox(height: 16),
DropdownButtonFormField<int>(
initialValue: _type,
decoration: InputDecoration(
labelText: l10n.contacts_typeLabel,
border: const OutlineInputBorder(),
),
items: [
DropdownMenuItem(
value: advTypeChat,
child: Text(l10n.contact_typeChat),
),
DropdownMenuItem(
value: advTypeRepeater,
child: Text(l10n.contact_typeRepeater),
),
DropdownMenuItem(
value: advTypeRoom,
child: Text(l10n.contact_typeRoom),
),
DropdownMenuItem(
value: advTypeSensor,
child: Text(l10n.contact_typeSensor),
),
],
onChanged: (v) => setState(() => _type = v ?? advTypeChat),
),
const SizedBox(height: 16),
// Honest about what a key-only add actually gives you. Deliberately
// informational, not a warning: nothing is wrong with this contact
// (#630).
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Icon(
Icons.info_outline,
size: 16,
color: theme.colorScheme.onSurfaceVariant,
),
const SizedBox(width: 8),
Expanded(
child: Text(
l10n.contacts_addByKeyUnverifiedNote,
style: theme.textTheme.bodySmall?.copyWith(
color: theme.colorScheme.onSurfaceVariant,
),
),
),
],
),
],
),
),
actions: [
TextButton(
onPressed: _submitting ? null : () => Navigator.of(context).pop(),
child: Text(l10n.common_cancel),
),
FilledButton(
onPressed: _submitting ? null : _submit,
child: Text(l10n.common_add),
),
],
);
}
}

@ -0,0 +1,116 @@
import 'package:flutter/material.dart';
import '../connector/meshcore_connector.dart';
import '../connector/meshcore_protocol.dart';
import '../l10n/l10n.dart';
/// Explains a composer whose byte budget is too small to carry a message.
///
/// #592 was reported twice as "the keyboard doesn't respond". It was not an
/// input bug: the byte budget had collapsed to 0, so the length limiter
/// rejected every keystroke while the field still focused and blinked. Nothing
/// on screen said why.
///
/// This is a persistent inline notice rather than a toast on purpose. The
/// condition is a *state* that lasts as long as the link does, not an event, so
/// a transient snackbar would scroll away and leave the same dead field behind.
/// SAFELANE 6 requires a user-facing error to persist; sitting directly above
/// the composer it also lands where the confusion is (#684).
///
/// Renders nothing when the budget is healthy, so both composers can include it
/// unconditionally.
class ComposerBudgetNotice extends StatelessWidget {
/// The composer's computed limit, from `maxChannelMessageBytes` or
/// `maxContactMessageBytes`.
final int maxBytes;
/// Transport in use, so the cause can be named plainly instead of described
/// as generic failure.
final MeshCoreTransportType transport;
/// Whether a radio is actually connected.
///
/// Required, and not cosmetic. While disconnected, `_activeTransport` still
/// reads `bluetooth` (its default) and there is no device, so the frame
/// budget falls to the same 20-byte floor an unreported MTU produces. Without
/// this gate the notice would appear on every disconnect and blame the link
/// for a small packet size when there is no link at all.
final bool isConnected;
const ComposerBudgetNotice({
super.key,
required this.maxBytes,
required this.transport,
required this.isConnected,
});
@override
Widget build(BuildContext context) {
if (!isConnected) return const SizedBox.shrink();
if (isComposerBudgetUsable(maxBytes)) return const SizedBox.shrink();
final l10n = context.l10n;
final scheme = Theme.of(context).colorScheme;
// A budget of 0 blocks every keystroke; 1-15 accepts input but cannot carry
// a sentence. Those are different severities and must not look the same.
// Zero is a failure: nothing can be sent. Non-zero is a fact about a
// working link, so it is stated rather than alarmed about - a permanent red
// banner over a link that genuinely only fits a few characters is noise,
// and noise is what teaches people to ignore the banner that matters.
final blocked = maxBytes <= 0;
final title = blocked
? l10n.composerBudgetBlockedTitle
: l10n.composerBudgetLimitedTitle(maxBytes);
final cause = transport == MeshCoreTransportType.bluetooth
? l10n.composerBudgetBluetoothCause
: l10n.composerBudgetGenericCause;
final background = blocked
? scheme.errorContainer
: scheme.secondaryContainer;
final foreground = blocked
? scheme.onErrorContainer
: scheme.onSecondaryContainer;
return Container(
width: double.infinity,
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
color: background,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// No semanticLabel on purpose: Icon wraps its glyph in
// ExcludeSemantics and only announces a label when given one, so an
// unlabelled icon is correctly decorative here. The two Text children
// below already carry the whole message to a screen reader, and
// labelling the icon too would just repeat it.
Icon(
blocked ? Icons.error_outline : Icons.info_outline,
size: 18,
color: foreground,
),
const SizedBox(width: 10),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: TextStyle(
fontWeight: FontWeight.w600,
color: foreground,
),
),
const SizedBox(height: 2),
Text(cause, style: TextStyle(fontSize: 12, color: foreground)),
],
),
),
],
),
);
}
}

@ -0,0 +1,120 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../connector/meshcore_connector.dart';
import '../l10n/l10n.dart';
import '../models/contact.dart';
import 'add_contact_by_key_dialog.dart';
/// Renders a received contact share card as a tappable Add Contact affordance
/// instead of the raw `<key:type:name>` text. (#610)
///
/// This is the receive half of the exchange. The send half (#611) already
/// emits this format, and the stock app already renders it as a native Add
/// Contact button, so until now sharing worked outbound only: a stock user
/// could add an Offband user from a card, but not the reverse.
///
/// Tapping opens the add dialog seeded with the card, so the user sees the key,
/// name and type before anything is written to the radio. It does NOT add
/// silently: a contact is an identity, and adding one should be a deliberate
/// act with the details visible.
class ContactCardChip extends StatelessWidget {
const ContactCardChip({super.key, required this.card, required this.style});
/// The raw matched card text, `<key:type:name>`.
final String card;
final TextStyle style;
@override
Widget build(BuildContext context) {
final parsed = Contact.fromChannelShare(card);
final scheme = Theme.of(context).colorScheme;
final l10n = context.l10n;
// The regex matched the shape but the parser rejected the contents, e.g. a
// type outside the documented range. Show the original text rather than a
// chip that would lie about being addable.
if (parsed == null) return Text(card, style: style);
// Mirrors what stock does: it warned the owner when the contact was
// already held rather than silently re-adding.
//
// O(1) against the connector's maintained key set. Scanning `contacts`
// here would run per rendered chip on every notification, which is
// hundreds of comparisons in a message list on a device with a large
// contact book. (Gemini review, #610)
final known = context.select<MeshCoreConnector, bool>(
(c) => c.isKnownContact(parsed.publicKeyHex),
);
final label = known
? l10n.contacts_cardAlreadyAdded(parsed.name)
: l10n.contacts_cardAddContact(parsed.name);
// A WidgetSpan gives its child unbounded width, so Flexible needs a real
// ceiling to ellipsize against. Without this the chip grows to whatever
// name the sender chose, which overflowed the message layout.
//
// Scaled off the viewport rather than a fixed pixel count, so a large
// accessibility font on a wide screen is not ellipsized while space
// remains, and a narrow phone still gets a sane bound. (Gemini recheck)
final maxChipWidth = MediaQuery.sizeOf(context).width * 0.7;
final chip = ConstrainedBox(
constraints: BoxConstraints(maxWidth: maxChipWidth),
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 3),
decoration: BoxDecoration(
color: known
? scheme.onSurface.withValues(alpha: 0.08)
: scheme.primaryContainer,
borderRadius: BorderRadius.circular(8),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
known ? Icons.how_to_reg : Icons.person_add_alt_1,
size: 15,
color: known
? scheme.onSurfaceVariant
: scheme.onPrimaryContainer,
),
const SizedBox(width: 5),
// Bounded and ellipsized. The name comes off a public radio channel
// and is attacker-controlled, so an unbounded label lets anyone
// overflow the message layout by posting a card with a long name.
// Reproduced before this: a 405 pixel RenderFlex overflow.
// (Gemini review prompted the adversarial case, #610)
Flexible(
child: Text(
label,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: style.copyWith(
fontWeight: FontWeight.w500,
color: known
? scheme.onSurfaceVariant
: scheme.onPrimaryContainer,
),
),
),
],
),
),
);
if (known) {
return Tooltip(
message: l10n.contacts_cardAlreadyAddedTooltip,
child: chip,
);
}
return InkWell(
borderRadius: BorderRadius.circular(8),
onTap: () => showAddContactByKeyDialog(context, initialKeyText: card),
child: chip,
);
}
}

@ -0,0 +1,150 @@
import 'package:flutter/material.dart';
import '../connector/meshcore_connector.dart';
import '../l10n/l10n.dart';
/// Shown above the whole app when a full contact sync delivered fewer contacts
/// than the radio reported (#668), after the forced resync (#703) has tried
/// and is still short. The banner stays until dismissed, and a modal asks
/// whether to keep the saved contacts (the default) or accept the radio's
/// shorter list.
///
/// SAFELANE §6: the short sync that silently replaced 350 saved contacts with
/// 106 (#660) must now be loud. Sits in `MaterialApp.builder`, above the
/// Navigator, so the modal is drawn here rather than pushed as a route.
class ContactSyncShortfallBanner extends StatelessWidget {
final ContactSyncShortfall? shortfall;
final bool decisionPending;
final int undeliveredCount;
final VoidCallback onDismiss;
final VoidCallback onKeep;
final VoidCallback onUseRadio;
final Widget child;
const ContactSyncShortfallBanner({
super.key,
required this.shortfall,
required this.decisionPending,
required this.undeliveredCount,
required this.onDismiss,
required this.onKeep,
required this.onUseRadio,
required this.child,
});
@override
Widget build(BuildContext context) {
final current = shortfall;
if (current == null && !decisionPending) return child;
final content = current == null
? child
: Column(
children: [
_banner(context, current),
Expanded(child: child),
],
);
if (!decisionPending) return content;
return Stack(
children: [
content,
const ModalBarrier(dismissible: false, color: Colors.black54),
Center(
child: _decision(
context,
current?.received ?? 0,
current?.confirmedGone ?? 0,
),
),
],
);
}
static String _withGone(String text, int gone, BuildContext context) =>
gone > 0 ? '$text ${context.l10n.contactSyncConfirmedGone(gone)}' : text;
Widget _banner(BuildContext context, ContactSyncShortfall current) {
final l10n = context.l10n;
final scheme = Theme.of(context).colorScheme;
final declared = current.declared;
final body = _withGone(
declared == null
? l10n.contactSyncShortfallBodyNoTotal(current.received)
: l10n.contactSyncShortfallBody(declared, current.received),
current.confirmedGone,
context,
);
return Material(
color: scheme.errorContainer,
child: SafeArea(
bottom: false,
child: Padding(
padding: const EdgeInsets.fromLTRB(16, 10, 4, 10),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Icon(Icons.sync_problem, color: scheme.onErrorContainer),
const SizedBox(width: 12),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
l10n.contactSyncShortfallTitle,
style: TextStyle(
fontWeight: FontWeight.bold,
color: scheme.onErrorContainer,
),
),
const SizedBox(height: 2),
Text(
body,
style: TextStyle(color: scheme.onErrorContainer),
),
],
),
),
// No tooltip: this sits above the Navigator, where there is no
// Overlay, and a Tooltip without one blanks the window (#713).
IconButton(
icon: Icon(
Icons.close,
color: scheme.onErrorContainer,
semanticLabel: l10n.common_close,
),
onPressed: onDismiss,
),
],
),
),
),
);
}
Widget _decision(BuildContext context, int received, int gone) {
final l10n = context.l10n;
return AlertDialog(
title: Text(l10n.contactSyncDecisionTitle),
content: Text(
_withGone(
l10n.contactSyncDecisionBody(received, undeliveredCount),
gone,
context,
),
),
actions: [
TextButton(
onPressed: onUseRadio,
child: Text(l10n.contactSyncUseRadio),
),
FilledButton(
autofocus: true,
onPressed: onKeep,
child: Text(l10n.contactSyncKeep),
),
],
);
}
}

@ -0,0 +1,109 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../connector/meshcore_connector.dart';
import '../l10n/l10n.dart';
import '../models/contact.dart';
import '../models/message.dart';
/// How far a contact identity has actually been confirmed. (#630)
enum ContactVerification {
/// Added from a bare key. Nothing has confirmed it on air.
keyOnly,
/// A message with this contact went through. That is cryptographic proof
/// the holder of the matching private key is live and reachable, because
/// direct messages are encrypted with an ECDH secret derived from this
/// contact key, and the ACK is computed over the decrypted plaintext
/// (firmware `BaseChatMesh.cpp:442,451`). It does NOT prove the person is
/// who the name claims: names are display, keys are identity.
keyConfirmed,
/// A signed advert has been received. Strongest state: the node itself
/// asserted its name, type and position, and the raw advert is stored, so
/// the contact can also be re-shared.
advertVerified,
}
/// Resolves the verification state for [contact].
///
/// This runs from a widget `build` inside a contact `ListView`, so it does as
/// little as possible:
///
/// 1. An advert-verified contact returns immediately on a single integer
/// comparison. That is most contacts, and no message list is touched.
/// 2. Only a key-only contact scans, and it scans **newest first**, because a
/// delivered message is overwhelmingly likely to be recent.
///
/// A `lastMessageAt == epoch` shortcut was considered and **rejected**:
/// `_setContactLastMessageAt` maintains that field only for `advTypeChat`, so
/// a key-added repeater that had been messaged would have reported the wrong
/// badge. A cheap wrong answer is worse than a slightly slower right one.
///
/// Remaining worst case is a key-only contact carrying many messages of which
/// none ever delivered. If that shows up in practice the fix is a cached flag
/// set once on first delivery, not a bounded scan, which could misreport.
ContactVerification resolveContactVerification(
Contact contact,
MeshCoreConnector connector,
) {
if (contact.isAdvertVerified) return ContactVerification.advertVerified;
final messages = connector.getMessages(contact);
for (var i = messages.length - 1; i >= 0; i--) {
if (messages[i].status == MessageStatus.delivered) {
return ContactVerification.keyConfirmed;
}
}
return ContactVerification.keyOnly;
}
/// A small, deliberately calm indicator of how far a contact is confirmed.
///
/// Owner steer (#630): a green check for fully verified and a different icon
/// otherwise. Explicitly NOT amber and NOT a hazard glyph, because nothing is
/// wrong with a key-added contact. The scale reads as "how much we know",
/// never as "how risky".
class ContactVerificationBadge extends StatelessWidget {
const ContactVerificationBadge({
super.key,
required this.contact,
this.size = 15,
});
final Contact contact;
final double size;
@override
Widget build(BuildContext context) {
final state = resolveContactVerification(
contact,
context.read<MeshCoreConnector>(),
);
final scheme = Theme.of(context).colorScheme;
final l10n = context.l10n;
final (IconData icon, Color color, String tooltip) = switch (state) {
ContactVerification.advertVerified => (
Icons.verified,
// The one deliberately positive colour in the set.
Colors.green,
l10n.contacts_verifiedByAdvert,
),
ContactVerification.keyConfirmed => (
Icons.check_circle_outline,
scheme.onSurfaceVariant,
l10n.contacts_verifiedByMessage,
),
ContactVerification.keyOnly => (
Icons.key_outlined,
scheme.onSurfaceVariant,
l10n.contacts_verifiedKeyOnly,
),
};
return Tooltip(
message: tooltip,
child: Icon(icon, size: size, color: color),
);
}
}

@ -0,0 +1,87 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import '../connector/meshcore_connector.dart';
import '../connector/meshcore_protocol.dart';
import '../helpers/snack_bar_builder.dart';
import '../l10n/l10n.dart';
import '../models/contact.dart';
import 'qr_code_display.dart';
/// Shows this device's own identity as a scannable QR plus a copyable link.
/// (#629)
///
/// This is the fast, definitive way to hand someone your identity: it carries
/// the public key itself, so it cannot fail on a name mismatch and it does not
/// ask them to wait for an advert. It also costs the mesh no airtime, which
/// asking for a couple of flood adverts does.
///
/// Rendering works on every platform, which matters on desktop: put this on
/// screen and the other person scans it with their phone.
Future<void> showMyContactQrDialog(BuildContext context) {
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
final keyHex = connector.selfPublicKeyHex;
// Without a connection we do not know our own key, so there is nothing
// truthful to render.
if (keyHex.length != pubKeySize * 2) {
showDismissibleSnackBar(
context,
content: Text(context.l10n.contacts_qrNeedsConnection),
);
return Future<void>.value();
}
final uri = Contact.buildShareUri(
publicKeyHex: keyHex,
name: connector.selfName ?? '',
// This device is a companion.
type: advTypeChat,
);
return showDialog<void>(
context: context,
builder: (dialogContext) => AlertDialog(
title: Text(dialogContext.l10n.contacts_myContactQr),
content: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
QrCodeDisplay(
data: uri,
instructions: dialogContext.l10n.contacts_myContactQrInstructions,
),
const SizedBox(height: 8),
SelectableText(
uri,
style: Theme.of(dialogContext).textTheme.bodySmall?.copyWith(
fontFamily: 'monospace',
color: Theme.of(dialogContext).colorScheme.onSurfaceVariant,
),
),
],
),
),
actions: [
TextButton.icon(
onPressed: () async {
await Clipboard.setData(ClipboardData(text: uri));
if (!dialogContext.mounted) return;
showDismissibleSnackBar(
dialogContext,
content: Text(dialogContext.l10n.contacts_contactLinkCopied),
);
},
icon: const Icon(Icons.copy),
label: Text(dialogContext.l10n.common_copy),
),
TextButton(
onPressed: () => Navigator.of(dialogContext).pop(),
child: Text(dialogContext.l10n.common_close),
),
],
),
);
}

@ -96,9 +96,18 @@ class QrCodeDisplay extends StatelessWidget {
),
],
),
child: embeddedImage != null
? _buildQrWithEmbeddedImage(fgColor, bgColor)
: _buildSimpleQr(fgColor, bgColor),
// Bound the QR to a fixed square. QrImageView builds through a
// LayoutBuilder, which cannot answer intrinsic dimension queries,
// so an intrinsic-measuring parent (AlertDialog measures its
// content's max intrinsic height) throws without this. A tight
// SizedBox answers the intrinsic itself and never asks the child.
// (#629, first real use of this widget.)
child: SizedBox.square(
dimension: size,
child: embeddedImage != null
? _buildQrWithEmbeddedImage(fgColor, bgColor)
: _buildSimpleQr(fgColor, bgColor),
),
),
if (instructions != null) ...[

@ -0,0 +1,175 @@
import 'package:flutter/material.dart';
import '../l10n/l10n.dart';
import '../models/radio_preset.dart';
import '../services/radio_preset_service.dart';
/// The regional preset picker (#729): presets grouped by region under
/// non-selectable headers, each labelled with its source, plus a status line
/// saying where the list came from (and any refresh failure) with a refresh
/// button. Used by the companion Radio Settings form and the remote-node
/// settings screen.
class RadioPresetPicker extends StatelessWidget {
const RadioPresetPicker({
super.key,
required this.service,
required this.presets,
required this.selectedId,
required this.onSelected,
});
final RadioPresetService service;
/// The presets to offer, already filtered and in display order (grouped
/// by region).
final List<RadioPreset> presets;
final String? selectedId;
final ValueChanged<RadioPreset> onSelected;
static const _regionHeaderPrefix = 'region:';
RadioPreset? _byId(String? id) =>
id == null ? null : presets.where((p) => p.id == id).firstOrNull;
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
final theme = Theme.of(context);
final selected = _byId(selectedId)?.id;
final titlesById = {for (final p in presets) p.id: p.title};
final items = <DropdownMenuItem<String>>[];
String? region;
for (final preset in presets) {
if (preset.region != region) {
region = preset.region;
items.add(
DropdownMenuItem<String>(
value: '$_regionHeaderPrefix$region',
enabled: false,
child: Text(
region,
style: theme.textTheme.labelMedium?.copyWith(
color: theme.colorScheme.primary,
fontWeight: FontWeight.bold,
),
),
),
);
}
items.add(
DropdownMenuItem<String>(
value: preset.id,
child: Padding(
padding: const EdgeInsetsDirectional.only(start: 12),
child: Row(
children: [
Expanded(
child: Text(preset.title, overflow: TextOverflow.ellipsis),
),
const SizedBox(width: 8),
Text(
switch (preset.source) {
RadioPresetSource.meshcore =>
l10n.settings_presetSourceMeshCore,
RadioPresetSource.offband =>
l10n.settings_presetSourceOffband,
},
style: theme.textTheme.labelSmall?.copyWith(
color: theme.colorScheme.onSurfaceVariant,
),
),
],
),
),
),
);
}
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DropdownButtonFormField<String>(
key: ValueKey<String?>(selected),
initialValue: selected,
isExpanded: true,
decoration: InputDecoration(
labelText: l10n.settings_presets,
border: const OutlineInputBorder(),
),
selectedItemBuilder: (context) => [
for (final item in items)
Align(
alignment: AlignmentDirectional.centerStart,
child: Text(
titlesById[item.value] ?? '',
overflow: TextOverflow.ellipsis,
),
),
],
items: items,
// Disabled while a refresh runs, so a pick can't vanish when the
// refreshed list lands.
onChanged: service.refreshing
? null
: (id) {
final preset = _byId(id);
if (preset != null) onSelected(preset);
},
),
_PresetStatus(service: service),
],
);
}
}
/// Where the list came from, and any refresh failure, kept on screen until
/// the next successful refresh.
class _PresetStatus extends StatelessWidget {
const _PresetStatus({required this.service});
final RadioPresetService service;
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
final theme = Theme.of(context);
final String text;
Color? color;
if (service.refreshing) {
text = l10n.settings_presetsUpdating;
} else if (service.refreshError != null) {
text = l10n.settings_presetsUpdateFailed;
color = theme.colorScheme.error;
} else if (service.lastRefreshed != null) {
text = l10n.settings_presetsUpdatedAt(
MaterialLocalizations.of(
context,
).formatMediumDate(service.lastRefreshed!.toLocal()),
);
} else {
text = l10n.settings_presetsBundled;
}
return Row(
children: [
Expanded(
child: Text(
text,
style: theme.textTheme.bodySmall?.copyWith(
color: color ?? theme.colorScheme.onSurfaceVariant,
),
),
),
IconButton(
tooltip: l10n.settings_presetsRefresh,
onPressed: service.refreshing ? null : service.refresh,
icon: service.refreshing
? const SizedBox(
width: 16,
height: 16,
child: CircularProgressIndicator(strokeWidth: 2),
)
: const Icon(Icons.refresh),
),
],
);
}
}

@ -0,0 +1,222 @@
import 'dart:async';
import 'package:flutter/material.dart';
import '../utils/app_logger.dart';
/// A transient, tap-to-dismiss notification anchored to the TOP of the screen.
///
/// The app previously used bottom-anchored [SnackBar]s, which sat on top of the
/// chat composer (#638). A [SnackBar] is positioned by its [Scaffold] and can
/// only be pushed upward with a near-full-height bottom margin, which delays
/// its reveal animation and turns the whole screen into a hit-test target, so
/// this renders through the [Overlay] instead.
class TopToast {
TopToast._();
static const Duration _animationDuration = Duration(milliseconds: 220);
static const Duration defaultDuration = Duration(seconds: 4);
static const double _maxWidth = 560;
/// Removes the toast currently on screen. Non-null only while one is visible.
static VoidCallback? _dismissCurrent;
/// Shows [content] at the top of the screen.
///
/// When [persist] is true the toast stays until the user dismisses it, for
/// messages that must be read rather than glimpsed (SAFELANE 6).
static void show(
BuildContext context, {
required Widget content,
Color? backgroundColor,
Duration duration = defaultDuration,
bool persist = false,
}) {
final overlay = Overlay.maybeOf(context, rootOverlay: true);
if (overlay == null) {
// SAFELANE 6: a message we cannot display must not disappear silently.
appLogger.warn(
'No Overlay in this context; notification was not shown',
tag: 'TopToast',
);
return;
}
// A newer message replaces the visible one outright: two entries would
// otherwise stack on top of each other at the same position.
_dismissCurrent?.call();
late final OverlayEntry entry;
var removed = false;
void remove() {
if (removed) return;
removed = true;
entry.remove();
if (_dismissCurrent == remove) {
_dismissCurrent = null;
}
}
entry = OverlayEntry(
builder: (_) => _TopToastHost(
backgroundColor: backgroundColor,
duration: duration,
persist: persist,
animationDuration: _animationDuration,
maxWidth: _maxWidth,
onDismissed: remove,
child: content,
),
);
_dismissCurrent = remove;
overlay.insert(entry);
}
}
class _TopToastHost extends StatefulWidget {
const _TopToastHost({
required this.child,
required this.duration,
required this.persist,
required this.animationDuration,
required this.maxWidth,
required this.onDismissed,
this.backgroundColor,
});
final Widget child;
final Duration duration;
final bool persist;
final Duration animationDuration;
final double maxWidth;
final VoidCallback onDismissed;
final Color? backgroundColor;
@override
State<_TopToastHost> createState() => _TopToastHostState();
}
class _TopToastHostState extends State<_TopToastHost>
with SingleTickerProviderStateMixin {
late final AnimationController _controller = AnimationController(
vsync: this,
duration: widget.animationDuration,
);
Timer? _timer;
bool _dismissing = false;
@override
void initState() {
super.initState();
_controller.forward();
if (!widget.persist) {
_timer = Timer(widget.duration, _dismiss);
}
}
Future<void> _dismiss() async {
if (_dismissing || !mounted) return;
_dismissing = true;
_timer?.cancel();
try {
await _controller.reverse();
} on TickerCanceled {
// Replaced by a newer toast mid-animation; that path already removed us.
return;
}
if (!mounted) return;
widget.onDismissed();
}
@override
void dispose() {
_timer?.cancel();
_controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final background =
widget.backgroundColor ??
theme.snackBarTheme.backgroundColor ??
theme.colorScheme.inverseSurface;
final textStyle =
theme.snackBarTheme.contentTextStyle ??
theme.textTheme.titleMedium!.copyWith(
color: theme.colorScheme.onInverseSurface,
);
return Positioned(
top: 0,
left: 0,
right: 0,
child: SafeArea(
bottom: false,
child: Padding(
padding: const EdgeInsets.fromLTRB(12, 8, 12, 0),
child: Align(
alignment: Alignment.topCenter,
child: ConstrainedBox(
constraints: BoxConstraints(maxWidth: widget.maxWidth),
child: SlideTransition(
position:
Tween<Offset>(
begin: const Offset(0, -0.4),
end: Offset.zero,
).animate(
CurvedAnimation(
parent: _controller,
curve: Curves.easeOutCubic,
reverseCurve: Curves.easeInCubic,
),
),
child: FadeTransition(
opacity: _controller,
// Parity with SnackBar, which wraps its content the same way
// (snack_bar.dart): without liveRegion a screen reader never
// announces the message at all.
child: Semantics(
container: true,
liveRegion: true,
onDismiss: _dismiss,
child: Material(
color: background,
elevation: 6,
borderRadius: BorderRadius.circular(8),
clipBehavior: Clip.antiAlias,
// One recognizer for both gestures: a nested InkWell would
// also splash on the tap-up that ends a dismissing swipe.
child: GestureDetector(
onTap: _dismiss,
onVerticalDragEnd: (details) {
if ((details.primaryVelocity ?? 0) < 0) {
_dismiss();
}
},
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 16,
vertical: 14,
),
child: DefaultTextStyle(
style: textStyle,
child: IconTheme(
data: IconThemeData(color: textStyle.color),
child: widget.child,
),
),
),
),
),
),
),
),
),
),
),
),
);
}
}

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import '../helpers/link_handler.dart';
import 'contact_card_chip.dart';
class TranslatedMessageContent extends StatelessWidget {
final String displayText;
@ -25,6 +26,15 @@ class TranslatedMessageContent extends StatelessWidget {
// A leading `@[Name] ` reply prefix.
static final RegExp _replyPrefix = RegExp(r'^@\[([^\]]+)\]\s+');
/// A contact share card, `<64-hex key:type:name>`, rendered as a tappable
/// Add Contact chip rather than the raw text it used to show. (#610)
///
/// This is the format real clients put on the air, confirmed because the
/// stock app renders it as a native Add Contact button. The name is the final
/// field and may contain colons and spaces, so it is matched greedily to the
/// closing bracket; brackets themselves are stripped by the emitter.
static final RegExp _contactCard = RegExp(r'<[0-9a-fA-F]{64}:\d+:[^>]*>');
/// The name of a leading `@[Name]` reply mention, or null. Lets callers show
/// a reply chip above content that isn't rendered as text (e.g. a reply-gif,
/// #232).
@ -50,27 +60,44 @@ class TranslatedMessageContent extends StatelessWidget {
}
Widget _buildText(BuildContext context, String text, TextStyle textStyle) {
if (!_mention.hasMatch(text)) {
final hasMention = _mention.hasMatch(text);
final hasCard = _contactCard.hasMatch(text);
if (!hasMention && !hasCard) {
return LinkHandler.buildLinkifyText(
context: context,
text: text,
style: textStyle,
);
}
// Mentions can't be interleaved with the Linkify widget, so a message that
// contains a mention renders as rich text with chip spans (links inside a
// mention message are not tappable, same as the prior leading-mention
// path). Messages without a mention keep full link support above.
// Neither chip can be interleaved with the Linkify widget, so a message
// containing one renders as rich text with chip spans (links inside such a
// message are not tappable, same as the prior leading-mention path).
// Messages with neither keep full link support above.
//
// Both patterns are collected and sorted by position, so a message
// carrying a mention AND a contact card renders both in the right order.
// They cannot overlap: a mention is `@[...]`, a card is `<...>`.
// Each match carries which pattern produced it. Inferring the kind from
// the text, e.g. `text[m.start] == '<'`, would silently mis-route the day
// a third bracketed pattern is added. (Gemini review, #610)
final matches = <(Match, bool isCard)>[
..._mention.allMatches(text).map((m) => (m, false)),
..._contactCard.allMatches(text).map((m) => (m, true)),
]..sort((a, b) => a.$1.start.compareTo(b.$1.start));
final spans = <InlineSpan>[];
var last = 0;
for (final m in _mention.allMatches(text)) {
for (final (m, isCard) in matches) {
if (m.start < last) continue;
if (m.start > last) {
spans.add(TextSpan(text: text.substring(last, m.start)));
}
spans.add(
WidgetSpan(
alignment: PlaceholderAlignment.middle,
child: mentionChip(context, m.group(1)!, textStyle),
child: isCard
? ContactCardChip(card: m.group(0)!, style: textStyle)
: mentionChip(context, m.group(1)!, textStyle),
),
);
last = m.end;

@ -6,10 +6,22 @@
#include "generated_plugin_registrant.h"
#include <file_selector_linux/file_selector_plugin.h>
#include <screen_retriever_linux/screen_retriever_linux_plugin.h>
#include <url_launcher_linux/url_launcher_plugin.h>
#include <window_manager/window_manager_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
g_autoptr(FlPluginRegistrar) screen_retriever_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "ScreenRetrieverLinuxPlugin");
screen_retriever_linux_plugin_register_with_registrar(screen_retriever_linux_registrar);
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
g_autoptr(FlPluginRegistrar) window_manager_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "WindowManagerPlugin");
window_manager_plugin_register_with_registrar(window_manager_registrar);
}

@ -3,7 +3,10 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
file_selector_linux
screen_retriever_linux
url_launcher_linux
window_manager
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST

@ -5,24 +5,32 @@
import FlutterMacOS
import Foundation
import file_selector_macos
import flutter_blue_plus_darwin
import flutter_local_notifications
import mobile_scanner
import package_info_plus
import path_provider_foundation
import screen_retriever_macos
import share_plus
import shared_preferences_foundation
import sqflite_darwin
import url_launcher_macos
import wakelock_plus
import window_manager
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin"))
FlutterBluePlusPlugin.register(with: registry.registrar(forPlugin: "FlutterBluePlusPlugin"))
FlutterLocalNotificationsPlugin.register(with: registry.registrar(forPlugin: "FlutterLocalNotificationsPlugin"))
MobileScannerPlugin.register(with: registry.registrar(forPlugin: "MobileScannerPlugin"))
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
ScreenRetrieverMacosPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverMacosPlugin"))
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
WakelockPlusMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockPlusMacosPlugin"))
WindowManagerPlugin.register(with: registry.registrar(forPlugin: "WindowManagerPlugin"))
}

@ -0,0 +1,3 @@
# Disable clang-format for this vendored submodule so that local patches
# are not stomped by editor auto-formatting.
DisableFormat: true

@ -0,0 +1,29 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/
# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
# Flutter/Dart/Pub related
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
/pubspec.lock
**/doc/api/
.dart_tool/
build/

@ -0,0 +1,42 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
version:
revision: "dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668"
channel: "stable"
project_type: plugin_ffi
# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
- platform: android
create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
- platform: ios
create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
- platform: linux
create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
- platform: macos
create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
- platform: windows
create_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
base_revision: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
# User provided section
# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'

@ -0,0 +1,49 @@
## 0.3.5
* Add support 16KB Page Size
## 0.3.4
* Changelog fix
## 0.3.3
* Replace fifo library
## 0.3.2
* MacOS support
* Memory allocation fix
## 0.3.1
* Update libs
## 0.3.0
* Import project to new plugin ffi template
* Few Api changes
## 0.2.0
* New event model
* Cleaning up unnecessary libs
* Performance improvements
* Api changes, main functions:
Stream based events, before:
```
serial.onSerialData.subscribe(
```
to:
```
serial.onSerialData.stream.listen(
```
Write serial port, before:
```
serial.write(data.length, data);
```
to:
```
serial.write(data);
```
## 0.1.2
* Android compilation
## 0.1.1
* Initial beta version

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 Grzegorz Leśniak
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@ -0,0 +1,63 @@
# flserial
Flutter Serial Port Plugin FFI based on great C library. Useful to communicate with RS232 devices.
Based on great serial library: https://github.com/wjwwood/serial
Supported platforms:
- Linux
- Windows
- Android
- MacOS
Example of usage:
```
FlSerial serial = FlSerial();
serial.init();
serial.openPort("COM3", 9600);
serial.onSerialData.stream.listen(
(args) {
if (args.len > 0) {
print(args.serial.readList());
}
},
);
serial.setByteSize8();
serial.setBitParityNone();
serial.setStopBits1();
serial.setFlowControlNone();
String msg = "Hello World!";
var list = msg.codeUnits;
serial.write(Uint8List.fromList(list));
serial.closePort();
serial.free();
```
MIT License
Copyright (c) 2024 Grzegorz Leśniak
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save

Powered by TurnKey Linux.