Skip to content

Commit

Permalink
Merge pull request #194 from NordicSemiconductor/suit-file-type
Browse files Browse the repository at this point in the history
Fix: When selecting a file for DFU, we now only show supported types, like before
  • Loading branch information
dinesharjani authored Jan 5, 2024
2 parents 7319c97 + 5561ff6 commit b573dfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class FirmwareUpgradeViewController: UIViewController, McuMgrViewControlle
// MARK: - IBAction(s)

@IBAction func selectFirmware(_ sender: UIButton) {
let supportedDocumentTypes = ["com.apple.macbinary-archive", "public.zip-archive", "com.pkware.zip-archive", "org.ietf.suit", "public.data"]
let supportedDocumentTypes = ["com.apple.macbinary-archive", "public.zip-archive", "com.pkware.zip-archive", "com.apple.font-suitcase"]
let importMenu = UIDocumentMenuViewController(documentTypes: supportedDocumentTypes,
in: .import)
importMenu.delegate = self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FirmwareUploadViewController: UIViewController, McuMgrViewController {
@IBOutlet weak var progress: UIProgressView!

@IBAction func selectFirmware(_ sender: UIButton) {
let supportedDocumentTypes = ["com.apple.macbinary-archive", "public.zip-archive", "com.pkware.zip-archive", "org.ietf.suit", "public.data"]
let supportedDocumentTypes = ["com.apple.macbinary-archive", "public.zip-archive", "com.pkware.zip-archive", "com.apple.font-suitcase"]
let importMenu = UIDocumentMenuViewController(documentTypes: supportedDocumentTypes,
in: .import)
importMenu.delegate = self
Expand Down

0 comments on commit b573dfc

Please sign in to comment.