Skip to content

Commit 73f4c5a

Browse files
author
Denis Stanishevskiy
committed
Support them all, let QuickLook sort them out
1 parent 0863ba3 commit 73f4c5a

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

QuickLookPreview.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
7CC257B22A95F71D00B6742A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
1919
7CC257B72A95F71D00B6742A /* QuickLookPreview.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = QuickLookPreview.entitlements; sourceTree = "<group>"; };
2020
7CDB5A392AAD3661002B316C /* Main.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = Main.xib; sourceTree = "<group>"; };
21+
7CDB5A3B2AAD3D91002B316C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
2122
/* End PBXFileReference section */
2223

2324
/* Begin PBXFrameworksBuildPhase section */
@@ -50,6 +51,7 @@
5051
7CC257AD2A95F71C00B6742A /* QuickLookPreview */ = {
5152
isa = PBXGroup;
5253
children = (
54+
7CDB5A3B2AAD3D91002B316C /* Info.plist */,
5355
7CC257AE2A95F71C00B6742A /* AppDelegate.swift */,
5456
7CC257B22A95F71D00B6742A /* Assets.xcassets */,
5557
7CC257B72A95F71D00B6742A /* QuickLookPreview.entitlements */,
@@ -262,6 +264,7 @@
262264
DEVELOPMENT_TEAM = G84U56F244;
263265
ENABLE_HARDENED_RUNTIME = YES;
264266
GENERATE_INFOPLIST_FILE = YES;
267+
INFOPLIST_FILE = QuickLookPreview/Info.plist;
265268
INFOPLIST_KEY_LSUIElement = NO;
266269
INFOPLIST_KEY_NSHumanReadableCopyright = "";
267270
INFOPLIST_KEY_NSMainNibFile = Main;
@@ -294,6 +297,7 @@
294297
DEVELOPMENT_TEAM = G84U56F244;
295298
ENABLE_HARDENED_RUNTIME = YES;
296299
GENERATE_INFOPLIST_FILE = YES;
300+
INFOPLIST_FILE = QuickLookPreview/Info.plist;
297301
INFOPLIST_KEY_LSUIElement = NO;
298302
INFOPLIST_KEY_NSHumanReadableCopyright = "";
299303
INFOPLIST_KEY_NSMainNibFile = Main;

QuickLookPreview/Info.plist

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDocumentTypes</key>
6+
<array>
7+
<dict>
8+
<key>CFBundleTypeExtensions</key>
9+
<array>
10+
<string>*</string>
11+
</array>
12+
<key>CFBundleTypeName</key>
13+
<string>AllTypes</string>
14+
<key>CFBundleTypeOSTypes</key>
15+
<array>
16+
<string>****</string>
17+
</array>
18+
<key>CFBundleTypeRole</key>
19+
<string>Viewer</string>
20+
<key>LSHandlerRank</key>
21+
<string>Alternate</string>
22+
<key>NSDocumentClass</key>
23+
<string>FileDataDocument</string>
24+
</dict>
25+
</array>
26+
</dict>
27+
</plist>

0 commit comments

Comments
 (0)