From 20835cd15590d26a2250bb2ac1312437ad9120c5 Mon Sep 17 00:00:00 2001 From: relikd Date: Wed, 23 Jul 2025 12:31:40 +0200 Subject: [PATCH] feat: QLOPML extension --- QLOPML/Base.lproj/PreviewViewController.xib | 21 +++ QLOPML/Info.plist | 44 +++++ QLOPML/PreviewViewController.h | 5 + QLOPML/PreviewViewController.m | 27 +++ QLOPML/QLOPML.entitlements | 10 ++ QLOPML/opml-lib.h | 7 + QLOPML/opml-lib.m | 116 +++++++++++++ QLOPML/style.css | 12 ++ baRSS.xcodeproj/project.pbxproj | 180 +++++++++++++++++++- 9 files changed, 420 insertions(+), 2 deletions(-) create mode 100644 QLOPML/Base.lproj/PreviewViewController.xib create mode 100644 QLOPML/Info.plist create mode 100644 QLOPML/PreviewViewController.h create mode 100644 QLOPML/PreviewViewController.m create mode 100644 QLOPML/QLOPML.entitlements create mode 100644 QLOPML/opml-lib.h create mode 100644 QLOPML/opml-lib.m create mode 100644 QLOPML/style.css diff --git a/QLOPML/Base.lproj/PreviewViewController.xib b/QLOPML/Base.lproj/PreviewViewController.xib new file mode 100644 index 0000000..cb883fc --- /dev/null +++ b/QLOPML/Base.lproj/PreviewViewController.xib @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/QLOPML/Info.plist b/QLOPML/Info.plist new file mode 100644 index 0000000..bc7efe6 --- /dev/null +++ b/QLOPML/Info.plist @@ -0,0 +1,44 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + QLOPML + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSExtension + + NSExtensionAttributes + + QLSupportedContentTypes + + org.opml.opml + + QLSupportsSearchableItems + + + NSExtensionPointIdentifier + com.apple.quicklook.preview + NSExtensionPrincipalClass + PreviewViewController + + NSHumanReadableCopyright + Copyright © 2025 relikd. + + diff --git a/QLOPML/PreviewViewController.h b/QLOPML/PreviewViewController.h new file mode 100644 index 0000000..a5b4b9a --- /dev/null +++ b/QLOPML/PreviewViewController.h @@ -0,0 +1,5 @@ +#import + +@interface PreviewViewController : NSViewController + +@end diff --git a/QLOPML/PreviewViewController.m b/QLOPML/PreviewViewController.m new file mode 100644 index 0000000..ae783cc --- /dev/null +++ b/QLOPML/PreviewViewController.m @@ -0,0 +1,27 @@ +#import "PreviewViewController.h" +#import +#import +#include "opml-lib.h" + +@interface PreviewViewController () +@end + +@implementation PreviewViewController + +- (NSString *)nibName { + return @"PreviewViewController"; +} + +- (void)preparePreviewOfFileAtURL:(NSURL *)url completionHandler:(void (^)(NSError * _Nullable))handler { + NSData *data = generateHTMLData(url, [NSBundle mainBundle], NO); + // sure, we could use `WKWebView`, but that requires the `com.apple.security.network.client` entitlement + WebView *web = [[WebView alloc] initWithFrame:self.view.bounds]; + web.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable; + [self.view addSubview:web]; +// [web.mainFrame loadHTMLString:html baseURL:nil]; + [web.mainFrame loadData:data MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL:nil]; + handler(nil); +} + +@end + diff --git a/QLOPML/QLOPML.entitlements b/QLOPML/QLOPML.entitlements new file mode 100644 index 0000000..f2ef3ae --- /dev/null +++ b/QLOPML/QLOPML.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + + diff --git a/QLOPML/opml-lib.h b/QLOPML/opml-lib.h new file mode 100644 index 0000000..0d678e0 --- /dev/null +++ b/QLOPML/opml-lib.h @@ -0,0 +1,7 @@ +#ifndef opml_lib_h +#define opml_lib_h + +NSData* generateHTMLData(NSURL *url, NSBundle *bundle, BOOL thumb); +//void renderThumbnail(CFURLRef url, CFBundleRef bundle, CGContextRef context, CGSize maxSize); + +#endif /* opml_lib_h */ diff --git a/QLOPML/opml-lib.m b/QLOPML/opml-lib.m new file mode 100644 index 0000000..5b721cb --- /dev/null +++ b/QLOPML/opml-lib.m @@ -0,0 +1,116 @@ +#import +#import +//#import + +// --------------------------------------------------------------- +// | +// | OPML renderer +// | +// --------------------------------------------------------------- + +NSXMLElement* make(NSString *tag, NSString *text, NSXMLElement *parent) { + NSXMLElement *div = [NSXMLElement elementWithName:tag]; + if (text) div.stringValue = text; + [parent addChild:div]; + return div; +} + +void attribute(NSXMLElement *parent, NSString *key, NSString *value) { + [parent addAttribute:[NSXMLElement attributeWithName:key stringValue:value]]; +} + +NSXMLElement* section(NSString *title, NSString *container, NSXMLElement *parent) { + make(@"h3", title, parent); + NSXMLElement *div = make(container, nil, parent); + attribute(div, @"class", @"section"); + return div; +} + +void appendNode(NSXMLElement *child, NSXMLElement *parent, Boolean thumb) { + + if ([child.name isEqualToString:@"head"]) { + if (thumb) + return; + NSXMLElement *dl = section(@"Metadata:", @"dl", parent); + for (NSXMLElement *head in child.children) { + make(@"dt", head.name, dl); + make(@"dd", head.stringValue, dl); + } + return; + } + + if ([child.name isEqualToString:@"body"]) { + parent = thumb ? make(@"ul", nil, parent) : section(@"Content:", @"ul", parent); + + } else if ([child.name isEqualToString:@"outline"]) { + if ([child attributeForName:@"separator"].stringValue) { + make(@"hr", nil, parent); + } else { + NSString *desc = [child attributeForName:@"title"].stringValue; + if (!desc || desc.length == 0) + desc = [child attributeForName:@"text"].stringValue; + // refreshInterval + NSXMLElement *li = make(@"li", desc, parent); + if (!thumb) { + NSString *xmlUrl = [child attributeForName:@"xmlUrl"].stringValue; + if (xmlUrl && xmlUrl.length > 0) { + [li addChild:[NSXMLNode textWithStringValue:@" — "]]; + attribute(make(@"a", xmlUrl, li), @"href", xmlUrl); + } + } + } + if (child.childCount > 0) { + parent = make(@"ul", nil, parent); + } + } + for (NSXMLElement *c in child.children) { + appendNode(c, parent, thumb); + } +} + +NSData* generateHTMLData(NSURL *url, NSBundle *bundle, BOOL thumb) { + NSError *err; + NSXMLDocument *doc = [[NSXMLDocument alloc] initWithContentsOfURL:url options:0 error:&err]; + if (err || !doc) { + printf("ERROR: %s\n", err.description.UTF8String); + return nil; + } + + NSXMLElement *html = [NSXMLElement elementWithName:@"html"]; + NSXMLElement *head = make(@"head", nil, html); + make(@"title", @"OPML file", head); + + NSString *cssPath = [bundle pathForResource:thumb ? @"style-thumb" : @"style" ofType:@"css"]; + NSString *data = [NSString stringWithContentsOfFile:cssPath encoding:NSUTF8StringEncoding error:nil]; + make(@"style", data, head); + + NSXMLElement *body = make(@"body", nil, html); + + for (NSXMLElement *child in doc.children) { + appendNode(child, body, thumb); + } + NSXMLDocument *xml = [NSXMLDocument documentWithRootElement:html]; + return [xml XMLDataWithOptions:NSXMLNodePrettyPrint | NSXMLNodeCompactEmptyElement]; +} + + +/*void renderThumbnail(CFURLRef url, CFBundleRef bundle, CGContextRef context, CGSize maxSize) { + NSData *data = generateHTMLData((__bridge NSURL*)url, bundle, true); + if (data) { + CGRect rect = CGRectMake(0, 0, 600, 800); + float scale = maxSize.height / rect.size.height; + + WebView *webView = [[WebView alloc] initWithFrame:rect]; + [webView.mainFrame.frameView scaleUnitSquareToSize:CGSizeMake(scale, scale)]; + [webView.mainFrame.frameView setAllowsScrolling:NO]; + [webView.mainFrame loadData:data MIMEType:@"text/html" textEncodingName:@"utf-8" baseURL:nil]; + + while ([webView isLoading]) + CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, true); + [webView display]; + + NSGraphicsContext *gc = [NSGraphicsContext graphicsContextWithGraphicsPort:(void *)context + flipped:webView.isFlipped]; + [webView displayRectIgnoringOpacity:webView.bounds inContext:gc]; + } +}*/ diff --git a/QLOPML/style.css b/QLOPML/style.css new file mode 100644 index 0000000..75da287 --- /dev/null +++ b/QLOPML/style.css @@ -0,0 +1,12 @@ + +* { font-family: Courier; } +body { padding: 30px; background-color: #AAA; color: black; } +dd, li, hr { font-weight: bold; line-height: 1.5em; } +ul { list-style-type: none; padding-bottom: 1em; } +a { font-size: 0.75em; color: #FBA43A; } +.section { padding: 1em 1.5em; border-radius: 7px; background-color: #EEE; } + +@media (prefers-color-scheme: dark) { +body { background-color: #555; color: white; } +.section { background-color: #222; } +} diff --git a/baRSS.xcodeproj/project.pbxproj b/baRSS.xcodeproj/project.pbxproj index 07f98eb..902b69d 100644 --- a/baRSS.xcodeproj/project.pbxproj +++ b/baRSS.xcodeproj/project.pbxproj @@ -19,6 +19,8 @@ 54253C952C49BFE400742695 /* RegexConverterView.m in Sources */ = {isa = PBXBuildFile; fileRef = 54253C842C47369000742695 /* RegexConverterView.m */; }; 544B011A2114B41200386E5C /* ModalSheet.m in Sources */ = {isa = PBXBuildFile; fileRef = 544B01192114B41200386E5C /* ModalSheet.m */; }; 544B011D2114EE9100386E5C /* AppHook.m in Sources */ = {isa = PBXBuildFile; fileRef = 544B011C2114EE9100386E5C /* AppHook.m */; }; + 544F5A752E30EFC700674F81 /* style.css in Resources */ = {isa = PBXBuildFile; fileRef = 544F5A722E30EFC700674F81 /* style.css */; }; + 544F5A762E30EFC700674F81 /* opml-lib.m in Sources */ = {isa = PBXBuildFile; fileRef = 544F5A702E30EFC700674F81 /* opml-lib.m */; }; 54501010230E9C8600F0B165 /* FeedDownload.m in Sources */ = {isa = PBXBuildFile; fileRef = 5450100F230E9C8600F0B165 /* FeedDownload.m */; }; 546A6A2922C583390034E806 /* SettingsGeneralView.m in Sources */ = {isa = PBXBuildFile; fileRef = 54D857D122802309001BA1C8 /* SettingsGeneralView.m */; }; 546A6A2C22C584AF0034E806 /* SettingsAppearanceView.m in Sources */ = {isa = PBXBuildFile; fileRef = 546A6A2A22C584AF0034E806 /* SettingsAppearanceView.m */; }; @@ -40,6 +42,10 @@ 54ACC29821061FBA0020715F /* Preferences.m in Sources */ = {isa = PBXBuildFile; fileRef = 54ACC29721061FBA0020715F /* Preferences.m */; }; 54AD4E0C2301853D000AE386 /* NSString+Ext.m in Sources */ = {isa = PBXBuildFile; fileRef = 54AD4E0B2301853D000AE386 /* NSString+Ext.m */; }; 54AD4EE72305B17D000AE386 /* container-migration.plist in Resources */ = {isa = PBXBuildFile; fileRef = 54AD4EE62305B17D000AE386 /* container-migration.plist */; }; + 54AD90EA2E30C48400160925 /* Quartz.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54AD90E92E30C48400160925 /* Quartz.framework */; }; + 54AD90EE2E30C48400160925 /* PreviewViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 54AD90ED2E30C48400160925 /* PreviewViewController.m */; }; + 54AD90F12E30C48400160925 /* PreviewViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 54AD90EF2E30C48400160925 /* PreviewViewController.xib */; }; + 54AD90F72E30C48400160925 /* QLOPML.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 54AD90E72E30C48400160925 /* QLOPML.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 54B51704226DC339006C1B29 /* ModalFeedEditView.m in Sources */ = {isa = PBXBuildFile; fileRef = 54B51703226DC339006C1B29 /* ModalFeedEditView.m */; }; 54B517072270E990006C1B29 /* NSView+Ext.m in Sources */ = {isa = PBXBuildFile; fileRef = 54B517062270E92A006C1B29 /* NSView+Ext.m */; }; 54B6F14A231551B3002C94C9 /* FaviconDownload.m in Sources */ = {isa = PBXBuildFile; fileRef = 54B6F149231551B3002C94C9 /* FaviconDownload.m */; }; @@ -77,6 +83,13 @@ remoteGlobalIDString = 84F22C171B52DDEA000060CE; remoteInfo = RSXML2Tests; }; + 54AD90F42E30C48400160925 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 54ACC27421061B3B0020715F /* Project object */; + proxyType = 1; + remoteGlobalIDString = 54AD90E62E30C48400160925; + remoteInfo = QLOPML; + }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -91,6 +104,17 @@ name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; + 54AD90F62E30C48400160925 /* Embed App Extensions */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 13; + files = ( + 54AD90F72E30C48400160925 /* QLOPML.appex in Embed App Extensions */, + ); + name = "Embed App Extensions"; + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ @@ -120,6 +144,9 @@ 544B01192114B41200386E5C /* ModalSheet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ModalSheet.m; sourceTree = ""; }; 544B011B2114EE9100386E5C /* AppHook.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppHook.h; sourceTree = ""; }; 544B011C2114EE9100386E5C /* AppHook.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppHook.m; sourceTree = ""; }; + 544F5A6F2E30EFC700674F81 /* opml-lib.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "opml-lib.h"; sourceTree = ""; }; + 544F5A702E30EFC700674F81 /* opml-lib.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "opml-lib.m"; sourceTree = ""; }; + 544F5A722E30EFC700674F81 /* style.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = style.css; sourceTree = ""; }; 5450100E230E9C8600F0B165 /* FeedDownload.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FeedDownload.h; sourceTree = ""; }; 5450100F230E9C8600F0B165 /* FeedDownload.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FeedDownload.m; sourceTree = ""; }; 546A6A2A22C584AF0034E806 /* SettingsAppearanceView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SettingsAppearanceView.m; sourceTree = ""; }; @@ -160,6 +187,13 @@ 54AD4E0B2301853D000AE386 /* NSString+Ext.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSString+Ext.m"; sourceTree = ""; }; 54AD4EE42305AF60000AE386 /* baRSS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = baRSS.entitlements; sourceTree = ""; }; 54AD4EE62305B17D000AE386 /* container-migration.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "container-migration.plist"; sourceTree = ""; }; + 54AD90E72E30C48400160925 /* QLOPML.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = QLOPML.appex; sourceTree = BUILT_PRODUCTS_DIR; }; + 54AD90E92E30C48400160925 /* Quartz.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Quartz.framework; path = System/Library/Frameworks/Quartz.framework; sourceTree = SDKROOT; }; + 54AD90EC2E30C48400160925 /* PreviewViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PreviewViewController.h; sourceTree = ""; }; + 54AD90ED2E30C48400160925 /* PreviewViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PreviewViewController.m; sourceTree = ""; }; + 54AD90F02E30C48400160925 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/PreviewViewController.xib; sourceTree = ""; }; + 54AD90F22E30C48400160925 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 54AD90F32E30C48400160925 /* QLOPML.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = QLOPML.entitlements; sourceTree = ""; }; 54B51702226DC339006C1B29 /* ModalFeedEditView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ModalFeedEditView.h; sourceTree = ""; }; 54B51703226DC339006C1B29 /* ModalFeedEditView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ModalFeedEditView.m; sourceTree = ""; }; 54B517052270E8C6006C1B29 /* NSView+Ext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSView+Ext.h"; sourceTree = ""; }; @@ -209,6 +243,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 54AD90E42E30C48400160925 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 54AD90EA2E30C48400160925 /* Quartz.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -315,6 +357,8 @@ 54892F1D2235285700271CBA /* CHANGELOG.md */, 54ACC27E21061B3B0020715F /* baRSS */, 5483295E2A3CDB22000688B9 /* RSXML2.xcodeproj */, + 54AD90EB2E30C48400160925 /* QLOPML */, + 54AD90E82E30C48400160925 /* Frameworks */, 54ACC27D21061B3B0020715F /* Products */, ); sourceTree = ""; @@ -323,6 +367,7 @@ isa = PBXGroup; children = ( 54ACC27C21061B3B0020715F /* baRSS Beta.app */, + 54AD90E72E30C48400160925 /* QLOPML.appex */, ); name = Products; sourceTree = ""; @@ -367,6 +412,29 @@ path = "Feed Import"; sourceTree = ""; }; + 54AD90E82E30C48400160925 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 54AD90E92E30C48400160925 /* Quartz.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 54AD90EB2E30C48400160925 /* QLOPML */ = { + isa = PBXGroup; + children = ( + 544F5A6F2E30EFC700674F81 /* opml-lib.h */, + 544F5A702E30EFC700674F81 /* opml-lib.m */, + 54AD90EC2E30C48400160925 /* PreviewViewController.h */, + 54AD90ED2E30C48400160925 /* PreviewViewController.m */, + 54AD90EF2E30C48400160925 /* PreviewViewController.xib */, + 54AD90F22E30C48400160925 /* Info.plist */, + 54AD90F32E30C48400160925 /* QLOPML.entitlements */, + 544F5A722E30EFC700674F81 /* style.css */, + ); + path = QLOPML; + sourceTree = ""; + }; 54D857CF228022AB001BA1C8 /* General Tab */ = { isa = PBXGroup; children = ( @@ -455,16 +523,35 @@ 54ACC27A21061B3B0020715F /* Resources */, 544DCCBB212A2B4D002DBC46 /* Embed Frameworks */, 54FB05D12305BFAB00A088AD /* dynamic app name in db migration */, + 54AD90F62E30C48400160925 /* Embed App Extensions */, ); buildRules = ( ); dependencies = ( + 54AD90F52E30C48400160925 /* PBXTargetDependency */, ); name = baRSS; productName = baRRS; productReference = 54ACC27C21061B3B0020715F /* baRSS Beta.app */; productType = "com.apple.product-type.application"; }; + 54AD90E62E30C48400160925 /* QLOPML */ = { + isa = PBXNativeTarget; + buildConfigurationList = 54AD90F82E30C48400160925 /* Build configuration list for PBXNativeTarget "QLOPML" */; + buildPhases = ( + 54AD90E32E30C48400160925 /* Sources */, + 54AD90E42E30C48400160925 /* Frameworks */, + 54AD90E52E30C48400160925 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = QLOPML; + productName = QLOPML; + productReference = 54AD90E72E30C48400160925 /* QLOPML.appex */; + productType = "com.apple.product-type.app-extension"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -490,6 +577,9 @@ }; }; }; + 54AD90E62E30C48400160925 = { + CreatedOnToolsVersion = 12.4; + }; }; }; buildConfigurationList = 54ACC27721061B3B0020715F /* Build configuration list for PBXProject "baRSS" */; @@ -512,6 +602,7 @@ projectRoot = ""; targets = ( 54ACC27B21061B3B0020715F /* baRSS */, + 54AD90E62E30C48400160925 /* QLOPML */, ); }; /* End PBXProject section */ @@ -544,6 +635,15 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 54AD90E52E30C48400160925 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 54AD90F12E30C48400160925 /* PreviewViewController.xib in Resources */, + 544F5A752E30EFC700674F81 /* style.css in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ @@ -625,8 +725,36 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 54AD90E32E30C48400160925 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 544F5A762E30EFC700674F81 /* opml-lib.m in Sources */, + 54AD90EE2E30C48400160925 /* PreviewViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ +/* Begin PBXTargetDependency section */ + 54AD90F52E30C48400160925 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 54AD90E62E30C48400160925 /* QLOPML */; + targetProxy = 54AD90F42E30C48400160925 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 54AD90EF2E30C48400160925 /* PreviewViewController.xib */ = { + isa = PBXVariantGroup; + children = ( + 54AD90F02E30C48400160925 /* Base */, + ); + name = PreviewViewController.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + /* Begin XCBuildConfiguration section */ 54ACC28E21061B3C0020715F /* Debug */ = { isa = XCBuildConfiguration; @@ -791,7 +919,6 @@ ); PRODUCT_BUNDLE_IDENTIFIER = de.relikd.baRSS.beta; PRODUCT_NAME = "$(TARGET_NAME) Beta"; - PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; }; name = Debug; @@ -842,7 +969,47 @@ ); PRODUCT_BUNDLE_IDENTIFIER = de.relikd.baRSS; PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; + }; + name = Release; + }; + 54AD90F92E30C48400160925 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_ENTITLEMENTS = QLOPML/QLOPML.entitlements; + ENABLE_HARDENED_RUNTIME = YES; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = QLOPML/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@executable_path/../../../../Frameworks", + ); + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = de.relikd.baRSS.beta.QLOPML; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 54AD90FA2E30C48400160925 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_ENTITLEMENTS = QLOPML/QLOPML.entitlements; + ENABLE_HARDENED_RUNTIME = YES; + INFOPLIST_FILE = QLOPML/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@executable_path/../../../../Frameworks", + ); + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = de.relikd.baRSS.QLOPML; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; }; name = Release; }; @@ -867,6 +1034,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 54AD90F82E30C48400160925 /* Build configuration list for PBXNativeTarget "QLOPML" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 54AD90F92E30C48400160925 /* Debug */, + 54AD90FA2E30C48400160925 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ /* Begin XCVersionGroup section */