Skip to content

Commit d8307b1

Browse files
authored
Merge pull request #4689 from Wevah/fix-opml-import
Fix importing OPML
2 parents 27edb31 + 052aab7 commit d8307b1

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Mac/Resources/Info.plist

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,23 @@
100100
</array>
101101
<key>UTImportedTypeDeclarations</key>
102102
<array>
103+
<dict>
104+
<key>UTTypeConformsTo</key>
105+
<array>
106+
<string>public.xml</string>
107+
</array>
108+
<key>UTTypeDescription</key>
109+
<string>OPML</string>
110+
<key>UTTypeIdentifier</key>
111+
<string>org.opml.opml</string>
112+
<key>UTTypeTagSpecification</key>
113+
<dict>
114+
<key>public.filename-extension</key>
115+
<array>
116+
<string>opml</string>
117+
</array>
118+
</dict>
119+
</dict>
103120
<dict>
104121
<key>UTTypeConformsTo</key>
105122
<array>

Shared/UniformTypeIdentifiers+Extras.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ import UniformTypeIdentifiers
1010

1111
extension UTType {
1212

13-
static let opml = UTType(filenameExtension: "opml", conformingTo: UTType.xml)!
13+
static let opml = UTType("org.opml.opml")!
1414
}

0 commit comments

Comments
 (0)