From df106ed67c14757428238225fa59fb2701b43b84 Mon Sep 17 00:00:00 2001 From: oliverhnat Date: Wed, 1 May 2024 11:30:32 +0200 Subject: [PATCH] Fix apkg file upload --- WordAX/Info.plist | 20 ++++++-------------- WordAX/Views/SettingsView.swift | 2 +- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/WordAX/Info.plist b/WordAX/Info.plist index eb834af..de117e4 100644 --- a/WordAX/Info.plist +++ b/WordAX/Info.plist @@ -5,25 +5,17 @@ CFBundleDocumentTypes - CFBundleIconFiles - - icon - CFBundleTypeName - APKG File + Anki File LSHandlerRank - Default + Alternate LSItemContentTypes - com.wordax.apkg + com.anki.apkg - - LSHandlerRank - Default - - UTExportedTypeDeclarations + UTImportedTypeDeclarations UTTypeConformsTo @@ -31,11 +23,11 @@ public.data UTTypeDescription - APKG Data + Anki File UTTypeIconFiles UTTypeIdentifier - com.wordax.apkg + com.anki.apkg UTTypeTagSpecification public.filename-extension diff --git a/WordAX/Views/SettingsView.swift b/WordAX/Views/SettingsView.swift index c7d7084..c624c26 100644 --- a/WordAX/Views/SettingsView.swift +++ b/WordAX/Views/SettingsView.swift @@ -38,7 +38,7 @@ struct SettingsView: View { } extension UTType { - public static let apkg: UTType = UTType(exportedAs: "com.wordax.apkg") + public static let apkg: UTType = UTType(importedAs: "com.anki.apkg") } #Preview {