From 09d6c7789e241a7561cbef110785b0540a503c8d Mon Sep 17 00:00:00 2001 From: marcosrdz Date: Sun, 11 Oct 2020 03:13:47 -0400 Subject: [PATCH] ADD: Allow import of .backup files --- blue_modules/fs.js | 2 +- ios/BlueWallet/Info.plist | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/blue_modules/fs.js b/blue_modules/fs.js index 5a7434cad..1fbe6bf13 100644 --- a/blue_modules/fs.js +++ b/blue_modules/fs.js @@ -84,7 +84,7 @@ const showFilePickerAndReadFile = async function () { const res = await DocumentPicker.pick({ type: Platform.OS === 'ios' - ? ['io.bluewallet.psbt', 'io.bluewallet.psbt.txn', DocumentPicker.types.plainText, 'public.json'] + ? ['io.bluewallet.psbt', 'io.bluewallet.psbt.txn', 'io.bluewallet.backup', DocumentPicker.types.plainText, 'public.json'] : [DocumentPicker.types.allFiles], }); diff --git a/ios/BlueWallet/Info.plist b/ios/BlueWallet/Info.plist index 2bc2c70e7..9726867f2 100644 --- a/ios/BlueWallet/Info.plist +++ b/ios/BlueWallet/Info.plist @@ -64,6 +64,20 @@ io.bluewallet.json + + CFBundleTypeIconFiles + + CFBundleTypeName + ELECTRUMBACKUP + CFBundleTypeRole + Editor + LSHandlerRank + Owner + LSItemContentTypes + + io.bluewallet.backup + + CFBundleExecutable $(EXECUTABLE_NAME) @@ -307,6 +321,25 @@ + + UTTypeConformsTo + + public.data + + UTTypeDescription + Electrum Backup + UTTypeIconFiles + + UTTypeIdentifier + io.bluewallet.backup + UTTypeTagSpecification + + public.filename-extension + + backup + + +