Skip to content

Commit

Permalink
feat: accept .wirebackup file extension - WPB-14597 (#2367)
Browse files Browse the repository at this point in the history
caldrian authored Jan 10, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent db1b5e9 commit 76cbca6
Showing 2 changed files with 28 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -40,7 +40,11 @@ final class BackupRestoreController: NSObject {
// their attachments and change the underscore with a dash. This is the reason we accept 2 types
// of file extensions: 'ios_wbu' and 'ios-wbu'.

static let WireBackupUTIs = ["com.wire.backup-ios-underscore", "com.wire.backup-ios-hyphen"]
static let WireBackupUTIs = [
"com.wire.backup-universal",
"com.wire.backup-ios-underscore",
"com.wire.backup-ios-hyphen"
]

weak var delegate: BackupRestoreControllerDelegate?

27 changes: 23 additions & 4 deletions wire-ios/Wire-iOS/Wire-Info.plist
Original file line number Diff line number Diff line change
@@ -171,6 +171,29 @@
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>Wire Backup File</string>
<key>UTTypeIconFiles</key>
<array/>
<key>UTTypeIdentifier</key>
<string>com.wire.backup-universal</string>
<key>UTTypeSize320IconFile</key>
<string>logo</string>
<key>UTTypeSize64IconFile</key>
<string>logo</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>wirebackup</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
@@ -188,8 +211,6 @@
<string>logo</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<string>com.wire.backup-ios-underscore</string>
<key>public.filename-extension</key>
<array>
<string>ios_wbu</string>
@@ -213,8 +234,6 @@
<string>logo</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<string>com.wire.backup-ios-hyphen</string>
<key>public.filename-extension</key>
<array>
<string>ios-wbu</string>

0 comments on commit 76cbca6

Please sign in to comment.