Add contact import from QR code

Contacts could only be imported by pasting `meshcore://<hex advert>` from
the clipboard, so contact QR codes and links shared by the official app
(`meshcore://contact/add?name=...&public_key=...&type=...`) could not be
used at all.

Add a contact QR scanner screen, reachable from the contacts menu, that
scans with the camera or decodes a QR code from a photo in the gallery.
Both the official contact-card link and the existing hex advert form are
accepted; cards are applied with CMD_ADD_UPDATE_CONTACT and advert blobs
keep using CMD_IMPORT_CONTACT.

Fixes #529
This commit is contained in:
Gianluca Boiano committed 2026-09-13 00:23:46 +02:00
1 parent 92e1d15d1c
commit d0583f2039
28 files changed
+1231 -16

No files matched your search

+17
View File
@@ -4260,6 +4260,23 @@ class AppLocalizationsIt extends AppLocalizations {
String get contacts_addContactFromClipboard =>
'Aggiungere contatto dalla clipboard';
@override
String get contacts_scanQrCode => 'Scansiona codice QR';
@override
String get contacts_scanQrInstructions =>
'Inquadra un codice QR di un contatto MeshCore';
@override
String get contacts_qrFromGallery => 'Scansiona QR dalla galleria';
@override
String get contacts_noQrCodeFound =>
'Nessun codice QR trovato nell\'immagine selezionata.';
@override
String get contacts_qrGalleryFailed => 'Impossibile aprire la galleria.';
@override
String get contacts_ShareContact => 'Copia contatto negli Appunti';