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:
28 files changed
+1231
-16
No files matched your search
@@ -2402,6 +2402,11 @@
|
||||
"contacts_floodAdvert": "Flood Advert",
|
||||
"contacts_copyAdvertToClipboard": "Copy Advert to Clipboard",
|
||||
"contacts_addContactFromClipboard": "Add Contact from Clipboard",
|
||||
"contacts_scanQrCode": "Scan QR Code",
|
||||
"contacts_scanQrInstructions": "Point the camera at a MeshCore contact QR code",
|
||||
"contacts_qrFromGallery": "Scan QR from Gallery",
|
||||
"contacts_noQrCodeFound": "No QR code found in the selected image.",
|
||||
"contacts_qrGalleryFailed": "Could not open the gallery.",
|
||||
"contacts_ShareContact": "Copy contact to Clipboard",
|
||||
"contacts_ShareContactZeroHop": "Share contact by advert",
|
||||
"contacts_zeroHopContactAdvertSent": "Sent contact by advert.",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -7372,6 +7372,36 @@ abstract class AppLocalizations {
|
||||
/// **'Add Contact from Clipboard'**
|
||||
String get contacts_addContactFromClipboard;
|
||||
|
||||
/// No description provided for @contacts_scanQrCode.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Scan QR Code'**
|
||||
String get contacts_scanQrCode;
|
||||
|
||||
/// No description provided for @contacts_scanQrInstructions.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Point the camera at a MeshCore contact QR code'**
|
||||
String get contacts_scanQrInstructions;
|
||||
|
||||
/// No description provided for @contacts_qrFromGallery.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Scan QR from Gallery'**
|
||||
String get contacts_qrFromGallery;
|
||||
|
||||
/// No description provided for @contacts_noQrCodeFound.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'No QR code found in the selected image.'**
|
||||
String get contacts_noQrCodeFound;
|
||||
|
||||
/// No description provided for @contacts_qrGalleryFailed.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Could not open the gallery.'**
|
||||
String get contacts_qrGalleryFailed;
|
||||
|
||||
/// No description provided for @contacts_ShareContact.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
||||
@@ -4253,6 +4253,23 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_addContactFromClipboard => 'Добави контакт от клипборда';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => 'Копирай контакт в клипборда';
|
||||
|
||||
|
||||
@@ -4260,6 +4260,23 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String get contacts_addContactFromClipboard =>
|
||||
'Kontakt aus Zwischenablage hinzufügen';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => 'Kontakt in die Zwischenablage kopieren';
|
||||
|
||||
|
||||
@@ -4188,6 +4188,23 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_addContactFromClipboard => 'Add Contact from Clipboard';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => 'Copy contact to Clipboard';
|
||||
|
||||
|
||||
@@ -4252,6 +4252,23 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
String get contacts_addContactFromClipboard =>
|
||||
'Agregar contacto desde el portapapeles';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => 'Copiar contacto al portapapeles';
|
||||
|
||||
|
||||
@@ -4269,6 +4269,23 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get contacts_addContactFromClipboard =>
|
||||
'Ajouter un contact depuis le presse-papiers';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact =>
|
||||
'Copier le contact dans le presse-papiers';
|
||||
|
||||
@@ -4250,6 +4250,23 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
String get contacts_addContactFromClipboard =>
|
||||
'Névjegy hozzáadása a vágólapról';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => 'Névjegy másolása a vágólapra';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -4042,6 +4042,23 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_addContactFromClipboard => 'クリップボードから連絡先を追加する';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => '連絡先をクリップボードにコピー';
|
||||
|
||||
|
||||
@@ -4052,6 +4052,23 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_addContactFromClipboard => '복사본에서 연락처 추가';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => '연락처를 복사';
|
||||
|
||||
|
||||
@@ -4238,6 +4238,23 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
String get contacts_addContactFromClipboard =>
|
||||
'Contact uit klembord toevoegen';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => 'Contact naar Klembord kopiëren';
|
||||
|
||||
|
||||
@@ -4270,6 +4270,23 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_addContactFromClipboard => 'Dodaj kontakt z schowka';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => 'Kopiuj kontakt do schowka';
|
||||
|
||||
|
||||
@@ -4254,6 +4254,23 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String get contacts_addContactFromClipboard =>
|
||||
'Adicionar Contato da Área de Transferência';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact =>
|
||||
'Copiar contato para Área de Transferência';
|
||||
|
||||
@@ -4264,6 +4264,23 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
String get contacts_addContactFromClipboard =>
|
||||
'Добавить контакт из буфера обмена';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => 'Копировать контакт в буфер обмена';
|
||||
|
||||
|
||||
@@ -4235,6 +4235,23 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_addContactFromClipboard => 'Pridať kontakt z schránky';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => 'Kopírovať kontakt do schránky';
|
||||
|
||||
|
||||
@@ -4231,6 +4231,23 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_addContactFromClipboard => 'Dodaj stik iz odložišča';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => 'Kopiraj stik v Odložišče';
|
||||
|
||||
|
||||
@@ -4207,6 +4207,23 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
String get contacts_addContactFromClipboard =>
|
||||
'Lägg till kontakt från urklipp';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => 'Kopiera kontakt till Urklipp';
|
||||
|
||||
|
||||
@@ -4257,6 +4257,23 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_addContactFromClipboard => 'Додати контакт з буфера';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => 'Копіювати контакт у буфер обміну';
|
||||
|
||||
|
||||
@@ -3966,6 +3966,23 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_addContactFromClipboard => '从剪贴板添加联系人';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrCode => 'Scan QR Code';
|
||||
|
||||
@override
|
||||
String get contacts_scanQrInstructions =>
|
||||
'Point the camera at a MeshCore contact QR code';
|
||||
|
||||
@override
|
||||
String get contacts_qrFromGallery => 'Scan QR from Gallery';
|
||||
|
||||
@override
|
||||
String get contacts_noQrCodeFound =>
|
||||
'No QR code found in the selected image.';
|
||||
|
||||
@override
|
||||
String get contacts_qrGalleryFailed => 'Could not open the gallery.';
|
||||
|
||||
@override
|
||||
String get contacts_ShareContact => '复制联系人信息到剪贴板';
|
||||
|
||||
|
||||
Reference in new issue
Block a user