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

+5
View File
@@ -1905,6 +1905,11 @@
"contacts_copyAdvertToClipboard": "Copia Annuncio negli Appunti",
"contacts_addContactFromClipboard": "Aggiungere contatto dalla clipboard",
"contacts_clipboardEmpty": "La clipboard è vuota.",
"contacts_scanQrCode": "Scansiona codice QR",
"contacts_scanQrInstructions": "Inquadra un codice QR di un contatto MeshCore",
"contacts_qrFromGallery": "Scansiona QR dalla galleria",
"contacts_noQrCodeFound": "Nessun codice QR trovato nell'immagine selezionata.",
"contacts_qrGalleryFailed": "Impossibile aprire la galleria.",
"contacts_ShareContact": "Copia contatto negli Appunti",
"contacts_contactImported": "Il contatto è stato importato.",
"contacts_contactImportFailed": "Contatto non importato con successo.",