[rst-commit] r115 - in /redwax-signtext/trunk/src/macos/Redwax SignText: ./ Redwax SignText Extension/ Redwax SignText Extension/Resources/ Redwax SignText Extension/Resources/_locales/ Redwax SignText Extension/Resources/_locales/en/ Redwax SignText Extension/Resources/images/ Redwax SignText.xcodeproj/ Redwax SignText.xcodeproj/project.xcworkspace/ Redwax SignText.xcodeproj/project.xcworkspace/xcshareddata/ Redwax SignText.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/ Redwax SignText.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/configuration/ Redwax SignText.xcodeproj/project.xcworkspace/xcuserdata/ Redwax SignText.xcodeproj/project.xcworkspace/xcuserdata/minfrin.xcuserdatad/ Redwax SignText.xcodeproj/xcuserdata/ Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/ Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/xcdebugger/ Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/xcschemes/ Redwax SignText/ Redwax SignText/Assets.xcassets/ Redwax SignText/Assets.xcassets/AccentColor.colorset/ Redwax SignText/Assets.xcassets/AppIcon.appiconset/ Redwax SignText/Assets.xcassets/LargeIcon.imageset/ Redwax SignText/Base.lproj/ Redwax SignText/Resources/ Redwax SignTextTests/ Redwax SignTextUITests/

rst-commit at redwax.eu rst-commit at redwax.eu
Fri Mar 15 11:00:25 CET 2024


Author: minfrin at redwax.eu
Date: Fri Mar 15 11:00:24 2024
New Revision: 115

Log:
Re-add Redwax Signtext code.

Added:
    redwax-signtext/trunk/src/macos/Redwax SignText/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Info.plist
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Redwax_SignText_Extension.entitlements
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/_locales/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/_locales/en/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/_locales/en/messages.json   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/background.js   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/content.js   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-128.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-256.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-48.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-512.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-64.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-96.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-16.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-19.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-32.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-38.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-48.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-72.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/manifest.json   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/SafariWebExtensionHandler.h
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/SafariWebExtensionHandler.m
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.pbxproj
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/contents.xcworkspacedata
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/xcshareddata/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/configuration/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/xcuserdata/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/xcuserdata/minfrin.xcuserdatad/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/xcuserdata/minfrin.xcuserdatad/UserInterfaceState.xcuserstate   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/xcuserdata/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/xcdebugger/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/xcschemes/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/xcschemes/xcschememanagement.plist
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/AppDelegate.h
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/AppDelegate.m
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/AccentColor.colorset/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/AccentColor.colorset/Contents.json   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/AppIcon.appiconset/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/AppIcon.appiconset/Contents.json   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/Contents.json   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/LargeIcon.imageset/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/LargeIcon.imageset/Contents.json   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Base.lproj/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Base.lproj/Main.html
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Base.lproj/Main.storyboard
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Redwax SignText.entitlements
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Redwax_SignText.entitlements
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Resources/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Resources/Icon.png   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Resources/Script.js   (with props)
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Resources/Style.css
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/UnixServer.h
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/UnixServer.m
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/ViewController.h
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/ViewController.m
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/main.m
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextTests/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextTests/Redwax_SignTextTests.m
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextUITests/
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextUITests/Redwax_SignTextUITests.m
    redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextUITests/Redwax_SignTextUITestsLaunchTests.m

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Info.plist
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Info.plist	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Info.plist	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>NSExtension</key>
+	<dict>
+		<key>NSExtensionPointIdentifier</key>
+		<string>com.apple.Safari.web-extension</string>
+		<key>NSExtensionPrincipalClass</key>
+		<string>SafariWebExtensionHandler</string>
+	</dict>
+</dict>
+</plist>

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Redwax_SignText_Extension.entitlements
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Redwax_SignText_Extension.entitlements	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Redwax_SignText_Extension.entitlements	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>com.apple.security.app-sandbox</key>
+	<true/>
+	<key>com.apple.security.application-groups</key>
+	<array>
+		<string>$(TeamIdentifierPrefix)eu.redwax.rst</string>
+	</array>
+	<key>com.apple.security.files.user-selected.read-only</key>
+	<true/>
+</dict>
+</plist>

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/_locales/en/messages.json
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/_locales/en/messages.json
------------------------------------------------------------------------------
    svn:mime-type = application/json

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/background.js
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/background.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/content.js
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/content.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-128.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-128.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-256.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-256.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-48.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-48.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-512.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-512.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-64.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-64.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-96.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/icon-96.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-16.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-16.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-19.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-19.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-32.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-32.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-38.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-38.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-48.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-48.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-72.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/images/toolbar-icon-72.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/manifest.json
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/Resources/manifest.json
------------------------------------------------------------------------------
    svn:mime-type = application/json

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/SafariWebExtensionHandler.h
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/SafariWebExtensionHandler.h	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/SafariWebExtensionHandler.h	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,12 @@
+//
+//  SafariWebExtensionHandler.h
+//  Redwax SignText Extension
+//
+//  Created by Graham Leggett on 2022/04/18.
+//
+
+#import <Foundation/Foundation.h>
+
+ at interface SafariWebExtensionHandler : NSObject <NSExtensionRequestHandling>
+
+ at end

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/SafariWebExtensionHandler.m
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/SafariWebExtensionHandler.m	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText Extension/SafariWebExtensionHandler.m	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,49 @@
+//
+//  SafariWebExtensionHandler.m
+//  Redwax SignText Extension
+//
+//  Created by Graham Leggett on 2022/04/18.
+//
+
+#import "SafariWebExtensionHandler.h"
+
+#import <SafariServices/SafariServices.h>
+
+#import <AppKit/AppKit.h>
+
+#include "config.h"
+
+#if __MAC_OS_X_VERSION_MIN_REQUIRED < 110000
+NSString * const SFExtensionMessageKey = @"message";
+#endif
+
+static NSString* WebEidApp = @ REDWAX_APP_IDENTIFIER;
+static NSString* WebEidExtension = @ REDWAX_EXTENSION_IDENTIFIER;
+static NSString* WebEidShared = @"ET847QJV9F.eu.web-eid.web-eid-safari.shared";
+static NSString* WebEidStarting = @"eu.redwax.rst.Redwax-SignText.starting";
+
+ at implementation SafariWebExtensionHandler
+
+static NSUserDefaults* getUserDefaults()
+{
+    return [[NSUserDefaults alloc] initWithSuiteName:WebEidShared];
+}
+
+- (void)beginRequestWithExtensionContext:(NSExtensionContext *)context {
+    id message = [context.inputItems.firstObject userInfo][SFExtensionMessageKey];
+    NSLog(@"Received message from browser.runtime.sendNativeMessage: %@", message);
+
+    NSURL *appURL = [NSWorkspace.sharedWorkspace URLForApplicationWithBundleIdentifier:WebEidApp];
+
+    if (![NSWorkspace.sharedWorkspace launchApplication:appURL.path]) {
+        NSLog(@"web-eid-safari-extension: failed to start app");
+        return;
+    }
+
+    NSExtensionItem *response = [[NSExtensionItem alloc] init];
+    response.userInfo = @{ SFExtensionMessageKey: @{ @"Response to": message } };
+
+    [context completeRequestReturningItems:@[ response ] completionHandler:nil];
+}
+
+ at end

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.pbxproj
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.pbxproj	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.pbxproj	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,872 @@
+// !$*UTF8*$!
+{
+	archiveVersion = 1;
+	classes = {
+	};
+	objectVersion = 55;
+	objects = {
+
+/* Begin PBXBuildFile section */
+		F921A126280DA66C00D5122C /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F921A125280DA66C00D5122C /* AppDelegate.m */; };
+		F921A12A280DA66C00D5122C /* Main.html in Resources */ = {isa = PBXBuildFile; fileRef = F921A128280DA66C00D5122C /* Main.html */; };
+		F921A12C280DA66C00D5122C /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = F921A12B280DA66C00D5122C /* Icon.png */; };
+		F921A12E280DA66C00D5122C /* Style.css in Resources */ = {isa = PBXBuildFile; fileRef = F921A12D280DA66C00D5122C /* Style.css */; };
+		F921A130280DA66C00D5122C /* Script.js in Resources */ = {isa = PBXBuildFile; fileRef = F921A12F280DA66C00D5122C /* Script.js */; };
+		F921A133280DA66C00D5122C /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F921A132280DA66C00D5122C /* ViewController.m */; };
+		F921A136280DA66C00D5122C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F921A134280DA66C00D5122C /* Main.storyboard */; };
+		F921A138280DA66E00D5122C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F921A137280DA66E00D5122C /* Assets.xcassets */; };
+		F921A13A280DA66E00D5122C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = F921A139280DA66E00D5122C /* main.m */; };
+		F921A146280DA66E00D5122C /* Redwax_SignTextTests.m in Sources */ = {isa = PBXBuildFile; fileRef = F921A145280DA66E00D5122C /* Redwax_SignTextTests.m */; };
+		F921A150280DA66E00D5122C /* Redwax_SignTextUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = F921A14F280DA66E00D5122C /* Redwax_SignTextUITests.m */; };
+		F921A152280DA66E00D5122C /* Redwax_SignTextUITestsLaunchTests.m in Sources */ = {isa = PBXBuildFile; fileRef = F921A151280DA66E00D5122C /* Redwax_SignTextUITestsLaunchTests.m */; };
+		F921A158280DA66E00D5122C /* Redwax SignText Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = F921A157280DA66E00D5122C /* Redwax SignText Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
+		F921A15E280DA66E00D5122C /* SafariWebExtensionHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = F921A15D280DA66E00D5122C /* SafariWebExtensionHandler.m */; };
+		F921A161280DA66E00D5122C /* _locales in Resources */ = {isa = PBXBuildFile; fileRef = F921A160280DA66E00D5122C /* _locales */; };
+		F921A163280DA66E00D5122C /* images in Resources */ = {isa = PBXBuildFile; fileRef = F921A162280DA66E00D5122C /* images */; };
+		F921A165280DA66E00D5122C /* manifest.json in Resources */ = {isa = PBXBuildFile; fileRef = F921A164280DA66E00D5122C /* manifest.json */; };
+		F921A167280DA66E00D5122C /* background.js in Resources */ = {isa = PBXBuildFile; fileRef = F921A166280DA66E00D5122C /* background.js */; };
+		F921A169280DA66E00D5122C /* content.js in Resources */ = {isa = PBXBuildFile; fileRef = F921A168280DA66E00D5122C /* content.js */; };
+		F921A184280DD55800D5122C /* UnixServer.m in Sources */ = {isa = PBXBuildFile; fileRef = F921A183280DD55800D5122C /* UnixServer.m */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+		F921A142280DA66E00D5122C /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = F921A119280DA66C00D5122C /* Project object */;
+			proxyType = 1;
+			remoteGlobalIDString = F921A120280DA66C00D5122C;
+			remoteInfo = "Redwax SignText";
+		};
+		F921A14C280DA66E00D5122C /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = F921A119280DA66C00D5122C /* Project object */;
+			proxyType = 1;
+			remoteGlobalIDString = F921A120280DA66C00D5122C;
+			remoteInfo = "Redwax SignText";
+		};
+		F921A159280DA66E00D5122C /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = F921A119280DA66C00D5122C /* Project object */;
+			proxyType = 1;
+			remoteGlobalIDString = F921A156280DA66E00D5122C;
+			remoteInfo = "Redwax SignText Extension";
+		};
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+		F921A177280DA66E00D5122C /* Embed App Extensions */ = {
+			isa = PBXCopyFilesBuildPhase;
+			buildActionMask = 2147483647;
+			dstPath = "";
+			dstSubfolderSpec = 13;
+			files = (
+				F921A158280DA66E00D5122C /* Redwax SignText Extension.appex in Embed App Extensions */,
+			);
+			name = "Embed App Extensions";
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+		F921A121280DA66C00D5122C /* Redwax SignText.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Redwax SignText.app"; sourceTree = BUILT_PRODUCTS_DIR; };
+		F921A124280DA66C00D5122C /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
+		F921A125280DA66C00D5122C /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
+		F921A129280DA66C00D5122C /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = Base; path = ../Base.lproj/Main.html; sourceTree = "<group>"; };
+		F921A12B280DA66C00D5122C /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; };
+		F921A12D280DA66C00D5122C /* Style.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = Style.css; sourceTree = "<group>"; };
+		F921A12F280DA66C00D5122C /* Script.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = Script.js; sourceTree = "<group>"; };
+		F921A131280DA66C00D5122C /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
+		F921A132280DA66C00D5122C /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
+		F921A135280DA66C00D5122C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
+		F921A137280DA66E00D5122C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+		F921A139280DA66E00D5122C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+		F921A13B280DA66E00D5122C /* Redwax_SignText.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Redwax_SignText.entitlements; sourceTree = "<group>"; };
+		F921A13C280DA66E00D5122C /* Redwax SignText.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Redwax SignText.entitlements"; sourceTree = "<group>"; };
+		F921A141280DA66E00D5122C /* Redwax SignTextTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Redwax SignTextTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
+		F921A145280DA66E00D5122C /* Redwax_SignTextTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Redwax_SignTextTests.m; sourceTree = "<group>"; };
+		F921A14B280DA66E00D5122C /* Redwax SignTextUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Redwax SignTextUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
+		F921A14F280DA66E00D5122C /* Redwax_SignTextUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Redwax_SignTextUITests.m; sourceTree = "<group>"; };
+		F921A151280DA66E00D5122C /* Redwax_SignTextUITestsLaunchTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Redwax_SignTextUITestsLaunchTests.m; sourceTree = "<group>"; };
+		F921A157280DA66E00D5122C /* Redwax SignText Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Redwax SignText Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
+		F921A15C280DA66E00D5122C /* SafariWebExtensionHandler.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SafariWebExtensionHandler.h; sourceTree = "<group>"; };
+		F921A15D280DA66E00D5122C /* SafariWebExtensionHandler.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SafariWebExtensionHandler.m; sourceTree = "<group>"; };
+		F921A160280DA66E00D5122C /* _locales */ = {isa = PBXFileReference; lastKnownFileType = folder; path = _locales; sourceTree = "<group>"; };
+		F921A162280DA66E00D5122C /* images */ = {isa = PBXFileReference; lastKnownFileType = folder; path = images; sourceTree = "<group>"; };
+		F921A164280DA66E00D5122C /* manifest.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = manifest.json; sourceTree = "<group>"; };
+		F921A166280DA66E00D5122C /* background.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = background.js; sourceTree = "<group>"; };
+		F921A168280DA66E00D5122C /* content.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = content.js; sourceTree = "<group>"; };
+		F921A170280DA66E00D5122C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+		F921A171280DA66E00D5122C /* Redwax_SignText_Extension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Redwax_SignText_Extension.entitlements; sourceTree = "<group>"; };
+		F921A183280DD55800D5122C /* UnixServer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UnixServer.m; sourceTree = "<group>"; };
+		F921A185280DD58D00D5122C /* UnixServer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UnixServer.h; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+		F921A11E280DA66C00D5122C /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		F921A13E280DA66E00D5122C /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		F921A148280DA66E00D5122C /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		F921A154280DA66E00D5122C /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+		F921A118280DA66C00D5122C = {
+			isa = PBXGroup;
+			children = (
+				F921A123280DA66C00D5122C /* Redwax SignText */,
+				F921A144280DA66E00D5122C /* Redwax SignTextTests */,
+				F921A14E280DA66E00D5122C /* Redwax SignTextUITests */,
+				F921A15B280DA66E00D5122C /* Redwax SignText Extension */,
+				F921A122280DA66C00D5122C /* Products */,
+			);
+			sourceTree = "<group>";
+		};
+		F921A122280DA66C00D5122C /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				F921A121280DA66C00D5122C /* Redwax SignText.app */,
+				F921A141280DA66E00D5122C /* Redwax SignTextTests.xctest */,
+				F921A14B280DA66E00D5122C /* Redwax SignTextUITests.xctest */,
+				F921A157280DA66E00D5122C /* Redwax SignText Extension.appex */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+		F921A123280DA66C00D5122C /* Redwax SignText */ = {
+			isa = PBXGroup;
+			children = (
+				F921A124280DA66C00D5122C /* AppDelegate.h */,
+				F921A125280DA66C00D5122C /* AppDelegate.m */,
+				F921A131280DA66C00D5122C /* ViewController.h */,
+				F921A132280DA66C00D5122C /* ViewController.m */,
+				F921A185280DD58D00D5122C /* UnixServer.h */,
+				F921A183280DD55800D5122C /* UnixServer.m */,
+				F921A134280DA66C00D5122C /* Main.storyboard */,
+				F921A137280DA66E00D5122C /* Assets.xcassets */,
+				F921A139280DA66E00D5122C /* main.m */,
+				F921A13B280DA66E00D5122C /* Redwax_SignText.entitlements */,
+				F921A13C280DA66E00D5122C /* Redwax SignText.entitlements */,
+				F921A127280DA66C00D5122C /* Resources */,
+			);
+			path = "Redwax SignText";
+			sourceTree = "<group>";
+		};
+		F921A127280DA66C00D5122C /* Resources */ = {
+			isa = PBXGroup;
+			children = (
+				F921A128280DA66C00D5122C /* Main.html */,
+				F921A12B280DA66C00D5122C /* Icon.png */,
+				F921A12D280DA66C00D5122C /* Style.css */,
+				F921A12F280DA66C00D5122C /* Script.js */,
+			);
+			path = Resources;
+			sourceTree = "<group>";
+		};
+		F921A144280DA66E00D5122C /* Redwax SignTextTests */ = {
+			isa = PBXGroup;
+			children = (
+				F921A145280DA66E00D5122C /* Redwax_SignTextTests.m */,
+			);
+			path = "Redwax SignTextTests";
+			sourceTree = "<group>";
+		};
+		F921A14E280DA66E00D5122C /* Redwax SignTextUITests */ = {
+			isa = PBXGroup;
+			children = (
+				F921A14F280DA66E00D5122C /* Redwax_SignTextUITests.m */,
+				F921A151280DA66E00D5122C /* Redwax_SignTextUITestsLaunchTests.m */,
+			);
+			path = "Redwax SignTextUITests";
+			sourceTree = "<group>";
+		};
+		F921A15B280DA66E00D5122C /* Redwax SignText Extension */ = {
+			isa = PBXGroup;
+			children = (
+				F921A15C280DA66E00D5122C /* SafariWebExtensionHandler.h */,
+				F921A15D280DA66E00D5122C /* SafariWebExtensionHandler.m */,
+				F921A170280DA66E00D5122C /* Info.plist */,
+				F921A171280DA66E00D5122C /* Redwax_SignText_Extension.entitlements */,
+				F921A15F280DA66E00D5122C /* Resources */,
+			);
+			path = "Redwax SignText Extension";
+			sourceTree = "<group>";
+		};
+		F921A15F280DA66E00D5122C /* Resources */ = {
+			isa = PBXGroup;
+			children = (
+				F921A160280DA66E00D5122C /* _locales */,
+				F921A162280DA66E00D5122C /* images */,
+				F921A164280DA66E00D5122C /* manifest.json */,
+				F921A166280DA66E00D5122C /* background.js */,
+				F921A168280DA66E00D5122C /* content.js */,
+			);
+			path = Resources;
+			sourceTree = "<group>";
+		};
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+		F921A120280DA66C00D5122C /* Redwax SignText */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = F921A178280DA66E00D5122C /* Build configuration list for PBXNativeTarget "Redwax SignText" */;
+			buildPhases = (
+				F921A18A280E0D6E00D5122C /* ShellScript */,
+				F921A11D280DA66C00D5122C /* Sources */,
+				F921A11E280DA66C00D5122C /* Frameworks */,
+				F921A11F280DA66C00D5122C /* Resources */,
+				F921A177280DA66E00D5122C /* Embed App Extensions */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+				F921A15A280DA66E00D5122C /* PBXTargetDependency */,
+			);
+			name = "Redwax SignText";
+			productName = "Redwax SignText";
+			productReference = F921A121280DA66C00D5122C /* Redwax SignText.app */;
+			productType = "com.apple.product-type.application";
+		};
+		F921A140280DA66E00D5122C /* Redwax SignTextTests */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = F921A17B280DA66E00D5122C /* Build configuration list for PBXNativeTarget "Redwax SignTextTests" */;
+			buildPhases = (
+				F921A13D280DA66E00D5122C /* Sources */,
+				F921A13E280DA66E00D5122C /* Frameworks */,
+				F921A13F280DA66E00D5122C /* Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+				F921A143280DA66E00D5122C /* PBXTargetDependency */,
+			);
+			name = "Redwax SignTextTests";
+			productName = "Redwax SignTextTests";
+			productReference = F921A141280DA66E00D5122C /* Redwax SignTextTests.xctest */;
+			productType = "com.apple.product-type.bundle.unit-test";
+		};
+		F921A14A280DA66E00D5122C /* Redwax SignTextUITests */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = F921A17E280DA66E00D5122C /* Build configuration list for PBXNativeTarget "Redwax SignTextUITests" */;
+			buildPhases = (
+				F921A147280DA66E00D5122C /* Sources */,
+				F921A148280DA66E00D5122C /* Frameworks */,
+				F921A149280DA66E00D5122C /* Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+				F921A14D280DA66E00D5122C /* PBXTargetDependency */,
+			);
+			name = "Redwax SignTextUITests";
+			productName = "Redwax SignTextUITests";
+			productReference = F921A14B280DA66E00D5122C /* Redwax SignTextUITests.xctest */;
+			productType = "com.apple.product-type.bundle.ui-testing";
+		};
+		F921A156280DA66E00D5122C /* Redwax SignText Extension */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = F921A174280DA66E00D5122C /* Build configuration list for PBXNativeTarget "Redwax SignText Extension" */;
+			buildPhases = (
+				F921A18B280E137B00D5122C /* ShellScript */,
+				F921A153280DA66E00D5122C /* Sources */,
+				F921A154280DA66E00D5122C /* Frameworks */,
+				F921A155280DA66E00D5122C /* Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = "Redwax SignText Extension";
+			productName = "Redwax SignText Extension";
+			productReference = F921A157280DA66E00D5122C /* Redwax SignText Extension.appex */;
+			productType = "com.apple.product-type.app-extension";
+		};
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+		F921A119280DA66C00D5122C /* Project object */ = {
+			isa = PBXProject;
+			attributes = {
+				BuildIndependentTargetsInParallel = 1;
+				LastUpgradeCheck = 1330;
+				TargetAttributes = {
+					F921A120280DA66C00D5122C = {
+						CreatedOnToolsVersion = 13.3.1;
+					};
+					F921A140280DA66E00D5122C = {
+						CreatedOnToolsVersion = 13.3.1;
+						TestTargetID = F921A120280DA66C00D5122C;
+					};
+					F921A14A280DA66E00D5122C = {
+						CreatedOnToolsVersion = 13.3.1;
+						TestTargetID = F921A120280DA66C00D5122C;
+					};
+					F921A156280DA66E00D5122C = {
+						CreatedOnToolsVersion = 13.3.1;
+					};
+				};
+			};
+			buildConfigurationList = F921A11C280DA66C00D5122C /* Build configuration list for PBXProject "Redwax SignText" */;
+			compatibilityVersion = "Xcode 13.0";
+			developmentRegion = en;
+			hasScannedForEncodings = 0;
+			knownRegions = (
+				en,
+				Base,
+			);
+			mainGroup = F921A118280DA66C00D5122C;
+			productRefGroup = F921A122280DA66C00D5122C /* Products */;
+			projectDirPath = "";
+			projectRoot = "";
+			targets = (
+				F921A120280DA66C00D5122C /* Redwax SignText */,
+				F921A140280DA66E00D5122C /* Redwax SignTextTests */,
+				F921A14A280DA66E00D5122C /* Redwax SignTextUITests */,
+				F921A156280DA66E00D5122C /* Redwax SignText Extension */,
+			);
+		};
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+		F921A11F280DA66C00D5122C /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				F921A12C280DA66C00D5122C /* Icon.png in Resources */,
+				F921A136280DA66C00D5122C /* Main.storyboard in Resources */,
+				F921A130280DA66C00D5122C /* Script.js in Resources */,
+				F921A12A280DA66C00D5122C /* Main.html in Resources */,
+				F921A138280DA66E00D5122C /* Assets.xcassets in Resources */,
+				F921A12E280DA66C00D5122C /* Style.css in Resources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		F921A13F280DA66E00D5122C /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		F921A149280DA66E00D5122C /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		F921A155280DA66E00D5122C /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				F921A167280DA66E00D5122C /* background.js in Resources */,
+				F921A163280DA66E00D5122C /* images in Resources */,
+				F921A165280DA66E00D5122C /* manifest.json in Resources */,
+				F921A161280DA66E00D5122C /* _locales in Resources */,
+				F921A169280DA66E00D5122C /* content.js in Resources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+		F921A18A280E0D6E00D5122C /* ShellScript */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputFileListPaths = (
+			);
+			inputPaths = (
+			);
+			outputFileListPaths = (
+			);
+			outputPaths = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "cat > \"${DERIVED_SOURCES_DIR}/config.h\" <<EOF\n\n#ifndef _CONFIG_H\n#define _CONFIG_H\n\n\n#define CURRENT_PROJECT_VERSION ${CURRENT_PROJECT_VERSION}\n#define MARKETING_VERSION \"${MARKETING_VERSION}\"\n#define DEVELOPMENT_TEAM \"${DEVELOPMENT_TEAM}\"\n#define PRODUCT_BUNDLE_IDENTIFIER \"${PRODUCT_BUNDLE_IDENTIFIER}\"\n\n#define REDWAX_APP_IDENTIFIER \"eu.redwax.rst.Redwax-SignText\"\n#define REDWAX_EXTENSION_IDENTIFIER \"eu.redwax.rst.Redwax-SignText.Extension\"\n\n#endif /* config.h */\n\nEOF\n\n";
+		};
+		F921A18B280E137B00D5122C /* ShellScript */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputFileListPaths = (
+			);
+			inputPaths = (
+			);
+			outputFileListPaths = (
+			);
+			outputPaths = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "cat > \"${DERIVED_SOURCES_DIR}/config.h\" <<EOF\n\n#ifndef CONFIG_H\n#define CONFIG_H\n\n#define CURRENT_PROJECT_VERSION ${CURRENT_PROJECT_VERSION}\n#define MARKETING_VERSION \"${MARKETING_VERSION}\"\n#define DEVELOPMENT_TEAM \"${DEVELOPMENT_TEAM}\"\n#define PRODUCT_BUNDLE_IDENTIFIER \"${PRODUCT_BUNDLE_IDENTIFIER}\"\n\n#define REDWAX_APP_IDENTIFIER \"eu.redwax.rst.Redwax-SignText\"\n#define REDWAX_EXTENSION_IDENTIFIER \"eu.redwax.rst.Redwax-SignText.Extension\"\n\n#endif /* config.h */\n\nEOF\n\n";
+		};
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+		F921A11D280DA66C00D5122C /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				F921A133280DA66C00D5122C /* ViewController.m in Sources */,
+				F921A13A280DA66E00D5122C /* main.m in Sources */,
+				F921A184280DD55800D5122C /* UnixServer.m in Sources */,
+				F921A126280DA66C00D5122C /* AppDelegate.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		F921A13D280DA66E00D5122C /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				F921A146280DA66E00D5122C /* Redwax_SignTextTests.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		F921A147280DA66E00D5122C /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				F921A150280DA66E00D5122C /* Redwax_SignTextUITests.m in Sources */,
+				F921A152280DA66E00D5122C /* Redwax_SignTextUITestsLaunchTests.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		F921A153280DA66E00D5122C /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				F921A15E280DA66E00D5122C /* SafariWebExtensionHandler.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+		F921A143280DA66E00D5122C /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			target = F921A120280DA66C00D5122C /* Redwax SignText */;
+			targetProxy = F921A142280DA66E00D5122C /* PBXContainerItemProxy */;
+		};
+		F921A14D280DA66E00D5122C /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			target = F921A120280DA66C00D5122C /* Redwax SignText */;
+			targetProxy = F921A14C280DA66E00D5122C /* PBXContainerItemProxy */;
+		};
+		F921A15A280DA66E00D5122C /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			target = F921A156280DA66E00D5122C /* Redwax SignText Extension */;
+			targetProxy = F921A159280DA66E00D5122C /* PBXContainerItemProxy */;
+		};
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+		F921A128280DA66C00D5122C /* Main.html */ = {
+			isa = PBXVariantGroup;
+			children = (
+				F921A129280DA66C00D5122C /* Base */,
+			);
+			name = Main.html;
+			sourceTree = "<group>";
+		};
+		F921A134280DA66C00D5122C /* Main.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				F921A135280DA66C00D5122C /* Base */,
+			);
+			name = Main.storyboard;
+			sourceTree = "<group>";
+		};
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+		F921A172280DA66E00D5122C /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_ENABLE_OBJC_WEAK = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				COPY_PHASE_STRIP = NO;
+				CURRENT_PROJECT_VERSION = 2;
+				DEBUG_INFORMATION_FORMAT = dwarf;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				ENABLE_TESTABILITY = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu11;
+				GCC_DYNAMIC_NO_PIC = NO;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_OPTIMIZATION_LEVEL = 0;
+				GCC_PREPROCESSOR_DEFINITIONS = (
+					"DEBUG=1",
+					"$(inherited)",
+				);
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				MACOSX_DEPLOYMENT_TARGET = 12.3;
+				MARKETING_VERSION = 1.0.0;
+				MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+				MTL_FAST_MATH = YES;
+				ONLY_ACTIVE_ARCH = YES;
+				SDKROOT = macosx;
+				VERSIONING_SYSTEM = "apple-generic";
+				VERSION_INFO_FILE = version.h;
+			};
+			name = Debug;
+		};
+		F921A173280DA66E00D5122C /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_ENABLE_OBJC_WEAK = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				COPY_PHASE_STRIP = NO;
+				CURRENT_PROJECT_VERSION = 2;
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+				ENABLE_NS_ASSERTIONS = NO;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu11;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				MACOSX_DEPLOYMENT_TARGET = 12.3;
+				MARKETING_VERSION = 1.0.0;
+				MTL_ENABLE_DEBUG_INFO = NO;
+				MTL_FAST_MATH = YES;
+				SDKROOT = macosx;
+				VERSIONING_SYSTEM = "apple-generic";
+				VERSION_INFO_FILE = version.h;
+			};
+			name = Release;
+		};
+		F921A175280DA66E00D5122C /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				CODE_SIGN_ENTITLEMENTS = "Redwax SignText Extension/Redwax_SignText_Extension.entitlements";
+				CODE_SIGN_STYLE = Automatic;
+				CURRENT_PROJECT_VERSION = 2;
+				DEVELOPMENT_TEAM = 3FFL5588QM;
+				ENABLE_HARDENED_RUNTIME = YES;
+				GENERATE_INFOPLIST_FILE = YES;
+				INFOPLIST_FILE = "Redwax SignText Extension/Info.plist";
+				INFOPLIST_KEY_CFBundleDisplayName = "Redwax SignText Extension";
+				INFOPLIST_KEY_NSHumanReadableCopyright = "";
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/../Frameworks",
+					"@executable_path/../../../../Frameworks",
+				);
+				MACOSX_DEPLOYMENT_TARGET = 10.14;
+				MARKETING_VERSION = 1.0;
+				OTHER_LDFLAGS = (
+					"-framework",
+					SafariServices,
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = "eu.redwax.rst.Redwax-SignText.Extension";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SKIP_INSTALL = YES;
+				SWIFT_EMIT_LOC_STRINGS = YES;
+			};
+			name = Debug;
+		};
+		F921A176280DA66E00D5122C /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				CODE_SIGN_ENTITLEMENTS = "Redwax SignText Extension/Redwax_SignText_Extension.entitlements";
+				CODE_SIGN_STYLE = Automatic;
+				CURRENT_PROJECT_VERSION = 2;
+				DEVELOPMENT_TEAM = 3FFL5588QM;
+				ENABLE_HARDENED_RUNTIME = YES;
+				GENERATE_INFOPLIST_FILE = YES;
+				INFOPLIST_FILE = "Redwax SignText Extension/Info.plist";
+				INFOPLIST_KEY_CFBundleDisplayName = "Redwax SignText Extension";
+				INFOPLIST_KEY_NSHumanReadableCopyright = "";
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/../Frameworks",
+					"@executable_path/../../../../Frameworks",
+				);
+				MACOSX_DEPLOYMENT_TARGET = 10.14;
+				MARKETING_VERSION = 1.0;
+				OTHER_LDFLAGS = (
+					"-framework",
+					SafariServices,
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = "eu.redwax.rst.Redwax-SignText.Extension";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SKIP_INSTALL = YES;
+				SWIFT_EMIT_LOC_STRINGS = YES;
+			};
+			name = Release;
+		};
+		F921A179280DA66E00D5122C /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+				CODE_SIGN_ENTITLEMENTS = "Redwax SignText/Redwax SignText.entitlements";
+				CODE_SIGN_STYLE = Automatic;
+				COMBINE_HIDPI_IMAGES = YES;
+				CURRENT_PROJECT_VERSION = 2;
+				DEVELOPMENT_TEAM = 3FFL5588QM;
+				ENABLE_HARDENED_RUNTIME = YES;
+				GENERATE_INFOPLIST_FILE = YES;
+				INFOPLIST_KEY_CFBundleDisplayName = "Redwax SignText";
+				INFOPLIST_KEY_NSHumanReadableCopyright = "";
+				INFOPLIST_KEY_NSMainStoryboardFile = Main;
+				INFOPLIST_KEY_NSPrincipalClass = NSApplication;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/../Frameworks",
+				);
+				MACOSX_DEPLOYMENT_TARGET = 10.14;
+				MARKETING_VERSION = 1.0;
+				OTHER_LDFLAGS = (
+					"-framework",
+					SafariServices,
+					"-framework",
+					WebKit,
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = "eu.redwax.rst.Redwax-SignText";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_EMIT_LOC_STRINGS = YES;
+				VERSIONING_SYSTEM = "";
+				VERSION_INFO_FILE = "";
+			};
+			name = Debug;
+		};
+		F921A17A280DA66E00D5122C /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+				CODE_SIGN_ENTITLEMENTS = "Redwax SignText/Redwax SignText.entitlements";
+				CODE_SIGN_STYLE = Automatic;
+				COMBINE_HIDPI_IMAGES = YES;
+				CURRENT_PROJECT_VERSION = 2;
+				DEVELOPMENT_TEAM = 3FFL5588QM;
+				ENABLE_HARDENED_RUNTIME = YES;
+				GENERATE_INFOPLIST_FILE = YES;
+				INFOPLIST_KEY_CFBundleDisplayName = "Redwax SignText";
+				INFOPLIST_KEY_NSHumanReadableCopyright = "";
+				INFOPLIST_KEY_NSMainStoryboardFile = Main;
+				INFOPLIST_KEY_NSPrincipalClass = NSApplication;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/../Frameworks",
+				);
+				MACOSX_DEPLOYMENT_TARGET = 10.14;
+				MARKETING_VERSION = 1.0;
+				OTHER_LDFLAGS = (
+					"-framework",
+					SafariServices,
+					"-framework",
+					WebKit,
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = "eu.redwax.rst.Redwax-SignText";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_EMIT_LOC_STRINGS = YES;
+				VERSIONING_SYSTEM = "";
+				VERSION_INFO_FILE = "";
+			};
+			name = Release;
+		};
+		F921A17C280DA66E00D5122C /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				BUNDLE_LOADER = "$(TEST_HOST)";
+				CODE_SIGN_STYLE = Automatic;
+				CURRENT_PROJECT_VERSION = 2;
+				DEVELOPMENT_TEAM = 3FFL5588QM;
+				GENERATE_INFOPLIST_FILE = YES;
+				MACOSX_DEPLOYMENT_TARGET = 10.14;
+				MARKETING_VERSION = 1.0;
+				PRODUCT_BUNDLE_IDENTIFIER = "eu.redwax.rst.Redwax-SignTextTests";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_EMIT_LOC_STRINGS = NO;
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Redwax SignText.app/Contents/MacOS/Redwax SignText";
+			};
+			name = Debug;
+		};
+		F921A17D280DA66E00D5122C /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				BUNDLE_LOADER = "$(TEST_HOST)";
+				CODE_SIGN_STYLE = Automatic;
+				CURRENT_PROJECT_VERSION = 2;
+				DEVELOPMENT_TEAM = 3FFL5588QM;
+				GENERATE_INFOPLIST_FILE = YES;
+				MACOSX_DEPLOYMENT_TARGET = 10.14;
+				MARKETING_VERSION = 1.0;
+				PRODUCT_BUNDLE_IDENTIFIER = "eu.redwax.rst.Redwax-SignTextTests";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_EMIT_LOC_STRINGS = NO;
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Redwax SignText.app/Contents/MacOS/Redwax SignText";
+			};
+			name = Release;
+		};
+		F921A17F280DA66E00D5122C /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				CODE_SIGN_STYLE = Automatic;
+				CURRENT_PROJECT_VERSION = 2;
+				DEVELOPMENT_TEAM = 3FFL5588QM;
+				GENERATE_INFOPLIST_FILE = YES;
+				MARKETING_VERSION = 1.0;
+				PRODUCT_BUNDLE_IDENTIFIER = "eu.redwax.rst.Redwax-SignTextUITests";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_EMIT_LOC_STRINGS = NO;
+				TEST_TARGET_NAME = "Redwax SignText";
+			};
+			name = Debug;
+		};
+		F921A180280DA66E00D5122C /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				CODE_SIGN_STYLE = Automatic;
+				CURRENT_PROJECT_VERSION = 2;
+				DEVELOPMENT_TEAM = 3FFL5588QM;
+				GENERATE_INFOPLIST_FILE = YES;
+				MARKETING_VERSION = 1.0;
+				PRODUCT_BUNDLE_IDENTIFIER = "eu.redwax.rst.Redwax-SignTextUITests";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_EMIT_LOC_STRINGS = NO;
+				TEST_TARGET_NAME = "Redwax SignText";
+			};
+			name = Release;
+		};
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+		F921A11C280DA66C00D5122C /* Build configuration list for PBXProject "Redwax SignText" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				F921A172280DA66E00D5122C /* Debug */,
+				F921A173280DA66E00D5122C /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		F921A174280DA66E00D5122C /* Build configuration list for PBXNativeTarget "Redwax SignText Extension" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				F921A175280DA66E00D5122C /* Debug */,
+				F921A176280DA66E00D5122C /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		F921A178280DA66E00D5122C /* Build configuration list for PBXNativeTarget "Redwax SignText" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				F921A179280DA66E00D5122C /* Debug */,
+				F921A17A280DA66E00D5122C /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		F921A17B280DA66E00D5122C /* Build configuration list for PBXNativeTarget "Redwax SignTextTests" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				F921A17C280DA66E00D5122C /* Debug */,
+				F921A17D280DA66E00D5122C /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		F921A17E280DA66E00D5122C /* Build configuration list for PBXNativeTarget "Redwax SignTextUITests" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				F921A17F280DA66E00D5122C /* Debug */,
+				F921A180280DA66E00D5122C /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+/* End XCConfigurationList section */
+	};
+	rootObject = F921A119280DA66C00D5122C /* Project object */;
+}

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/contents.xcworkspacedata
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/contents.xcworkspacedata	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/contents.xcworkspacedata	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+   version = "1.0">
+   <FileRef
+      location = "self:">
+   </FileRef>
+</Workspace>

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>IDEDidComputeMac32BitWarning</key>
+	<true/>
+</dict>
+</plist>

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/xcuserdata/minfrin.xcuserdatad/UserInterfaceState.xcuserstate
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/project.xcworkspace/xcuserdata/minfrin.xcuserdatad/UserInterfaceState.xcuserstate
------------------------------------------------------------------------------
    svn:mime-type = application/x-bplist

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Bucket
+   uuid = "747CBDEC-CAC2-4F9F-8D79-D505866A8DBE"
+   type = "1"
+   version = "2.0">
+   <Breakpoints>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            uuid = "9FD8FA9A-74B0-4E15-837A-E524C2C11669"
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "Redwax SignText Extension/SafariWebExtensionHandler.m"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "34"
+            endingLineNumber = "34"
+            landmarkName = "-beginRequestWithExtensionContext:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+   </Breakpoints>
+</Bucket>

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/xcschemes/xcschememanagement.plist
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/xcschemes/xcschememanagement.plist	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText.xcodeproj/xcuserdata/minfrin.xcuserdatad/xcschemes/xcschememanagement.plist	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>SchemeUserState</key>
+	<dict>
+		<key>Redwax SignText.xcscheme_^#shared#^_</key>
+		<dict>
+			<key>orderHint</key>
+			<integer>0</integer>
+		</dict>
+	</dict>
+</dict>
+</plist>

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/AppDelegate.h
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/AppDelegate.h	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/AppDelegate.h	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,12 @@
+//
+//  AppDelegate.h
+//  Redwax SignText
+//
+//  Created by Graham Leggett on 2022/04/18.
+//
+
+#import <Cocoa/Cocoa.h>
+
+ at interface AppDelegate : NSObject <NSApplicationDelegate>
+
+ at end

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/AppDelegate.m
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/AppDelegate.m	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/AppDelegate.m	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,32 @@
+//
+//  AppDelegate.m
+//  Redwax SignText
+//
+//  Created by Graham Leggett on 2022/04/18.
+//
+
+#import "AppDelegate.h"
+
+static NSString* WebEidApp = @"eu.redwax.rst.Redwax-SignText";
+static NSString* WebEidExtension = @"eu.redwax.rst.Redwax-SignText.Extension";
+static NSString* WebEidShared = @"ET847QJV9F.eu.web-eid.web-eid-safari.shared";
+static NSString* WebEidStarting = @"eu.redwax.rst.Redwax-SignText.starting";
+
+ at implementation AppDelegate
+
+- (void)notificationEvent:(NSNotification*)notification {
+    
+}
+
+- (void)applicationDidFinishLaunching:(NSNotification *)notification {
+    // Override point for customization after application launch.
+    
+    [NSDistributedNotificationCenter.defaultCenter addObserver:NSApp selector:@selector(notificationEvent:) name:WebEidApp object:nil];
+
+}
+
+- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender {
+    return YES;
+}
+
+ at end

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/AccentColor.colorset/Contents.json
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/AccentColor.colorset/Contents.json
------------------------------------------------------------------------------
    svn:mime-type = application/json

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/AppIcon.appiconset/Contents.json
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/AppIcon.appiconset/Contents.json
------------------------------------------------------------------------------
    svn:mime-type = application/json

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/Contents.json
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/Contents.json
------------------------------------------------------------------------------
    svn:mime-type = application/json

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/LargeIcon.imageset/Contents.json
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Assets.xcassets/LargeIcon.imageset/Contents.json
------------------------------------------------------------------------------
    svn:mime-type = application/json

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Base.lproj/Main.html
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Base.lproj/Main.html	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Base.lproj/Main.html	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+    <meta http-equiv="Content-Security-Policy" content="default-src 'self'">
+
+    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+
+    <link rel="stylesheet" href="../Style.css">
+    <script src="../Script.js" defer></script>
+</head>
+<body>
+    <img src="../Icon.png" width="128" height="128" alt="Redwax SignText Icon">
+    <p class="state-unknown">You can turn on Redwax SignText’s extension in Safari Extensions preferences.</p>
+    <p class="state-on">Redwax SignText’s extension is currently on. You can turn it off in Safari Extensions preferences.</p>
+    <p class="state-off">Redwax SignText’s extension is currently off. You can turn it on in Safari Extensions preferences.</p>
+    <button class="open-preferences">Quit and Open Safari Extensions Preferences…</button>
+</body>
+</html>

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Base.lproj/Main.storyboard
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Base.lproj/Main.storyboard	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Base.lproj/Main.storyboard	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19085" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
+    <dependencies>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19085"/>
+        <plugIn identifier="com.apple.WebKit2IBPlugin" version="19085"/>
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+    </dependencies>
+    <scenes>
+        <!--Application-->
+        <scene sceneID="JPo-4y-FX3">
+            <objects>
+                <application id="hnw-xV-0zn" sceneMemberID="viewController">
+                    <menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
+                        <items>
+                            <menuItem title="Redwax SignText" id="1Xt-HY-uBw">
+                                <modifierMask key="keyEquivalentModifierMask"/>
+                                <menu key="submenu" title="Redwax SignText" systemMenu="apple" id="uQy-DD-JDr">
+                                    <items>
+                                        <menuItem title="About Redwax SignText" id="5kV-Vb-QxS">
+                                            <modifierMask key="keyEquivalentModifierMask"/>
+                                            <connections>
+                                                <action selector="orderFrontStandardAboutPanel:" target="Ady-hI-5gd" id="Exp-CZ-Vem"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem isSeparatorItem="YES" id="VOq-y0-SEH"/>
+                                        <menuItem title="Hide Redwax SignText" keyEquivalent="h" id="Olw-nP-bQN">
+                                            <connections>
+                                                <action selector="hide:" target="Ady-hI-5gd" id="PnN-Uc-m68"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem title="Hide Others" keyEquivalent="h" id="Vdr-fp-XzO">
+                                            <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
+                                            <connections>
+                                                <action selector="hideOtherApplications:" target="Ady-hI-5gd" id="VT4-aY-XCT"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem title="Show All" id="Kd2-mp-pUS">
+                                            <modifierMask key="keyEquivalentModifierMask"/>
+                                            <connections>
+                                                <action selector="unhideAllApplications:" target="Ady-hI-5gd" id="Dhg-Le-xox"/>
+                                            </connections>
+                                        </menuItem>
+                                        <menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/>
+                                        <menuItem title="Quit Redwax SignText" keyEquivalent="q" id="4sb-4s-VLi">
+                                            <connections>
+                                                <action selector="terminate:" target="Ady-hI-5gd" id="Te7-pn-YzF"/>
+                                            </connections>
+                                        </menuItem>
+                                    </items>
+                                </menu>
+                            </menuItem>
+                            <menuItem title="Help" id="wpr-3q-Mcd">
+                                <modifierMask key="keyEquivalentModifierMask"/>
+                                <menu key="submenu" title="Help" systemMenu="help" id="F2S-fz-NVQ">
+                                    <items>
+                                        <menuItem title="Redwax SignText Help" keyEquivalent="?" id="FKE-Sm-Kum">
+                                            <connections>
+                                                <action selector="showHelp:" target="Ady-hI-5gd" id="y7X-2Q-9no"/>
+                                            </connections>
+                                        </menuItem>
+                                    </items>
+                                </menu>
+                            </menuItem>
+                        </items>
+                    </menu>
+                    <connections>
+                        <outlet property="delegate" destination="Voe-Tx-rLC" id="PrD-fu-P6m"/>
+                    </connections>
+                </application>
+                <customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModuleProvider=""/>
+                <customObject id="YLy-65-1bz" customClass="NSFontManager"/>
+                <customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="76" y="-134"/>
+        </scene>
+        <!--Window Controller-->
+        <scene sceneID="R2V-B0-nI4">
+            <objects>
+                <windowController showSeguePresentationStyle="single" id="B8D-0N-5wS" sceneMemberID="viewController">
+                    <window key="window" title="Redwax SignText" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" restorable="NO" releasedWhenClosed="NO" animationBehavior="default" id="IQv-IB-iLA">
+                        <windowStyleMask key="styleMask" titled="YES" closable="YES"/>
+                        <windowCollectionBehavior key="collectionBehavior" fullScreenNone="YES"/>
+                        <rect key="contentRect" x="196" y="240" width="425" height="325"/>
+                        <rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
+                        <connections>
+                            <outlet property="delegate" destination="B8D-0N-5wS" id="98r-iN-zZc"/>
+                        </connections>
+                    </window>
+                    <connections>
+                        <segue destination="XfG-lQ-9wD" kind="relationship" relationship="window.shadowedContentViewController" id="cq2-FE-JQM"/>
+                    </connections>
+                </windowController>
+                <customObject id="Oky-zY-oP4" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="75" y="250"/>
+        </scene>
+        <!--View Controller-->
+        <scene sceneID="hIz-AP-VOD">
+            <objects>
+                <viewController id="XfG-lQ-9wD" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController">
+                    <view key="view" id="m2S-Jp-Qdl">
+                        <rect key="frame" x="0.0" y="0.0" width="425" height="325"/>
+                        <autoresizingMask key="autoresizingMask"/>
+                        <subviews>
+                            <wkWebView wantsLayer="YES" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="eOr-cG-IQY">
+                                <rect key="frame" x="0.0" y="0.0" width="425" height="325"/>
+                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                                <wkWebViewConfiguration key="configuration">
+                                    <audiovisualMediaTypes key="mediaTypesRequiringUserActionForPlayback" none="YES"/>
+                                    <wkPreferences key="preferences"/>
+                                </wkWebViewConfiguration>
+                            </wkWebView>
+                        </subviews>
+                    </view>
+                    <connections>
+                        <outlet property="webView" destination="eOr-cG-IQY" id="GFe-mU-dBY"/>
+                    </connections>
+                </viewController>
+                <customObject id="rPt-NT-nkU" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="75" y="655"/>
+        </scene>
+    </scenes>
+</document>

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Redwax SignText.entitlements
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Redwax SignText.entitlements	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Redwax SignText.entitlements	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>com.apple.security.app-sandbox</key>
+	<true/>
+	<key>com.apple.security.application-groups</key>
+	<array>
+		<string>$(TeamIdentifierPrefix)eu.redwax.rst</string>
+	</array>
+	<key>com.apple.security.files.user-selected.read-only</key>
+	<true/>
+	<key>com.apple.security.network.client</key>
+	<true/>
+</dict>
+</plist>

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Redwax_SignText.entitlements
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Redwax_SignText.entitlements	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Redwax_SignText.entitlements	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+    <key>com.apple.security.app-sandbox</key>
+    <true/>
+    <key>com.apple.security.files.user-selected.read-only</key>
+    <true/>
+</dict>
+</plist>

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Resources/Icon.png
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Resources/Icon.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Resources/Script.js
==============================================================================
Binary file - no diff available.

Propchange: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Resources/Script.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Resources/Style.css
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Resources/Style.css	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/Resources/Style.css	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,45 @@
+* {
+    -webkit-user-select: none;
+    -webkit-user-drag: none;
+    cursor: default;
+}
+
+:root {
+    color-scheme: light dark;
+
+    --spacing: 20px;
+}
+
+html {
+    height: 100%;
+}
+
+body {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    flex-direction: column;
+
+    gap: var(--spacing);
+    margin: 0 calc(var(--spacing) * 2);
+    height: 100%;
+
+    font: -apple-system-short-body;
+    text-align: center;
+}
+
+body:not(.state-on, .state-off) :is(.state-on, .state-off) {
+    display: none;
+}
+
+body.state-on :is(.state-off, .state-unknown) {
+    display: none;
+}
+
+body.state-off :is(.state-on, .state-unknown) {
+    display: none;
+}
+
+button {
+    font-size: 1em;
+}

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/UnixServer.h
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/UnixServer.h	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/UnixServer.h	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,12 @@
+//
+//  UnixServer.h
+//  Redwax SignText
+//
+//  Created by Graham Leggett on 2022/04/18.
+//
+
+#ifndef UnixServer_h
+#define UnixServer_h
+
+
+#endif /* UnixServer_h */

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/UnixServer.m
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/UnixServer.m	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/UnixServer.m	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,43 @@
+//
+//  UnixServer.m
+//  Redwax SignText
+//
+//  Created by Graham Leggett on 2022/04/18.
+//
+
+#import <Foundation/Foundation.h>
+
+#include "config.h"
+
+static NSString* WebEidApp = @ REDWAX_APP_IDENTIFIER;
+
+ at interface UnixServer : NSObject {}
++ (id)sharedUnixServer;
+ at end
+
+ at implementation UnixServer
+
+- (id) init
+{
+    NSURL *url = [[[NSFileManager defaultManager]
+                   containerURLForSecurityApplicationGroupIdentifier:@"eu.redwax.rst"]
+                  URLByAppendingPathComponent:@"live"];
+    NSString *loc = url.path;
+    const char *socket_path = [loc UTF8String];
+
+    
+    return [super init];
+}
+
++ (id)sharedUnixServer {
+    static UnixServer *sharedUnixServer = nil;
+    @synchronized(self) {
+        if (sharedUnixServer == nil) {
+            sharedUnixServer = [[self alloc] init];
+            NSLog(@"Instantiating Unix Server.");
+        }
+    }
+    return sharedUnixServer;
+}
+
+ at end

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/ViewController.h
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/ViewController.h	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/ViewController.h	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,12 @@
+//
+//  ViewController.h
+//  Redwax SignText
+//
+//  Created by Graham Leggett on 2022/04/18.
+//
+
+#import <Cocoa/Cocoa.h>
+
+ at interface ViewController : NSViewController
+
+ at end

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/ViewController.m
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/ViewController.m	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/ViewController.m	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,57 @@
+//
+//  ViewController.m
+//  Redwax SignText
+//
+//  Created by Graham Leggett on 2022/04/18.
+//
+
+#import "ViewController.h"
+
+#import <SafariServices/SafariServices.h>
+#import <WebKit/WebKit.h>
+
+static NSString * const extensionBundleIdentifier = @"eu.redwax.rst.Redwax-SignText.Extension";
+
+ at interface ViewController () <WKNavigationDelegate, WKScriptMessageHandler>
+
+ at property (nonatomic) IBOutlet WKWebView *webView;
+
+ at end
+
+ at implementation ViewController
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+
+    _webView.navigationDelegate = self;
+
+    [_webView.configuration.userContentController addScriptMessageHandler:self name:@"controller"];
+
+    [_webView loadFileURL:[NSBundle.mainBundle URLForResource:@"Main" withExtension:@"html"] allowingReadAccessToURL:NSBundle.mainBundle.resourceURL];
+}
+
+- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation {
+    [SFSafariExtensionManager getStateOfSafariExtensionWithIdentifier:extensionBundleIdentifier completionHandler:^(SFSafariExtensionState *state, NSError *error) {
+        dispatch_async(dispatch_get_main_queue(), ^{
+            if (!state) {
+                // Insert code to inform the user something went wrong.
+                return;
+            }
+
+            [webView evaluateJavaScript:[NSString stringWithFormat:@"show(%@)", state.isEnabled ? @"true" : @"false"] completionHandler:nil];
+        });
+    }];
+}
+
+- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message {
+    if (![message.body isEqualToString:@"open-preferences"])
+        return;
+
+    [SFSafariApplication showPreferencesForExtensionWithIdentifier:extensionBundleIdentifier completionHandler:^(NSError *error) {
+        dispatch_async(dispatch_get_main_queue(), ^{
+            [NSApplication.sharedApplication terminate:nil];
+        });
+    }];
+}
+
+ at end

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/main.m
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/main.m	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignText/main.m	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,15 @@
+//
+//  main.m
+//  Redwax SignText
+//
+//  Created by Graham Leggett on 2022/04/18.
+//
+
+#import <Cocoa/Cocoa.h>
+
+int main(int argc, const char * argv[]) {
+    @autoreleasepool {
+        // Setup code that might create autoreleased objects goes here.
+    }
+    return NSApplicationMain(argc, argv);
+}

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextTests/Redwax_SignTextTests.m
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextTests/Redwax_SignTextTests.m	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextTests/Redwax_SignTextTests.m	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,36 @@
+//
+//  Redwax_SignTextTests.m
+//  Redwax SignTextTests
+//
+//  Created by Graham Leggett on 2022/04/18.
+//
+
+#import <XCTest/XCTest.h>
+
+ at interface Redwax_SignTextTests : XCTestCase
+
+ at end
+
+ at implementation Redwax_SignTextTests
+
+- (void)setUp {
+    // Put setup code here. This method is called before the invocation of each test method in the class.
+}
+
+- (void)tearDown {
+    // Put teardown code here. This method is called after the invocation of each test method in the class.
+}
+
+- (void)testExample {
+    // This is an example of a functional test case.
+    // Use XCTAssert and related functions to verify your tests produce the correct results.
+}
+
+- (void)testPerformanceExample {
+    // This is an example of a performance test case.
+    [self measureBlock:^{
+        // Put the code you want to measure the time of here.
+    }];
+}
+
+ at end

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextUITests/Redwax_SignTextUITests.m
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextUITests/Redwax_SignTextUITests.m	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextUITests/Redwax_SignTextUITests.m	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,46 @@
+//
+//  Redwax_SignTextUITests.m
+//  Redwax SignTextUITests
+//
+//  Created by Graham Leggett on 2022/04/18.
+//
+
+#import <XCTest/XCTest.h>
+
+ at interface Redwax_SignTextUITests : XCTestCase
+
+ at end
+
+ at implementation Redwax_SignTextUITests
+
+- (void)setUp {
+    // Put setup code here. This method is called before the invocation of each test method in the class.
+
+    // In UI tests it is usually best to stop immediately when a failure occurs.
+    self.continueAfterFailure = NO;
+
+    // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
+}
+
+- (void)tearDown {
+    // Put teardown code here. This method is called after the invocation of each test method in the class.
+}
+
+- (void)testExample {
+    // UI tests must launch the application that they test.
+    XCUIApplication *app = [[XCUIApplication alloc] init];
+    [app launch];
+
+    // Use XCTAssert and related functions to verify your tests produce the correct results.
+}
+
+- (void)testLaunchPerformance {
+    if (@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *)) {
+        // This measures how long it takes to launch your application.
+        [self measureWithMetrics:@[[[XCTApplicationLaunchMetric alloc] init]] block:^{
+            [[[XCUIApplication alloc] init] launch];
+        }];
+    }
+}
+
+ at end

Added: redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextUITests/Redwax_SignTextUITestsLaunchTests.m
==============================================================================
--- redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextUITests/Redwax_SignTextUITestsLaunchTests.m	(added)
+++ redwax-signtext/trunk/src/macos/Redwax SignText/Redwax SignTextUITests/Redwax_SignTextUITestsLaunchTests.m	Fri Mar 15 11:00:24 2024
@@ -0,0 +1,37 @@
+//
+//  Redwax_SignTextUITestsLaunchTests.m
+//  Redwax SignTextUITests
+//
+//  Created by Graham Leggett on 2022/04/18.
+//
+
+#import <XCTest/XCTest.h>
+
+ at interface Redwax_SignTextUITestsLaunchTests : XCTestCase
+
+ at end
+
+ at implementation Redwax_SignTextUITestsLaunchTests
+
++ (BOOL)runsForEachTargetApplicationUIConfiguration {
+    return YES;
+}
+
+- (void)setUp {
+    self.continueAfterFailure = NO;
+}
+
+- (void)testLaunch {
+    XCUIApplication *app = [[XCUIApplication alloc] init];
+    [app launch];
+
+    // Insert steps here to perform after app launch but before taking a screenshot,
+    // such as logging into a test account or navigating somewhere in the app
+
+    XCTAttachment *attachment = [XCTAttachment attachmentWithScreenshot:XCUIScreen.mainScreen.screenshot];
+    attachment.name = @"Launch Screen";
+    attachment.lifetime = XCTAttachmentLifetimeKeepAlways;
+    [self addAttachment:attachment];
+}
+
+ at end



More information about the rst-commit mailing list