Fix apkg file upload

This commit is contained in:
2024-05-01 11:30:32 +02:00
parent 61c1006329
commit df106ed67c
2 changed files with 7 additions and 15 deletions

View File

@@ -5,25 +5,17 @@
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>icon</string>
</array>
<key>CFBundleTypeName</key>
<string>APKG File</string>
<string>Anki File</string>
<key>LSHandlerRank</key>
<string>Default</string>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>com.wordax.apkg</string>
<string>com.anki.apkg</string>
</array>
</dict>
<dict>
<key>LSHandlerRank</key>
<string>Default</string>
</dict>
</array>
<key>UTExportedTypeDeclarations</key>
<key>UTImportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
@@ -31,11 +23,11 @@
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>APKG Data</string>
<string>Anki File</string>
<key>UTTypeIconFiles</key>
<array/>
<key>UTTypeIdentifier</key>
<string>com.wordax.apkg</string>
<string>com.anki.apkg</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>

View File

@@ -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 {