Skip to content

Commit ca58844

Browse files
author
oil3
committed
mpv
1 parent bb34707 commit ca58844

File tree

7 files changed

+459
-4
lines changed

7 files changed

+459
-4
lines changed

CodeColors.xcodeproj/project.pbxproj

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,49 @@
1111
34B4DB172CBCAD7E001F31C6 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 34B4DB162CBCAD7E001F31C6 /* ContentView.swift */; };
1212
34B4DB192CBCAD7F001F31C6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 34B4DB182CBCAD7F001F31C6 /* Assets.xcassets */; };
1313
34B4DB1C2CBCAD7F001F31C6 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 34B4DB1B2CBCAD7F001F31C6 /* Preview Assets.xcassets */; };
14+
34B4DB2A2CBCADFD001F31C6 /* Quartz.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34B4DB292CBCADFD001F31C6 /* Quartz.framework */; };
15+
34B4DB372CBCADFD001F31C6 /* QuickCodeColorLook.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 34B4DB272CBCADFD001F31C6 /* QuickCodeColorLook.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
16+
34B4DB3D2CBCC51D001F31C6 /* PreviewViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 34B4DB2C2CBCADFD001F31C6 /* PreviewViewController.swift */; };
17+
34B4DB3E2CBCC5F3001F31C6 /* PreviewProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 34B4DB2E2CBCADFD001F31C6 /* PreviewProvider.swift */; };
1418
/* End PBXBuildFile section */
1519

20+
/* Begin PBXContainerItemProxy section */
21+
34B4DB352CBCADFD001F31C6 /* PBXContainerItemProxy */ = {
22+
isa = PBXContainerItemProxy;
23+
containerPortal = 34B4DB092CBCAD7E001F31C6 /* Project object */;
24+
proxyType = 1;
25+
remoteGlobalIDString = 34B4DB262CBCADFD001F31C6;
26+
remoteInfo = QuickCodeColorLook;
27+
};
28+
/* End PBXContainerItemProxy section */
29+
30+
/* Begin PBXCopyFilesBuildPhase section */
31+
34B4DB3B2CBCADFD001F31C6 /* Embed Foundation Extensions */ = {
32+
isa = PBXCopyFilesBuildPhase;
33+
buildActionMask = 2147483647;
34+
dstPath = "";
35+
dstSubfolderSpec = 13;
36+
files = (
37+
34B4DB372CBCADFD001F31C6 /* QuickCodeColorLook.appex in Embed Foundation Extensions */,
38+
);
39+
name = "Embed Foundation Extensions";
40+
runOnlyForDeploymentPostprocessing = 0;
41+
};
42+
/* End PBXCopyFilesBuildPhase section */
43+
1644
/* Begin PBXFileReference section */
1745
34B4DB112CBCAD7E001F31C6 /* CodeColors.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CodeColors.app; sourceTree = BUILT_PRODUCTS_DIR; };
1846
34B4DB142CBCAD7E001F31C6 /* CodeColorsApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CodeColorsApp.swift; sourceTree = "<group>"; };
1947
34B4DB162CBCAD7E001F31C6 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
2048
34B4DB182CBCAD7F001F31C6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
2149
34B4DB1B2CBCAD7F001F31C6 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
2250
34B4DB1D2CBCAD7F001F31C6 /* CodeColors.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = CodeColors.entitlements; sourceTree = "<group>"; };
51+
34B4DB272CBCADFD001F31C6 /* QuickCodeColorLook.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = QuickCodeColorLook.appex; sourceTree = BUILT_PRODUCTS_DIR; };
52+
34B4DB292CBCADFD001F31C6 /* Quartz.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Quartz.framework; path = System/Library/Frameworks/Quartz.framework; sourceTree = SDKROOT; };
53+
34B4DB2C2CBCADFD001F31C6 /* PreviewViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewViewController.swift; sourceTree = "<group>"; };
54+
34B4DB2E2CBCADFD001F31C6 /* PreviewProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewProvider.swift; sourceTree = "<group>"; };
55+
34B4DB332CBCADFD001F31C6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
56+
34B4DB342CBCADFD001F31C6 /* QuickCodeColorLook.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = QuickCodeColorLook.entitlements; sourceTree = "<group>"; };
2357
/* End PBXFileReference section */
2458

2559
/* Begin PBXFrameworksBuildPhase section */
@@ -30,13 +64,23 @@
3064
);
3165
runOnlyForDeploymentPostprocessing = 0;
3266
};
67+
34B4DB242CBCADFD001F31C6 /* Frameworks */ = {
68+
isa = PBXFrameworksBuildPhase;
69+
buildActionMask = 2147483647;
70+
files = (
71+
34B4DB2A2CBCADFD001F31C6 /* Quartz.framework in Frameworks */,
72+
);
73+
runOnlyForDeploymentPostprocessing = 0;
74+
};
3375
/* End PBXFrameworksBuildPhase section */
3476

3577
/* Begin PBXGroup section */
3678
34B4DB082CBCAD7E001F31C6 = {
3779
isa = PBXGroup;
3880
children = (
3981
34B4DB132CBCAD7E001F31C6 /* CodeColors */,
82+
34B4DB2B2CBCADFD001F31C6 /* QuickCodeColorLook */,
83+
34B4DB282CBCADFD001F31C6 /* Frameworks */,
4084
34B4DB122CBCAD7E001F31C6 /* Products */,
4185
);
4286
sourceTree = "<group>";
@@ -45,6 +89,7 @@
4589
isa = PBXGroup;
4690
children = (
4791
34B4DB112CBCAD7E001F31C6 /* CodeColors.app */,
92+
34B4DB272CBCADFD001F31C6 /* QuickCodeColorLook.appex */,
4893
);
4994
name = Products;
5095
sourceTree = "<group>";
@@ -69,6 +114,25 @@
69114
path = "Preview Content";
70115
sourceTree = "<group>";
71116
};
117+
34B4DB282CBCADFD001F31C6 /* Frameworks */ = {
118+
isa = PBXGroup;
119+
children = (
120+
34B4DB292CBCADFD001F31C6 /* Quartz.framework */,
121+
);
122+
name = Frameworks;
123+
sourceTree = "<group>";
124+
};
125+
34B4DB2B2CBCADFD001F31C6 /* QuickCodeColorLook */ = {
126+
isa = PBXGroup;
127+
children = (
128+
34B4DB2C2CBCADFD001F31C6 /* PreviewViewController.swift */,
129+
34B4DB2E2CBCADFD001F31C6 /* PreviewProvider.swift */,
130+
34B4DB332CBCADFD001F31C6 /* Info.plist */,
131+
34B4DB342CBCADFD001F31C6 /* QuickCodeColorLook.entitlements */,
132+
);
133+
path = QuickCodeColorLook;
134+
sourceTree = "<group>";
135+
};
72136
/* End PBXGroup section */
73137

74138
/* Begin PBXNativeTarget section */
@@ -79,16 +143,35 @@
79143
34B4DB0D2CBCAD7E001F31C6 /* Sources */,
80144
34B4DB0E2CBCAD7E001F31C6 /* Frameworks */,
81145
34B4DB0F2CBCAD7E001F31C6 /* Resources */,
146+
34B4DB3B2CBCADFD001F31C6 /* Embed Foundation Extensions */,
82147
);
83148
buildRules = (
84149
);
85150
dependencies = (
151+
34B4DB362CBCADFD001F31C6 /* PBXTargetDependency */,
86152
);
87153
name = CodeColors;
88154
productName = CodeColors;
89155
productReference = 34B4DB112CBCAD7E001F31C6 /* CodeColors.app */;
90156
productType = "com.apple.product-type.application";
91157
};
158+
34B4DB262CBCADFD001F31C6 /* QuickCodeColorLook */ = {
159+
isa = PBXNativeTarget;
160+
buildConfigurationList = 34B4DB382CBCADFD001F31C6 /* Build configuration list for PBXNativeTarget "QuickCodeColorLook" */;
161+
buildPhases = (
162+
34B4DB232CBCADFD001F31C6 /* Sources */,
163+
34B4DB242CBCADFD001F31C6 /* Frameworks */,
164+
34B4DB252CBCADFD001F31C6 /* Resources */,
165+
);
166+
buildRules = (
167+
);
168+
dependencies = (
169+
);
170+
name = QuickCodeColorLook;
171+
productName = QuickCodeColorLook;
172+
productReference = 34B4DB272CBCADFD001F31C6 /* QuickCodeColorLook.appex */;
173+
productType = "com.apple.product-type.app-extension";
174+
};
92175
/* End PBXNativeTarget section */
93176

94177
/* Begin PBXProject section */
@@ -102,6 +185,9 @@
102185
34B4DB102CBCAD7E001F31C6 = {
103186
CreatedOnToolsVersion = 15.4;
104187
};
188+
34B4DB262CBCADFD001F31C6 = {
189+
CreatedOnToolsVersion = 15.4;
190+
};
105191
};
106192
};
107193
buildConfigurationList = 34B4DB0C2CBCAD7E001F31C6 /* Build configuration list for PBXProject "CodeColors" */;
@@ -118,6 +204,7 @@
118204
projectRoot = "";
119205
targets = (
120206
34B4DB102CBCAD7E001F31C6 /* CodeColors */,
207+
34B4DB262CBCADFD001F31C6 /* QuickCodeColorLook */,
121208
);
122209
};
123210
/* End PBXProject section */
@@ -132,6 +219,13 @@
132219
);
133220
runOnlyForDeploymentPostprocessing = 0;
134221
};
222+
34B4DB252CBCADFD001F31C6 /* Resources */ = {
223+
isa = PBXResourcesBuildPhase;
224+
buildActionMask = 2147483647;
225+
files = (
226+
);
227+
runOnlyForDeploymentPostprocessing = 0;
228+
};
135229
/* End PBXResourcesBuildPhase section */
136230

137231
/* Begin PBXSourcesBuildPhase section */
@@ -144,8 +238,25 @@
144238
);
145239
runOnlyForDeploymentPostprocessing = 0;
146240
};
241+
34B4DB232CBCADFD001F31C6 /* Sources */ = {
242+
isa = PBXSourcesBuildPhase;
243+
buildActionMask = 2147483647;
244+
files = (
245+
34B4DB3D2CBCC51D001F31C6 /* PreviewViewController.swift in Sources */,
246+
34B4DB3E2CBCC5F3001F31C6 /* PreviewProvider.swift in Sources */,
247+
);
248+
runOnlyForDeploymentPostprocessing = 0;
249+
};
147250
/* End PBXSourcesBuildPhase section */
148251

252+
/* Begin PBXTargetDependency section */
253+
34B4DB362CBCADFD001F31C6 /* PBXTargetDependency */ = {
254+
isa = PBXTargetDependency;
255+
target = 34B4DB262CBCADFD001F31C6 /* QuickCodeColorLook */;
256+
targetProxy = 34B4DB352CBCADFD001F31C6 /* PBXContainerItemProxy */;
257+
};
258+
/* End PBXTargetDependency section */
259+
149260
/* Begin XCBuildConfiguration section */
150261
34B4DB1E2CBCAD7F001F31C6 /* Debug */ = {
151262
isa = XCBuildConfiguration;
@@ -268,6 +379,7 @@
268379
34B4DB212CBCAD7F001F31C6 /* Debug */ = {
269380
isa = XCBuildConfiguration;
270381
buildSettings = {
382+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
271383
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
272384
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
273385
CODE_SIGN_ENTITLEMENTS = CodeColors/CodeColors.entitlements;
@@ -295,6 +407,7 @@
295407
34B4DB222CBCAD7F001F31C6 /* Release */ = {
296408
isa = XCBuildConfiguration;
297409
buildSettings = {
410+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
298411
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
299412
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
300413
CODE_SIGN_ENTITLEMENTS = CodeColors/CodeColors.entitlements;
@@ -319,6 +432,60 @@
319432
};
320433
name = Release;
321434
};
435+
34B4DB392CBCADFD001F31C6 /* Debug */ = {
436+
isa = XCBuildConfiguration;
437+
buildSettings = {
438+
CODE_SIGN_ENTITLEMENTS = QuickCodeColorLook/QuickCodeColorLook.entitlements;
439+
CODE_SIGN_STYLE = Automatic;
440+
CURRENT_PROJECT_VERSION = 1;
441+
DEVELOPMENT_TEAM = 46WUYUUA8V;
442+
ENABLE_HARDENED_RUNTIME = YES;
443+
GENERATE_INFOPLIST_FILE = YES;
444+
INFOPLIST_FILE = QuickCodeColorLook/Info.plist;
445+
INFOPLIST_KEY_CFBundleDisplayName = QuickCodeColorLook;
446+
INFOPLIST_KEY_LSApplicationCategoryType = "";
447+
INFOPLIST_KEY_NSHumanReadableCopyright = "";
448+
LD_RUNPATH_SEARCH_PATHS = (
449+
"$(inherited)",
450+
"@executable_path/../Frameworks",
451+
"@executable_path/../../../../Frameworks",
452+
);
453+
MARKETING_VERSION = 1.0;
454+
PRODUCT_BUNDLE_IDENTIFIER = com.oil3.CodeColors.QuickCodeColorLook;
455+
PRODUCT_NAME = "$(TARGET_NAME)";
456+
SKIP_INSTALL = YES;
457+
SWIFT_EMIT_LOC_STRINGS = YES;
458+
SWIFT_VERSION = 5.0;
459+
};
460+
name = Debug;
461+
};
462+
34B4DB3A2CBCADFD001F31C6 /* Release */ = {
463+
isa = XCBuildConfiguration;
464+
buildSettings = {
465+
CODE_SIGN_ENTITLEMENTS = QuickCodeColorLook/QuickCodeColorLook.entitlements;
466+
CODE_SIGN_STYLE = Automatic;
467+
CURRENT_PROJECT_VERSION = 1;
468+
DEVELOPMENT_TEAM = 46WUYUUA8V;
469+
ENABLE_HARDENED_RUNTIME = YES;
470+
GENERATE_INFOPLIST_FILE = YES;
471+
INFOPLIST_FILE = QuickCodeColorLook/Info.plist;
472+
INFOPLIST_KEY_CFBundleDisplayName = QuickCodeColorLook;
473+
INFOPLIST_KEY_LSApplicationCategoryType = "";
474+
INFOPLIST_KEY_NSHumanReadableCopyright = "";
475+
LD_RUNPATH_SEARCH_PATHS = (
476+
"$(inherited)",
477+
"@executable_path/../Frameworks",
478+
"@executable_path/../../../../Frameworks",
479+
);
480+
MARKETING_VERSION = 1.0;
481+
PRODUCT_BUNDLE_IDENTIFIER = com.oil3.CodeColors.QuickCodeColorLook;
482+
PRODUCT_NAME = "$(TARGET_NAME)";
483+
SKIP_INSTALL = YES;
484+
SWIFT_EMIT_LOC_STRINGS = YES;
485+
SWIFT_VERSION = 5.0;
486+
};
487+
name = Release;
488+
};
322489
/* End XCBuildConfiguration section */
323490

324491
/* Begin XCConfigurationList section */
@@ -340,6 +507,15 @@
340507
defaultConfigurationIsVisible = 0;
341508
defaultConfigurationName = Release;
342509
};
510+
34B4DB382CBCADFD001F31C6 /* Build configuration list for PBXNativeTarget "QuickCodeColorLook" */ = {
511+
isa = XCConfigurationList;
512+
buildConfigurations = (
513+
34B4DB392CBCADFD001F31C6 /* Debug */,
514+
34B4DB3A2CBCADFD001F31C6 /* Release */,
515+
);
516+
defaultConfigurationIsVisible = 0;
517+
defaultConfigurationName = Release;
518+
};
343519
/* End XCConfigurationList section */
344520
};
345521
rootObject = 34B4DB092CBCAD7E001F31C6 /* Project object */;

CodeColors.xcodeproj/xcuserdata/ssz.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
<key>orderHint</key>
1010
<integer>0</integer>
1111
</dict>
12+
<key>QuickCodeColorLook.xcscheme_^#shared#^_</key>
13+
<dict>
14+
<key>orderHint</key>
15+
<integer>1</integer>
16+
</dict>
1217
</dict>
1318
</dict>
1419
</plist>

CodeColors/ContentView.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,3 @@ struct ContentView: View {
1818
.padding()
1919
}
2020
}
21-
22-
#Preview {
23-
ContentView()
24-
}

QuickCodeColorLook/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>NSExtension</key>
6+
<dict>
7+
<key>NSExtensionAttributes</key>
8+
<dict>
9+
<key>QLIsDataBasedPreview</key>
10+
<false/>
11+
<key>QLSupportedContentTypes</key>
12+
<array>
13+
<string>public.python-script</string>
14+
<string>public.yaml</string>
15+
</array>
16+
<key>QLSupportsSearchableItems</key>
17+
<false/>
18+
</dict>
19+
<key>NSExtensionPointIdentifier</key>
20+
<string>com.apple.quicklook.preview</string>
21+
<key>NSExtensionPrincipalClass</key>
22+
<string>$(PRODUCT_MODULE_NAME).PreviewViewController</string>
23+
</dict>
24+
<key>NSExtensionPrincipalClass</key>
25+
<string>$(PRODUCT_MODULE_NAME).PreviewProvider</string>
26+
</dict>
27+
</plist>

0 commit comments

Comments
 (0)