mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
Merge pull request #5327 from BlueWallet/catalina
DEL: Remove outdated code for unsupported macOS
This commit is contained in:
commit
c16b152262
@ -83,8 +83,7 @@ npx react-native run-ios
|
||||
npm run maccatalystpatches
|
||||
```
|
||||
|
||||
Once the patches are applied, open Xcode and select "My Mac" as destination. If you are running macOS Catalina, you may need to remove all iOS 14 Widget targets.
|
||||
|
||||
Once the patches are applied, open Xcode and select "My Mac" as destination.
|
||||
|
||||
## TESTS
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
import AsyncStorage from '@react-native-async-storage/async-storage';
|
||||
import { Platform } from 'react-native';
|
||||
import { getSystemName, isTablet, getDeviceType } from 'react-native-device-info';
|
||||
import { isTablet, getDeviceType } from 'react-native-device-info';
|
||||
|
||||
const isMacCatalina = getSystemName() === 'Mac OS X';
|
||||
const isDesktop = getDeviceType() === 'Desktop';
|
||||
const getIsTorCapable = () => {
|
||||
let capable = true;
|
||||
@ -37,4 +36,4 @@ export async function isTorDaemonDisabled() {
|
||||
|
||||
export const isHandset = getDeviceType() === 'Handset';
|
||||
export const isTorCapable = getIsTorCapable();
|
||||
export { isMacCatalina, isDesktop, isTablet };
|
||||
export { isDesktop, isTablet };
|
||||
|
@ -6,8 +6,6 @@ import DocumentPicker from 'react-native-document-picker';
|
||||
import { launchCamera, launchImageLibrary } from 'react-native-image-picker';
|
||||
import { presentCameraNotAuthorizedAlert } from '../class/camera';
|
||||
import { isDesktop } from '../blue_modules/environment';
|
||||
import ActionSheet from '../screen/ActionSheet';
|
||||
import BlueClipboard from './clipboard';
|
||||
import alert from '../components/Alert';
|
||||
const LocalQRCode = require('@remobile/react-native-qrcode-local-image');
|
||||
|
||||
@ -205,43 +203,8 @@ const showFilePickerAndReadFile = async function () {
|
||||
}
|
||||
};
|
||||
|
||||
// Intended for macOS Catalina. Not for long press shortcut
|
||||
const showActionSheet = async props => {
|
||||
const isClipboardEmpty = (await BlueClipboard.getClipboardContent()).trim().length === 0;
|
||||
let copyFromClipboardIndex;
|
||||
const options = [loc._.cancel, loc.wallets.take_photo, loc.wallets.list_long_choose];
|
||||
if (!isClipboardEmpty) {
|
||||
options.push(loc.wallets.list_long_clipboard);
|
||||
copyFromClipboardIndex = options.length - 1;
|
||||
}
|
||||
|
||||
options.push(loc.wallets.import_file);
|
||||
const importFileButtonIndex = options.length - 1;
|
||||
|
||||
return new Promise(resolve =>
|
||||
ActionSheet.showActionSheetWithOptions({ options, cancelButtonIndex: 0, anchor: props.anchor }, async buttonIndex => {
|
||||
if (buttonIndex === 1) {
|
||||
takePhotoWithImagePickerAndReadPhoto().then(resolve);
|
||||
} else if (buttonIndex === 2) {
|
||||
showImagePickerAndReadImage()
|
||||
.then(resolve)
|
||||
.catch(error => alert(error.message));
|
||||
} else if (buttonIndex === copyFromClipboardIndex) {
|
||||
const clipboard = await BlueClipboard.getClipboardContent();
|
||||
resolve(clipboard);
|
||||
} else if (importFileButtonIndex) {
|
||||
const { data } = await showFilePickerAndReadFile();
|
||||
if (data) {
|
||||
resolve(data);
|
||||
}
|
||||
}
|
||||
}),
|
||||
);
|
||||
};
|
||||
|
||||
module.exports.writeFileAndExport = writeFileAndExport;
|
||||
module.exports.openSignedTransaction = openSignedTransaction;
|
||||
module.exports.showFilePickerAndReadFile = showFilePickerAndReadFile;
|
||||
module.exports.showImagePickerAndReadImage = showImagePickerAndReadImage;
|
||||
module.exports.takePhotoWithImagePickerAndReadPhoto = takePhotoWithImagePickerAndReadPhoto;
|
||||
module.exports.showActionSheet = showActionSheet;
|
||||
|
@ -39,6 +39,21 @@
|
||||
<key>orderHint</key>
|
||||
<integer>2</integer>
|
||||
</dict>
|
||||
<key>Stickers.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>4</integer>
|
||||
</dict>
|
||||
<key>TodayExtension.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>5</integer>
|
||||
</dict>
|
||||
<key>WidgetsExtension.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>6</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>SuppressBuildableAutocreation</key>
|
||||
<dict>
|
||||
|
@ -415,7 +415,6 @@
|
||||
"import_passphrase_message": "أدخل عبارة المرور إذا كنت قد استخدمت أيًا منها",
|
||||
"import_error": "فشل الاستيراد. يُرجى التأكد من أن البيانات المقدَّمة صالحة.",
|
||||
"import_explanation": "اكتب هنا عبارتك التذكيرية أو مفتاحك الخاص أو WIF أو أي شيء لديك. ستبذل BlueWallet قصارى جهدها لتخمين التنسيق الصحيح واستيراد محفظتك",
|
||||
"import_file": "استيراد ملف",
|
||||
"import_imported": "تم الاستيراد",
|
||||
"import_scan_qr": "المسح الضوئي أو استيراد ملف",
|
||||
"import_success": "تم استيراد محفظتك بنجاح.",
|
||||
@ -455,7 +454,6 @@
|
||||
"select_no_bitcoin": "لا توجد محافظ بتكوين متاحة حاليًا.",
|
||||
"select_no_bitcoin_exp": "تحتاج إلى محفظة بيتكوين لإعادة تعبئة محافظ البرق (Lightning). يُرجى إنشاء محفظة أو استيراد واحدة.",
|
||||
"select_wallet": "اختيار محفظة",
|
||||
"take_photo": "التقاط صورة",
|
||||
"xpub_copiedToClipboard": "تم النسخ إلى الحافظة.",
|
||||
"pull_to_refresh": "اسحب للتحديث",
|
||||
"warning_do_not_disclose": "تحذير! لا تنشر هذا.",
|
||||
|
@ -267,7 +267,6 @@
|
||||
"export_title": "Exportació de moneder",
|
||||
"import_do_import": "Importar",
|
||||
"import_error": "No s'ha pogut importar. ¿És vàlid?",
|
||||
"import_file": "Importar arxiu",
|
||||
"import_imported": "Importat",
|
||||
"import_scan_qr": "o escanejar codi QR?",
|
||||
"import_success": "Èxit",
|
||||
@ -283,7 +282,6 @@
|
||||
"list_tryagain": "Torna-ho a provar",
|
||||
"reorder_title": "Reorganitzar moneder",
|
||||
"select_wallet": "Seleccioni moneder",
|
||||
"take_photo": "Fer una foto",
|
||||
"xpub_copiedToClipboard": "Copiat al porta-retalls."
|
||||
},
|
||||
"multisig": {
|
||||
|
@ -415,7 +415,6 @@
|
||||
"import_passphrase_message": "Zadejte přístupovou frázi, pokud jste nějakou použili",
|
||||
"import_error": "Chyba při importu. Prosím ujistěte se, že poskytnutá data jsou správná.",
|
||||
"import_explanation": "Zadejte seed slova, veřejný klíč, WIF nebo cokoli, co máte. BlueWallet se bude snažit uhodnout správný formát a importovat vaši peněženku.",
|
||||
"import_file": "Importovat soubor",
|
||||
"import_imported": "Importováno",
|
||||
"import_scan_qr": "Naskenujte nebo importujte soubor",
|
||||
"import_success": "Vaše peněženka byla úspěšně importována.",
|
||||
@ -455,7 +454,6 @@
|
||||
"select_no_bitcoin": "V současné době nejsou k dispozici žádné bitcoinové peněženky.",
|
||||
"select_no_bitcoin_exp": "Bitcoinová peněženka je vyžadována pro doplnění Lightning peněženky. Vytvořte nebo importujte jednu.",
|
||||
"select_wallet": "Vyberte peněženku",
|
||||
"take_photo": "Vyfotit",
|
||||
"xpub_copiedToClipboard": "Zkopírováno do schránky.",
|
||||
"pull_to_refresh": "zatáhněte pro obnovení",
|
||||
"warning_do_not_disclose": "Varování! Nezveřejňujte",
|
||||
|
@ -179,7 +179,6 @@
|
||||
"enter_bip38_password": "Angen cyfrinair i ddad-gryptio",
|
||||
"export_title": "Waled Allfor",
|
||||
"import_do_import": "Mewnforio",
|
||||
"import_file": "Mewnforio ffeil",
|
||||
"import_imported": "Mewnforwyd",
|
||||
"import_scan_qr": "Sganio neu fewnforio ffeil",
|
||||
"import_success": "Mae dy waled wedi cael ei fewnforio'n llwyddiannus.",
|
||||
@ -194,7 +193,6 @@
|
||||
"list_title": "Waledi",
|
||||
"list_tryagain": "Trio eto",
|
||||
"select_wallet": "Dewis waled",
|
||||
"take_photo": "Cymeryd llun",
|
||||
"xpub_copiedToClipboard": "Wedi gopio i'r clipfwrdd.",
|
||||
"pull_to_refresh": "Tynnu i Adnewyddu",
|
||||
"warning_do_not_disclose": "Rhybudd! Paid ei ddatgelu."
|
||||
|
@ -413,7 +413,6 @@
|
||||
"import_passphrase_message": "Wenn genutzt, die Passphrase eingeben",
|
||||
"import_error": "Fehler beim Import. Ist die Eingabe korrekt?",
|
||||
"import_explanation": "Gib hier die mnemonische Phrase, den privaten Schlüssel, WIF oder was immer du hast ein. BlueWallet wird bestmöglich das Format interpretieren und die Wallet importieren.",
|
||||
"import_file": "Datei importieren",
|
||||
"import_imported": "Importiert",
|
||||
"import_scan_qr": "QR-Code scannen oder Datei importieren",
|
||||
"import_success": "Wallet wurde erfolgreich importiert.",
|
||||
@ -452,7 +451,6 @@
|
||||
"select_no_bitcoin": "Es sind momentan keine Bitcoin Wallets verfügbar.",
|
||||
"select_no_bitcoin_exp": "Eine Bitcoin Wallet ist Voraussetzung dafür, um eine Lightning Wallet zu befüllen. Bitte erstelle oder importiere eines.",
|
||||
"select_wallet": "Wähle eine Wallet",
|
||||
"take_photo": "Foto aufnehmen",
|
||||
"xpub_copiedToClipboard": "In die Zwischenablage kopiert.",
|
||||
"pull_to_refresh": "Zum Aktualisieren ziehen",
|
||||
"warning_do_not_disclose": "Warnung! Nicht veröffentlichen",
|
||||
|
@ -415,7 +415,6 @@
|
||||
"import_passphrase_message": "Enter passphrase if you have used any",
|
||||
"import_error": "Failed to import. Please make sure that the provided data is valid.",
|
||||
"import_explanation": "Please enter your seed words, public key, WIF, or anything you’ve got. BlueWallet will do its best to guess the correct format and import your wallet.",
|
||||
"import_file": "Import File",
|
||||
"import_imported": "Imported",
|
||||
"import_scan_qr": "Scan or import a file",
|
||||
"import_success": "Your wallet has been successfully imported.",
|
||||
@ -455,7 +454,6 @@
|
||||
"select_no_bitcoin": "There are currently no Bitcoin wallets available.",
|
||||
"select_no_bitcoin_exp": "A Bitcoin wallet is required to refill Lightning wallets. Please create or import one.",
|
||||
"select_wallet": "Select Wallet",
|
||||
"take_photo": "Take Photo",
|
||||
"xpub_copiedToClipboard": "Copied to clipboard.",
|
||||
"pull_to_refresh": "Pull to Refresh",
|
||||
"warning_do_not_disclose": "Warning! Do not disclose.",
|
||||
|
@ -413,7 +413,6 @@
|
||||
"import_passphrase_message": "Introduce la passphrase si has usado una",
|
||||
"import_error": "Error al importar. Por favor, asegúrate de que los datos introducidos son correctos.",
|
||||
"import_explanation": "Introduce las palabras de tu semilla, llave pública, WIF, o cualquier otra cosa que tengas. BlueWallet hará lo posible para descifrar el formato correcto e importar tu cartera. ",
|
||||
"import_file": "Importar archivo",
|
||||
"import_imported": "Importado",
|
||||
"import_scan_qr": "Escanear o importar un archivo",
|
||||
"import_success": "Tu cartera ha sido importada.",
|
||||
@ -452,7 +451,6 @@
|
||||
"select_no_bitcoin": "No hay carteras de Bitcoin disponibles.",
|
||||
"select_no_bitcoin_exp": "Una cartera de Bitcoin es necesaria para recargar una cartera Lightning. Por favor, cree o importe una.",
|
||||
"select_wallet": "Selecciona una cartera",
|
||||
"take_photo": "Hacer una foto",
|
||||
"xpub_copiedToClipboard": "Copiado a portapapeles.",
|
||||
"pull_to_refresh": "Desliza el dedo de arriba a abajo para actualizar",
|
||||
"warning_do_not_disclose": "¡Advertencia! No comparta esta información",
|
||||
|
@ -415,7 +415,6 @@
|
||||
"import_passphrase_message": "Ingrese la frase de contraseña si ha usado alguna",
|
||||
"import_error": "No se pudo importar. Asegúrate de que los datos proporcionados sean válidos.",
|
||||
"import_explanation": "Por favor, introduce tus palabras clave, clave pública, WIF, o cualquier cosa que tengas. BlueWallet hará todo lo posible para adivinar el formato correcto e importar tu billetera.",
|
||||
"import_file": "Importar Archivo",
|
||||
"import_imported": "Importado",
|
||||
"import_scan_qr": "Escanear o importar un archivo",
|
||||
"import_success": "Tu billetera se ha importado correctamente.",
|
||||
@ -455,7 +454,6 @@
|
||||
"select_no_bitcoin": "Actualmente no hay billeteras Bitcoin disponibles.",
|
||||
"select_no_bitcoin_exp": "Se requiere una billetera Bitcoin para recargar las billeteras Lightning. Por favor, crea o importa una.",
|
||||
"select_wallet": "Selecciona Billetera",
|
||||
"take_photo": "Tomar foto",
|
||||
"xpub_copiedToClipboard": "Copiado al portapapeles.",
|
||||
"pull_to_refresh": "Tira para actualizar",
|
||||
"warning_do_not_disclose": "¡Advertencia! No revelar.",
|
||||
|
@ -411,7 +411,6 @@
|
||||
"import_passphrase_message": "درصورتیکه از پسفریز (passphrase) استفاده کردهاید آن را وارد کنید",
|
||||
"import_error": "واردکردن ناموفق بود. لطفاً از معتبربودن دادهٔ ارائهشده اطمینان حاصل کنید.",
|
||||
"import_explanation": "لطفاً کلمههای سید، کلید عمومی، WIF، یا هر چیزی را که دارید وارد کنید. BlueWallet تمام تلاش خود را برای حدسزدن قالب صحیح و واردکردن کیف پول شما انجام خواهد داد.",
|
||||
"import_file": "واردکردن فایل",
|
||||
"import_imported": "وارد شد",
|
||||
"import_scan_qr": "اسکن یا واردکردن فایل",
|
||||
"import_success": "کیف پول شما با موفقیت وارد شد.",
|
||||
@ -450,7 +449,6 @@
|
||||
"select_no_bitcoin": "هیچ کیف پول بیتکوینی درحالحاضر دردسترس نیست.",
|
||||
"select_no_bitcoin_exp": "یک کیف پول بیتکوین برای پرکردن کیف پولهای لایتنینگ نیاز است. لطفاً یکی بسازید یا وارد کنید.",
|
||||
"select_wallet": "انتخاب کیف پول",
|
||||
"take_photo": "گرفتن عکس",
|
||||
"xpub_copiedToClipboard": "در کلیپبورد کپی شد.",
|
||||
"pull_to_refresh": "برای بهروزسانی به پایین بکشید",
|
||||
"warning_do_not_disclose": "هشدار! فاش نکنید.",
|
||||
|
@ -399,7 +399,6 @@
|
||||
"import_passphrase_message": "Anna tunnuslause, mikäli olet käyttänyt sellaista",
|
||||
"import_error": "Tuonti epäonnistui. Varmista, että annettu tieto on oikein",
|
||||
"import_explanation": "Kirjoita siemensanasi, julkinen avain, WIF tai mikä tahansa sinulla on. BlueWallet tekee parhaansa arvatakseen oikean formaatin ja tuodakseen lompakkosi. ",
|
||||
"import_file": "Tuo tiedosto",
|
||||
"import_imported": "Tuotu",
|
||||
"import_scan_qr": "Skannaa tai tuo tiedosto",
|
||||
"import_success": "Lompakkosi tuonti onnistui.",
|
||||
@ -438,7 +437,6 @@
|
||||
"select_no_bitcoin": "Bitcoin-lompakkoa ei tällä hetkellä ole saatavana.",
|
||||
"select_no_bitcoin_exp": "Bitcoin-lompakkoa vaaditaan Lightning-lompakkojen täyttämiseksi. Luo tai tuo yksi.",
|
||||
"select_wallet": "Valitse Lompakko",
|
||||
"take_photo": "Ota Kuva",
|
||||
"xpub_copiedToClipboard": "Kopioitu leikepöydälle.",
|
||||
"pull_to_refresh": "vedä päivittääksesi",
|
||||
"warning_do_not_disclose": "Varoitus! Älä paljasta",
|
||||
|
@ -411,7 +411,6 @@
|
||||
"import_passphrase_message": "Entrez la phrase secrète si vous en avez utilisé une",
|
||||
"import_error": "Échec de l'import. Merci, de vérifier que les données saisies sont valides.",
|
||||
"import_explanation": "Entrez ici votre mnémonique, clé privée, WIF, ou quoi que ce soit que vous ayez. BlueWallet fera de son mieux pour deviner le bon format et importer votre portefeuille",
|
||||
"import_file": "Importer le fichier",
|
||||
"import_imported": "Importé",
|
||||
"import_scan_qr": "ou scaner un QR code",
|
||||
"import_success": "Succès",
|
||||
@ -450,7 +449,6 @@
|
||||
"select_no_bitcoin": "Il n'y a aucun portefeuille Bitcoin disponible pour le moment.",
|
||||
"select_no_bitcoin_exp": "Un portefeuille Bitcoin est nécessaire pour approvisionner les portefeuilles Lightning. Veuillez en créer ou en importer un.",
|
||||
"select_wallet": "Choix du portefeuille",
|
||||
"take_photo": "Prendre une photo",
|
||||
"xpub_copiedToClipboard": "Copié dans le presse-papiers.",
|
||||
"pull_to_refresh": "Tirer pour rafraichir",
|
||||
"warning_do_not_disclose": "Attention! Ne pas divulguer",
|
||||
|
@ -408,7 +408,6 @@
|
||||
"import_passphrase_message": "הכניסו סיסמה אם השתמשתם באחת",
|
||||
"import_error": "היבוא כשל. אנא וודאו שהמידע שסופק תקין.",
|
||||
"import_explanation": "כתבו כאן את מילות הגיבוי, המפתח הפרטי, WIF או כל דבר אחר שברשותכם. BlueWallet ישתדל לנחש את הפורמט הנכון וייבא את ארנק.",
|
||||
"import_file": "יבוא קובץ",
|
||||
"import_imported": "יובא",
|
||||
"import_scan_qr": "סריקה או יבוא קובץ",
|
||||
"import_success": "ארנקך יובא בהצלחה.",
|
||||
@ -447,7 +446,6 @@
|
||||
"select_no_bitcoin": "אין ארנקי ביטקוין זמינים.",
|
||||
"select_no_bitcoin_exp": "דרוש ארנק ביטקוין בכדי לטעון את ארנקי הברק. צרו או יבאו אחד.",
|
||||
"select_wallet": "בחירת ארנק",
|
||||
"take_photo": "צילום תמונה",
|
||||
"xpub_copiedToClipboard": "הועתק ללוח.",
|
||||
"pull_to_refresh": "משכו כדי לרענן",
|
||||
"warning_do_not_disclose": "אזהרה! אין לחשוף.",
|
||||
|
@ -399,7 +399,6 @@
|
||||
"import_passphrase_message": "Add meg a jelszavadat ha használsz olyat",
|
||||
"import_error": "Importálás sikertelen. Ellenőrizd, hogy helyes adatokat adtál-e meg.",
|
||||
"import_explanation": "Kérjük, írja be a biztonsági szavakat, a nyilvános kulcsot, a WIF-et vagy bármi mást. A BlueWallet mindent megtesz a helyes formátum kitalálásáért és a pénztárca importálásáért. ",
|
||||
"import_file": "fájl importálása",
|
||||
"import_imported": "Importálva",
|
||||
"import_scan_qr": "vagy QR-kód szkennelése?",
|
||||
"import_success": "Sikeres importálás!",
|
||||
@ -438,7 +437,6 @@
|
||||
"select_no_bitcoin": "Jelenleg nincs elérhető Bitcoin tárca.",
|
||||
"select_no_bitcoin_exp": "A Lightning tárca feltöltéséhez Bitcoin tárcára van szükség. Készíts vagy importálj egy Bitcoin tárcát.",
|
||||
"select_wallet": "Válassz tárcát",
|
||||
"take_photo": "Fénykép készítése",
|
||||
"xpub_copiedToClipboard": "Vágólapra másolva",
|
||||
"pull_to_refresh": "Húzza le a frissítéshez",
|
||||
"warning_do_not_disclose": "VESZÉLY! Ezt soha senkivel ne ossza meg!",
|
||||
|
@ -412,7 +412,6 @@
|
||||
"list_tryagain": "Riprova",
|
||||
"reorder_title": "Riordina Portafogli",
|
||||
"select_wallet": "Seleziona Portafoglio",
|
||||
"take_photo": "Scatta una foto",
|
||||
"xpub_copiedToClipboard": "Copiata negli appunti.",
|
||||
"pull_to_refresh": "Tira verso il basso per aggiornare",
|
||||
"xpub_title": "XPUB del Portafoglio"
|
||||
|
@ -415,7 +415,6 @@
|
||||
"import_passphrase_message": "パスフレーズがある場合は入力",
|
||||
"import_error": "インポートに失敗しました。入力したデータが有効か確認してください。",
|
||||
"import_explanation": "ここにシードフレーズ、公開鍵、WIFなど持っているものを入力してください。BlueWallet が正しい形式を推測しウォレットをインポートします。",
|
||||
"import_file": "インポートファイル",
|
||||
"import_imported": "インポート完了",
|
||||
"import_scan_qr": "QR コードの読み取り",
|
||||
"import_success": "成功",
|
||||
@ -455,7 +454,6 @@
|
||||
"select_no_bitcoin": "現在利用可能なビットコインウォレットがありません。",
|
||||
"select_no_bitcoin_exp": "ライトニングウォレットのリフィルにはビットコインウォレットが必要です。作成するか、インポートしてください。",
|
||||
"select_wallet": "ウォレット選択",
|
||||
"take_photo": "写真撮影",
|
||||
"xpub_copiedToClipboard": "クリップボードにコピーしました。",
|
||||
"pull_to_refresh": "引っ張って更新する",
|
||||
"warning_do_not_disclose": "警告! 公開しないこと。",
|
||||
|
@ -410,7 +410,6 @@
|
||||
"import_passphrase_message": "사용하신적 있으시면 암호를 넣어세요",
|
||||
"import_error": "들여오기 실패. 제공한 데이타가 유효한지 확인하세요.",
|
||||
"import_explanation": "종자단어, 공용 키, WIF, 아니면 소지하신 어떤거라도 입력해 주세요. 블루월렛이 맞는 형식을 추정해서 지갑을 들여오기 할 수 있도록 최선을 다할 것입니다.",
|
||||
"import_file": "화일 들여오기",
|
||||
"import_imported": "들여오기 완료",
|
||||
"import_scan_qr": "스캔 또는 화일 들여오기",
|
||||
"import_success": "사용자 지갑의 성공적인 들여오기가 완료되었습니다.",
|
||||
@ -449,7 +448,6 @@
|
||||
"select_no_bitcoin": "현재 사용 가능한 비트코인 월렛이 없습니다.",
|
||||
"select_no_bitcoin_exp": "라이트닝 지갑을 재충전하시려면 비트코인 지갑이 필요합니다. 새로 만들기 또는 들여오기를 하시기바랍니다.",
|
||||
"select_wallet": "지갑 선택",
|
||||
"take_photo": "사진 찍기",
|
||||
"xpub_copiedToClipboard": "클립보드에 복사완료",
|
||||
"pull_to_refresh": "갱신하려면 당기세요",
|
||||
"warning_do_not_disclose": "경고! 공개하지 마십시오.",
|
||||
|
@ -384,7 +384,6 @@
|
||||
"import_passphrase_message": "Masukkan frasa laluan jika ada digunakan",
|
||||
"import_error": "Gagal untuk dipindah masuk. Sila pastikan butiran yang diberikan adalah sah.",
|
||||
"import_explanation": "Sila masukkan kata benih, kunci umum, WIF, atau lain-lain butiran yang anda ada. BlueWallet akan lakukan yang terbaik untuk meneka susun atur yang betul dan memindah masuk dompet anda.",
|
||||
"import_file": "Pindah Masuk Fail",
|
||||
"import_imported": "Dipindah Masuk",
|
||||
"import_scan_qr": "Imbas atau pindah masuk fail",
|
||||
"import_success": "Dompet anda sudah berjaya dipindah masuk.",
|
||||
@ -410,7 +409,6 @@
|
||||
"select_no_bitcoin": "Tiada dompet Bitcoin ketika ini.",
|
||||
"select_no_bitcoin_exp": "Dompet Bitcoin diperlukan untuk mengisi dompet Lightning. Sila cipta atau pindah masuk sebuah dompet.",
|
||||
"select_wallet": "Pilih Dompet",
|
||||
"take_photo": "Ambil Gambar",
|
||||
"xpub_copiedToClipboard": "Disalin ke papan sepit.",
|
||||
"pull_to_refresh": "Tarik untuk Segar Semula",
|
||||
"warning_do_not_disclose": "Amaran! Jangan dedahkan.",
|
||||
|
@ -411,7 +411,6 @@
|
||||
"import_passphrase_message": "Skriv inn passordfrase hvis du har brukt noen",
|
||||
"import_error": "Kunne ikke importere. Vennligst vær sikker på at de oppgitte dataene er gyldige.",
|
||||
"import_explanation": "Vennligst skriv inn dine \"seed words\", den offentlige nøkkelen, WIF eller noe annet du har. BlueWallet vil gjøre sitt beste for å gjette riktig format og importere lommeboken.",
|
||||
"import_file": "Importer Fil",
|
||||
"import_imported": "Importert",
|
||||
"import_scan_qr": "Skann eller importer en fil",
|
||||
"import_success": "Lommeboken din har blitt importert.",
|
||||
@ -450,7 +449,6 @@
|
||||
"select_no_bitcoin": "Det er for øyeblikket ingen tilgjengelige Bitcoin-lommebøker.",
|
||||
"select_no_bitcoin_exp": "En Bitcoin-lommebok kreves for å fylle Lightning-lommebøker. Opprett eller importer en.",
|
||||
"select_wallet": "Velg Lommebok",
|
||||
"take_photo": "Ta Bilde",
|
||||
"xpub_copiedToClipboard": "Kopiert til utklippstavlen.",
|
||||
"pull_to_refresh": "Dra for å oppdatere",
|
||||
"warning_do_not_disclose": "Advarsel! Ikke avslør.",
|
||||
|
@ -398,7 +398,6 @@
|
||||
"import_passphrase_message": "Voer wachtwoord in als u één heeft gebruikt",
|
||||
"import_error": "Importeren mislukt. Zorg ervoor dat de verstrekte gegevens geldig zijn.",
|
||||
"import_explanation": "Schrijf hier uw mnemonic phrase, public key, WIF of wat je maar hebt. BlueWallet zal zijn best doen om het juiste formaat te raden en uw wallet te importeren.",
|
||||
"import_file": "Importeer bestand",
|
||||
"import_imported": "Geïmporteerd",
|
||||
"import_scan_qr": "QR-code scannen of importeren?",
|
||||
"import_success": "Succes",
|
||||
@ -436,7 +435,6 @@
|
||||
"select_no_bitcoin": "Er is momenteel geen Bitcoin-wallet beschikbaar",
|
||||
"select_no_bitcoin_exp": "Een Bitcoin-wallet is vereist om Lightning-wallets opnieuw te vullen. Maak of importeer er een.",
|
||||
"select_wallet": "Selecteer wallet",
|
||||
"take_photo": "Maak foto",
|
||||
"xpub_copiedToClipboard": "Gekopieerd naar het klembord.",
|
||||
"pull_to_refresh": "Pull om te refreshen.",
|
||||
"warning_do_not_disclose": "Waarschuwing! Niet bekendmaken",
|
||||
|
@ -415,7 +415,6 @@
|
||||
"import_passphrase_message": "Podaj hasło jeśli jakieś użyto",
|
||||
"import_error": "Import nieudany. Upewnij się proszę, że dane są prawidłowe.",
|
||||
"import_explanation": "Podaj poniżej twoje ziarno prywatny klucz, WIF lub cokolwiek co masz. BlueWallet postara się odgadnąć prawidłowy format i zaimportować Twój portfel. Jeśli zostanie podany klucz publiczny, dodamy go jako portfel tylko do obserwacji.",
|
||||
"import_file": "Importuj plik",
|
||||
"import_imported": "Zaimportowano",
|
||||
"import_scan_qr": "Skanuj lub importuj plik",
|
||||
"import_success": "Twój portfel został pomyślnie zaimportowany.",
|
||||
@ -455,7 +454,6 @@
|
||||
"select_no_bitcoin": "Nie ma dostępnych portfeli Bitcoin.",
|
||||
"select_no_bitcoin_exp": "Portfel Bitcoin jest wymagany by uzupełnić portfel Lightning. Proszę utwórz lub zaimportuj.",
|
||||
"select_wallet": "Wybierz portfel",
|
||||
"take_photo": "Zrób zdjęcie",
|
||||
"xpub_copiedToClipboard": "Skopiowano do schowka.",
|
||||
"pull_to_refresh": "Pociągnij by odświeżyć",
|
||||
"warning_do_not_disclose": "Uwaga! Nie ujawniać.",
|
||||
|
@ -415,7 +415,6 @@
|
||||
"import_passphrase_message": "Digite a senha, caso você tenha usado alguma",
|
||||
"import_error": "Erro ao importar. Por favor, confira se os dados que você passou são válidos.",
|
||||
"import_explanation": "Insira aqui sua seed, chave pública, WIF ou o que você tiver. A BlueWallet vai fazer o possível para decifrar o formato correto e importar a sua carteira.",
|
||||
"import_file": "Importar arquivo",
|
||||
"import_imported": "Importada",
|
||||
"import_scan_qr": "Ler código ou importar arquivo",
|
||||
"import_success": "Sua carteira foi importada com sucesso.",
|
||||
@ -455,7 +454,6 @@
|
||||
"select_no_bitcoin": "Não há carteiras Bitcoin disponíveis no momento.",
|
||||
"select_no_bitcoin_exp": "É necessário ter uma carteira Bitcoin para recarregar as carteiras Lightning. Por favor, crie ou importe uma.",
|
||||
"select_wallet": "Escolher carteira",
|
||||
"take_photo": "Tirar foto",
|
||||
"xpub_copiedToClipboard": "Copiado para a área de transferência",
|
||||
"pull_to_refresh": "Puxe para atualizar",
|
||||
"warning_do_not_disclose": "Cuidado! Não divulgue.",
|
||||
|
@ -293,7 +293,6 @@
|
||||
"export_title": "Exportar Wallet",
|
||||
"import_do_import": "Importar",
|
||||
"import_error": "Falhou. É um dado válido?",
|
||||
"import_file": "Importar ficheiro",
|
||||
"import_imported": "Importada",
|
||||
"import_scan_qr": "ou scan o QR code?",
|
||||
"import_success": "Sucesso",
|
||||
@ -313,7 +312,6 @@
|
||||
"select_no_bitcoin": "No momento, não há carteiras Bitcoin disponíveis.",
|
||||
"select_no_bitcoin_exp": "Uma carteira Bitcoin é necessária para recarregar as carteiras Lightning. Por favor, crie ou importe uma.",
|
||||
"select_wallet": "Seleccione uma Wallet",
|
||||
"take_photo": "Tirar foto",
|
||||
"xpub_copiedToClipboard": "copiado para o clipboard",
|
||||
"xpub_title": "XPUB da wallet"
|
||||
},
|
||||
|
@ -383,7 +383,6 @@
|
||||
"import_do_import": "Importă",
|
||||
"import_error": "Importare eșuată. Asigură-te că datele furnizate sunt valide.",
|
||||
"import_explanation": "Introdu cuvintele seed, cheia publică, WIF, sau orice ai. BlueWallet va face tot posibilul pentru a ghici formatul corect și a-ți importa portofelul.",
|
||||
"import_file": "Importă fișier",
|
||||
"import_imported": "Importat",
|
||||
"import_scan_qr": "Scanează sau importă fișier",
|
||||
"import_success": "Portofelul tău a fost importat cu succes.",
|
||||
@ -419,7 +418,6 @@
|
||||
"select_no_bitcoin": "Nu e niciun portofel Bitcoin disponibil.",
|
||||
"select_no_bitcoin_exp": "E necesar un portofel Bitcoin pentru a re-umple portofelele Lightning. Creează sau importă unul.",
|
||||
"select_wallet": "Alege portofel",
|
||||
"take_photo": "Fă foto",
|
||||
"xpub_copiedToClipboard": "Copiat în clipboard.",
|
||||
"pull_to_refresh": "Trage pentru a reîncărca",
|
||||
"warning_do_not_disclose": "Atenție! Nu dezvălui.",
|
||||
|
@ -405,7 +405,6 @@
|
||||
"import_passphrase_message": "Введите кодовую фразу, если она используется",
|
||||
"import_error": "Не удалось импортировать",
|
||||
"import_explanation": "Напиши тут свою мнемоническую фразу, публичный ключ, WIF - что угодно! BlueWallet постарается угадать верный формат.",
|
||||
"import_file": "Импортировать файл",
|
||||
"import_imported": "Импорт завершен",
|
||||
"import_scan_qr": "или отсканировать QR код?",
|
||||
"import_success": "Успех",
|
||||
@ -443,7 +442,6 @@
|
||||
"select_no_bitcoin": "В настоящее время нет доступных биткойн-кошельков.",
|
||||
"select_no_bitcoin_exp": "Биткойн-кошелек необходим для пополнения Lightning кошельков. Пожалуйста, создайте или импортируйте его.",
|
||||
"select_wallet": "Выбрать кошелек",
|
||||
"take_photo": "Сфотографировать",
|
||||
"xpub_copiedToClipboard": "Скопировано",
|
||||
"pull_to_refresh": "потяните, чтобы обновить",
|
||||
"warning_do_not_disclose": "Внимание! Не разглашать",
|
||||
|
@ -408,7 +408,6 @@
|
||||
"import_passphrase_message": "ඔබ මුරපදයක් භාවිතා කර ඇත්නම් ඇතුළත් කරන්න",
|
||||
"import_error": "ආයාත කිරීමට අසමත් විය. කරුණාකර ලබා දී ඇති දත්ත වලංගු බවට වග බලා ගන්න.",
|
||||
"import_explanation": "කරුණාකර ඔබේ බීජ වචන, පොදු යතුර, WIF හෝ ඔබට ලැබී ඇති ඕනෑම දෙයක් ඇතුළත් කරන්න. නිවැරදි ආකෘතිය අනුමාන කර ඔබේ මුදල් පසුම්බිය ආනයනය කිරීමට බ්ලූවොලට් උපරිම උත්සාහයක් ගනු ඇත.",
|
||||
"import_file": "ආයාත ගොනුව",
|
||||
"import_imported": "ආනයනය කරන ලදි",
|
||||
"import_scan_qr": "ගොනුවක් පරිලෝකනය කරන්න හෝ ආයාත කරන්න",
|
||||
"import_success": "ඔබේ මුදල් පසුම්බිය සාර්ථකව ආනයනය කර ඇත.",
|
||||
@ -447,7 +446,6 @@
|
||||
"select_no_bitcoin": "දැනට බිට්කොයින් පසුම්බි නොමැත.",
|
||||
"select_no_bitcoin_exp": "ලයිට්නින් පසුම්බි නැවත පිරවීම සඳහා බිට්කොයින් පසුම්බියක් අවශ්ය වේ. කරුණාකර එකක් සාදා හෝ ආයාත කරන්න.",
|
||||
"select_wallet": "පසුම්බිය තෝරන්න",
|
||||
"take_photo": "ඡායාරූපය ගන්න",
|
||||
"xpub_copiedToClipboard": "පසුරු පුවරුවට පිටපත් කර ඇත.",
|
||||
"pull_to_refresh": "නැවුම් කිරීමට අදින්න",
|
||||
"warning_do_not_disclose": "අනතුරු ඇඟවීම! හෙළි නොකරන්න.",
|
||||
|
@ -411,7 +411,6 @@
|
||||
"import_passphrase_message": "Vnesite dodatno besedo/niz (passphrase), če jo uporabljate",
|
||||
"import_error": "Napaka pri uvozu. Prosimo, preverite ali so podani podatki pravilni.",
|
||||
"import_explanation": "Napišite vaš seznam besed (mnemonično seme), javni ključ, WIF, ali karkoli drugega imate. BlueWallet se bo potrudil uganiti pravilno obliko in uvoziti vašo denarnico.",
|
||||
"import_file": "Uvozi datoteko",
|
||||
"import_imported": "Uvoženo",
|
||||
"import_scan_qr": "Skeniraj ali uvozi datoteko",
|
||||
"import_success": "Vaša denarnica je bila uspešno uvožena.",
|
||||
@ -450,7 +449,6 @@
|
||||
"select_no_bitcoin": "Trenutno ni na voljo nobena Bitcoin denarnica.",
|
||||
"select_no_bitcoin_exp": "Za napolnitev Lightning denarnic je potrebna Bitcoin denarnica. Ustvarite ali uvozite denarnico.",
|
||||
"select_wallet": "Izberite Denarnico",
|
||||
"take_photo": "Fotografiraj",
|
||||
"xpub_copiedToClipboard": "Kopirano v odložišče.",
|
||||
"pull_to_refresh": "Povlecite za osvežitev",
|
||||
"warning_do_not_disclose": "Opozorilo! Ne razkrivajte",
|
||||
|
@ -192,7 +192,6 @@
|
||||
"export_title": "exportera plånbok",
|
||||
"import_do_import": "Importera",
|
||||
"import_error": "Import misslyckades. Kontrollera att informationen du matade in är korrekt.",
|
||||
"import_file": "Importera fil",
|
||||
"import_imported": "Importerad",
|
||||
"import_scan_qr": "eller skanna QR-kod istället?",
|
||||
"import_success": "Import lyckad!",
|
||||
|
@ -266,7 +266,6 @@
|
||||
"export_title": "ส่งออกกระเป๋าสตางค์",
|
||||
"import_do_import": "นำเข้า",
|
||||
"import_error": "ไม่สามารถนำเข้าได้. กรุณาตรวจสอบข้อมูลให้ถูกต้อง.",
|
||||
"import_file": "นำเข้าไฟล์",
|
||||
"import_imported": "นำเข้าแล้ว",
|
||||
"import_scan_qr": "หรือสแกนรหัสคิวอาร์แทน?",
|
||||
"import_success": "สำเร็จ",
|
||||
@ -286,7 +285,6 @@
|
||||
"select_no_bitcoin": "ขณะนี้ไม่มีกระเป๋าสตางค์บิตคอยน์",
|
||||
"select_no_bitcoin_exp": "ก่อนที่จะเติมเงินเข้ากระเป๋าสตางค์ไลท์นิง ท่านต้องมีกระเป๋าสตางค์บิตคอยน์",
|
||||
"select_wallet": "เลือกกระเป๋าสตางค์",
|
||||
"take_photo": "ถ่ายรูป",
|
||||
"xpub_copiedToClipboard": "ก๊อปปี้ไปที่คลิปบอร์ดแล้ว.",
|
||||
"pull_to_refresh": "ดึงเพื่อรีเฟรช",
|
||||
"add_ln_wallet_first": "คุณต้องเพิ่มกระเป๋าเงินไลท์นิงก่อน",
|
||||
|
@ -272,7 +272,6 @@
|
||||
"import_do_import": "Імпорт",
|
||||
"import_error": "Невдача. Це взашалі валідно?",
|
||||
"import_explanation": "Мнемоніка, приватний ключ, чи будь що. BlueWallet спробує вгадати вірний формат.",
|
||||
"import_file": "Імпортувати Файл",
|
||||
"import_imported": "імпортовано",
|
||||
"import_scan_qr": "Імпортувати файл чи сканувати QR-код?",
|
||||
"import_success": "Ваш гаманець було успішно імпортовано.",
|
||||
@ -293,7 +292,6 @@
|
||||
"list_tryagain": "Спробуйте ще раз",
|
||||
"please_continue_scanning": "Продовжуйте сканування.",
|
||||
"select_wallet": "Обрати Гаманець",
|
||||
"take_photo": "Зробити Фото",
|
||||
"xpub_copiedToClipboard": "Зкопіювано",
|
||||
"pull_to_refresh": "Потягніть щоб оновити",
|
||||
"xpub_title": "XPUB Гаманця"
|
||||
|
@ -331,7 +331,6 @@
|
||||
"import_passphrase_title": "密语",
|
||||
"import_error": "导入失败,请确认你提供的信息是有效的",
|
||||
"import_explanation": "输入你的种子短语、公钥、WIF或者任何你拥有的东西。BlueWallet将尽可能猜测正确的格式并导入您的钱包",
|
||||
"import_file": "导入文件",
|
||||
"import_imported": "已经导入",
|
||||
"import_scan_qr": "扫描或导入一个档案",
|
||||
"import_success": "你的钱包已成功导入。",
|
||||
@ -358,7 +357,6 @@
|
||||
"select_no_bitcoin": "当前没有可用的比特币钱包。",
|
||||
"select_no_bitcoin_exp": "需要一个比特币钱包来为闪电钱包充值。 请创建或导入一个。",
|
||||
"select_wallet": "选择钱包",
|
||||
"take_photo": "拍照",
|
||||
"xpub_copiedToClipboard": "复制到粘贴板。",
|
||||
"pull_to_refresh": "拉动来刷新",
|
||||
"warning_do_not_disclose": "警告! 不要透露。",
|
||||
|
@ -355,7 +355,6 @@
|
||||
"select_no_bitcoin": "當前沒有可用的比特幣錢包。",
|
||||
"select_no_bitcoin_exp": "需要一個比特幣錢包來為閃電錢包增值,請建立或導入一個。",
|
||||
"select_wallet": "選擇錢包",
|
||||
"take_photo": "複製到粘貼簿。",
|
||||
"xpub_copiedToClipboard": "複製到貼上板.",
|
||||
"pull_to_refresh": "拉動來刷新",
|
||||
"warning_do_not_disclose": "警告! 不要透露。",
|
||||
|
@ -1,13 +1,11 @@
|
||||
import React, { useState, useContext, useRef } from 'react';
|
||||
import { useNavigation, useRoute, useTheme } from '@react-navigation/native';
|
||||
import { StyleSheet, View, KeyboardAvoidingView, Platform, TextInput, Keyboard, findNodeHandle } from 'react-native';
|
||||
import { StyleSheet, View, KeyboardAvoidingView, Platform, TextInput, Keyboard } from 'react-native';
|
||||
|
||||
import loc from '../../loc';
|
||||
import { BlueButton, BlueButtonLink, BlueCard, BlueSpacing10, BlueSpacing20, BlueText, SafeBlueArea } from '../../BlueComponents';
|
||||
import navigationStyle from '../../components/navigationStyle';
|
||||
import { BlueStorageContext } from '../../blue_modules/storage-context';
|
||||
import { isMacCatalina } from '../../blue_modules/environment';
|
||||
const fs = require('../../blue_modules/fs');
|
||||
|
||||
const IsItMyAddress = () => {
|
||||
/** @type {AbstractWallet[]} */
|
||||
@ -56,18 +54,14 @@ const IsItMyAddress = () => {
|
||||
};
|
||||
|
||||
const importScan = () => {
|
||||
if (isMacCatalina) {
|
||||
fs.showActionSheet({ anchor: findNodeHandle(scanButtonRef.current) }).then(onBarScanned);
|
||||
} else {
|
||||
navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: name,
|
||||
onBarScanned,
|
||||
showFileImportButton: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: name,
|
||||
onBarScanned,
|
||||
showFileImportButton: true,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
const clearAddressInput = () => {
|
||||
|
@ -1,21 +1,9 @@
|
||||
import React, { useContext, useEffect, useRef, useState } from 'react';
|
||||
import {
|
||||
ActivityIndicator,
|
||||
TouchableOpacity,
|
||||
ScrollView,
|
||||
View,
|
||||
TextInput,
|
||||
Linking,
|
||||
Platform,
|
||||
Text,
|
||||
StyleSheet,
|
||||
findNodeHandle,
|
||||
} from 'react-native';
|
||||
import { ActivityIndicator, TouchableOpacity, ScrollView, View, TextInput, Linking, Platform, Text, StyleSheet } from 'react-native';
|
||||
import Clipboard from '@react-native-clipboard/clipboard';
|
||||
import ReactNativeHapticFeedback from 'react-native-haptic-feedback';
|
||||
import DocumentPicker from 'react-native-document-picker';
|
||||
import { useNavigation, useRoute, useTheme, useIsFocused } from '@react-navigation/native';
|
||||
import { isMacCatalina } from '../../blue_modules/environment';
|
||||
import RNFS from 'react-native-fs';
|
||||
import Biometric from '../../class/biometrics';
|
||||
|
||||
@ -220,18 +208,14 @@ const PsbtWithHardwareWallet = () => {
|
||||
};
|
||||
|
||||
const openScanner = () => {
|
||||
if (isMacCatalina) {
|
||||
fs.showActionSheet({ anchor: findNodeHandle(openScannerButton.current) }).then(data => onBarScanned({ data }));
|
||||
} else {
|
||||
navigation.navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: route.name,
|
||||
showFileImportButton: false,
|
||||
onBarScanned,
|
||||
},
|
||||
});
|
||||
}
|
||||
navigation.navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: route.name,
|
||||
showFileImportButton: false,
|
||||
onBarScanned,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
if (txHex) return _renderBroadcastHex();
|
||||
|
@ -15,9 +15,7 @@ import {
|
||||
import navigationStyle from '../../components/navigationStyle';
|
||||
import Privacy from '../../blue_modules/Privacy';
|
||||
import loc from '../../loc';
|
||||
import { isMacCatalina } from '../../blue_modules/environment';
|
||||
import { BlueStorageContext } from '../../blue_modules/storage-context';
|
||||
const fs = require('../../blue_modules/fs');
|
||||
|
||||
const WalletsImport = () => {
|
||||
const navigation = useNavigation();
|
||||
@ -94,18 +92,14 @@ const WalletsImport = () => {
|
||||
};
|
||||
|
||||
const importScan = () => {
|
||||
if (isMacCatalina) {
|
||||
fs.showActionSheet().then(onBarScanned);
|
||||
} else {
|
||||
navigation.navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: route.name,
|
||||
onBarScanned,
|
||||
showFileImportButton: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
navigation.navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: route.name,
|
||||
onBarScanned,
|
||||
showFileImportButton: true,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
const speedBackdoorTap = () => {
|
||||
|
@ -23,7 +23,7 @@ import loc from '../../loc';
|
||||
import { FContainer, FButton } from '../../components/FloatButtons';
|
||||
import { useFocusEffect, useIsFocused, useNavigation, useRoute, useTheme } from '@react-navigation/native';
|
||||
import { BlueStorageContext } from '../../blue_modules/storage-context';
|
||||
import { isDesktop, isMacCatalina, isTablet } from '../../blue_modules/environment';
|
||||
import { isDesktop, isTablet } from '../../blue_modules/environment';
|
||||
import BlueClipboard from '../../blue_modules/clipboard';
|
||||
import navigationStyle from '../../components/navigationStyle';
|
||||
import { TransactionListItem } from '../../components/TransactionListItem';
|
||||
@ -265,7 +265,7 @@ const WalletsList = () => {
|
||||
<FContainer ref={walletActionButtonsRef}>
|
||||
<FButton
|
||||
onPress={onScanButtonPressed}
|
||||
onLongPress={isMacCatalina ? undefined : sendButtonLongPress}
|
||||
onLongPress={sendButtonLongPress}
|
||||
icon={<Image resizeMode="stretch" source={scanImage} />}
|
||||
text={loc.send.details_scan}
|
||||
/>
|
||||
@ -281,11 +281,7 @@ const WalletsList = () => {
|
||||
};
|
||||
|
||||
const onScanButtonPressed = () => {
|
||||
if (isMacCatalina) {
|
||||
fs.showActionSheet({ anchor: findNodeHandle(walletActionButtonsRef.current) }).then(onBarScanned);
|
||||
} else {
|
||||
scanqrHelper(navigate, routeName, false).then(onBarScanned);
|
||||
}
|
||||
scanqrHelper(navigate, routeName, false).then(onBarScanned);
|
||||
};
|
||||
|
||||
const onBarScanned = value => {
|
||||
@ -303,26 +299,22 @@ const WalletsList = () => {
|
||||
const sendButtonLongPress = async () => {
|
||||
const isClipboardEmpty = (await BlueClipboard.getClipboardContent()).trim().length === 0;
|
||||
if (Platform.OS === 'ios') {
|
||||
if (isMacCatalina) {
|
||||
fs.showActionSheet({ anchor: findNodeHandle(walletActionButtonsRef.current) }).then(onBarScanned);
|
||||
} else {
|
||||
const options = [loc._.cancel, loc.wallets.list_long_choose, loc.wallets.list_long_scan];
|
||||
if (!isClipboardEmpty) {
|
||||
options.push(loc.wallets.list_long_clipboard);
|
||||
}
|
||||
ActionSheet.showActionSheetWithOptions(
|
||||
{ options, cancelButtonIndex: 0, anchor: findNodeHandle(walletActionButtonsRef.current) },
|
||||
buttonIndex => {
|
||||
if (buttonIndex === 1) {
|
||||
fs.showImagePickerAndReadImage().then(onBarScanned);
|
||||
} else if (buttonIndex === 2) {
|
||||
scanqrHelper(navigate, routeName, false).then(onBarScanned);
|
||||
} else if (buttonIndex === 3) {
|
||||
copyFromClipboard();
|
||||
}
|
||||
},
|
||||
);
|
||||
const options = [loc._.cancel, loc.wallets.list_long_choose, loc.wallets.list_long_scan];
|
||||
if (!isClipboardEmpty) {
|
||||
options.push(loc.wallets.list_long_clipboard);
|
||||
}
|
||||
ActionSheet.showActionSheetWithOptions(
|
||||
{ options, cancelButtonIndex: 0, anchor: findNodeHandle(walletActionButtonsRef.current) },
|
||||
buttonIndex => {
|
||||
if (buttonIndex === 1) {
|
||||
fs.showImagePickerAndReadImage().then(onBarScanned);
|
||||
} else if (buttonIndex === 2) {
|
||||
scanqrHelper(navigate, routeName, false).then(onBarScanned);
|
||||
} else if (buttonIndex === 3) {
|
||||
copyFromClipboard();
|
||||
}
|
||||
},
|
||||
);
|
||||
} else if (Platform.OS === 'android') {
|
||||
const buttons = [
|
||||
{
|
||||
|
@ -27,7 +27,7 @@ import ActionSheet from '../ActionSheet';
|
||||
import loc from '../../loc';
|
||||
import { FContainer, FButton } from '../../components/FloatButtons';
|
||||
import { BlueStorageContext } from '../../blue_modules/storage-context';
|
||||
import { isDesktop, isMacCatalina } from '../../blue_modules/environment';
|
||||
import { isDesktop } from '../../blue_modules/environment';
|
||||
import BlueClipboard from '../../blue_modules/clipboard';
|
||||
import LNNodeBar from '../../components/LNNodeBar';
|
||||
import TransactionsNavigationHeader from '../../components/TransactionsNavigationHeader';
|
||||
@ -371,70 +371,66 @@ const WalletTransactions = () => {
|
||||
};
|
||||
|
||||
const sendButtonLongPress = async () => {
|
||||
if (isMacCatalina) {
|
||||
fs.showActionSheet({ anchor: walletActionButtonsRef.current }).then(onBarCodeRead);
|
||||
} else {
|
||||
const isClipboardEmpty = (await BlueClipboard.getClipboardContent()).trim().length === 0;
|
||||
if (Platform.OS === 'ios') {
|
||||
const options = [loc._.cancel, loc.wallets.list_long_choose, loc.wallets.list_long_scan];
|
||||
if (!isClipboardEmpty) {
|
||||
options.push(loc.wallets.list_long_clipboard);
|
||||
}
|
||||
ActionSheet.showActionSheetWithOptions(
|
||||
{ options, cancelButtonIndex: 0, anchor: findNodeHandle(walletActionButtonsRef.current) },
|
||||
buttonIndex => {
|
||||
if (buttonIndex === 1) {
|
||||
choosePhoto();
|
||||
} else if (buttonIndex === 2) {
|
||||
navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: name,
|
||||
onBarScanned: onBarCodeRead,
|
||||
showFileImportButton: false,
|
||||
},
|
||||
});
|
||||
} else if (buttonIndex === 3) {
|
||||
copyFromClipboard();
|
||||
}
|
||||
},
|
||||
);
|
||||
} else if (Platform.OS === 'android') {
|
||||
const buttons = [
|
||||
{
|
||||
text: loc._.cancel,
|
||||
onPress: () => {},
|
||||
style: 'cancel',
|
||||
},
|
||||
{
|
||||
text: loc.wallets.list_long_choose,
|
||||
onPress: choosePhoto,
|
||||
},
|
||||
{
|
||||
text: loc.wallets.list_long_scan,
|
||||
onPress: () =>
|
||||
navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: name,
|
||||
onBarScanned: onBarCodeRead,
|
||||
showFileImportButton: false,
|
||||
},
|
||||
}),
|
||||
},
|
||||
];
|
||||
if (!isClipboardEmpty) {
|
||||
buttons.push({
|
||||
text: loc.wallets.list_long_clipboard,
|
||||
onPress: copyFromClipboard,
|
||||
});
|
||||
}
|
||||
ActionSheet.showActionSheetWithOptions({
|
||||
title: '',
|
||||
message: '',
|
||||
buttons,
|
||||
const isClipboardEmpty = (await BlueClipboard.getClipboardContent()).trim().length === 0;
|
||||
if (Platform.OS === 'ios') {
|
||||
const options = [loc._.cancel, loc.wallets.list_long_choose, loc.wallets.list_long_scan];
|
||||
if (!isClipboardEmpty) {
|
||||
options.push(loc.wallets.list_long_clipboard);
|
||||
}
|
||||
ActionSheet.showActionSheetWithOptions(
|
||||
{ options, cancelButtonIndex: 0, anchor: findNodeHandle(walletActionButtonsRef.current) },
|
||||
buttonIndex => {
|
||||
if (buttonIndex === 1) {
|
||||
choosePhoto();
|
||||
} else if (buttonIndex === 2) {
|
||||
navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: name,
|
||||
onBarScanned: onBarCodeRead,
|
||||
showFileImportButton: false,
|
||||
},
|
||||
});
|
||||
} else if (buttonIndex === 3) {
|
||||
copyFromClipboard();
|
||||
}
|
||||
},
|
||||
);
|
||||
} else if (Platform.OS === 'android') {
|
||||
const buttons = [
|
||||
{
|
||||
text: loc._.cancel,
|
||||
onPress: () => {},
|
||||
style: 'cancel',
|
||||
},
|
||||
{
|
||||
text: loc.wallets.list_long_choose,
|
||||
onPress: choosePhoto,
|
||||
},
|
||||
{
|
||||
text: loc.wallets.list_long_scan,
|
||||
onPress: () =>
|
||||
navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: name,
|
||||
onBarScanned: onBarCodeRead,
|
||||
showFileImportButton: false,
|
||||
},
|
||||
}),
|
||||
},
|
||||
];
|
||||
if (!isClipboardEmpty) {
|
||||
buttons.push({
|
||||
text: loc.wallets.list_long_clipboard,
|
||||
onPress: copyFromClipboard,
|
||||
});
|
||||
}
|
||||
ActionSheet.showActionSheetWithOptions({
|
||||
title: '',
|
||||
message: '',
|
||||
buttons,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -13,7 +13,6 @@ import {
|
||||
Switch,
|
||||
Text,
|
||||
View,
|
||||
findNodeHandle,
|
||||
} from 'react-native';
|
||||
import { Icon, Badge } from 'react-native-elements';
|
||||
import { useFocusEffect, useNavigation, useRoute, useTheme } from '@react-navigation/native';
|
||||
@ -41,7 +40,6 @@ import MultipleStepsListItem, {
|
||||
import Privacy from '../../blue_modules/Privacy';
|
||||
import Biometric from '../../class/biometrics';
|
||||
import { SquareButton } from '../../components/SquareButton';
|
||||
import { isMacCatalina } from '../../blue_modules/environment';
|
||||
import { encodeUR } from '../../blue_modules/ur';
|
||||
import QRCodeComponent from '../../components/QRCodeComponent';
|
||||
import alert from '../../components/Alert';
|
||||
@ -437,33 +435,24 @@ const ViewEditMultisigCosigners = () => {
|
||||
};
|
||||
|
||||
const scanOrOpenFile = () => {
|
||||
if (isMacCatalina) {
|
||||
fs.showActionSheet({ anchor: findNodeHandle(openScannerButtonRef.current) }).then(result => {
|
||||
// Triggers FlatList re-render
|
||||
setImportText(result);
|
||||
//
|
||||
_handleUseMnemonicPhrase(result);
|
||||
});
|
||||
} else {
|
||||
setIsProvideMnemonicsModalVisible(false);
|
||||
setTimeout(
|
||||
() =>
|
||||
navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: route.name,
|
||||
onBarScanned: result => {
|
||||
// Triggers FlatList re-render
|
||||
setImportText(result);
|
||||
//
|
||||
_handleUseMnemonicPhrase(result);
|
||||
},
|
||||
showFileImportButton: true,
|
||||
setIsProvideMnemonicsModalVisible(false);
|
||||
setTimeout(
|
||||
() =>
|
||||
navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: route.name,
|
||||
onBarScanned: result => {
|
||||
// Triggers FlatList re-render
|
||||
setImportText(result);
|
||||
//
|
||||
_handleUseMnemonicPhrase(result);
|
||||
},
|
||||
}),
|
||||
650,
|
||||
);
|
||||
}
|
||||
showFileImportButton: true,
|
||||
},
|
||||
}),
|
||||
650,
|
||||
);
|
||||
};
|
||||
|
||||
const hideProvideMnemonicsModal = () => {
|
||||
|
@ -18,4 +18,4 @@ echo > blue_modules/torrific.js
|
||||
echo "Updating Podfile"
|
||||
cd ios && pod update && cd ..
|
||||
echo ""
|
||||
echo "NOTE: react-native-tor is not currently compatible with Mac Catalyst. If you are running macOS Catalina, you will need to remove the iOS 14 Widgets from the project targets."
|
||||
echo "NOTE: react-native-tor is not currently compatible with Mac Catalyst.
|
Loading…
Reference in New Issue
Block a user