wip: support safari

This commit is contained in:
reya
2023-11-27 15:08:42 +07:00
parent 89675cc986
commit 6a604d0d58
43 changed files with 1709 additions and 9 deletions

View File

@@ -0,0 +1,986 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objects = {
/* Begin PBXBuildFile section */
310DD9062B1484E100007E96 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 310DD9052B1484E100007E96 /* AppDelegate.swift */; };
310DD9082B1484E100007E96 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 310DD9072B1484E100007E96 /* SceneDelegate.swift */; };
310DD90B2B1484E100007E96 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9092B1484E100007E96 /* LaunchScreen.storyboard */; };
310DD90E2B1484E100007E96 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 310DD90C2B1484E100007E96 /* Main.storyboard */; };
310DD9172B1484E100007E96 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 310DD9162B1484E100007E96 /* AppDelegate.swift */; };
310DD91A2B1484E100007E96 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9182B1484E100007E96 /* Main.storyboard */; };
310DD9222B1484E100007E96 /* Nostr Connect Extension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 310DD9212B1484E100007E96 /* Nostr Connect Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
310DD92C2B1484E100007E96 /* Nostr Connect Extension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 310DD92B2B1484E100007E96 /* Nostr Connect Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
310DD9322B1484E100007E96 /* Main.html in Resources */ = {isa = PBXBuildFile; fileRef = 310DD8F52B1484E000007E96 /* Main.html */; };
310DD9332B1484E100007E96 /* Main.html in Resources */ = {isa = PBXBuildFile; fileRef = 310DD8F52B1484E000007E96 /* Main.html */; };
310DD9342B1484E100007E96 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 310DD8F72B1484E000007E96 /* Icon.png */; };
310DD9352B1484E100007E96 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 310DD8F72B1484E000007E96 /* Icon.png */; };
310DD9362B1484E100007E96 /* Style.css in Resources */ = {isa = PBXBuildFile; fileRef = 310DD8F82B1484E000007E96 /* Style.css */; };
310DD9372B1484E100007E96 /* Style.css in Resources */ = {isa = PBXBuildFile; fileRef = 310DD8F82B1484E000007E96 /* Style.css */; };
310DD9382B1484E100007E96 /* Script.js in Resources */ = {isa = PBXBuildFile; fileRef = 310DD8F92B1484E000007E96 /* Script.js */; };
310DD9392B1484E100007E96 /* Script.js in Resources */ = {isa = PBXBuildFile; fileRef = 310DD8F92B1484E000007E96 /* Script.js */; };
310DD93A2B1484E100007E96 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 310DD8FA2B1484E000007E96 /* ViewController.swift */; };
310DD93B2B1484E100007E96 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 310DD8FA2B1484E000007E96 /* ViewController.swift */; };
310DD93C2B1484E100007E96 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 310DD8FB2B1484E100007E96 /* Assets.xcassets */; };
310DD93D2B1484E100007E96 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 310DD8FB2B1484E100007E96 /* Assets.xcassets */; };
310DD93E2B1484E100007E96 /* SafariWebExtensionHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 310DD8FD2B1484E100007E96 /* SafariWebExtensionHandler.swift */; };
310DD93F2B1484E100007E96 /* SafariWebExtensionHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 310DD8FD2B1484E100007E96 /* SafariWebExtensionHandler.swift */; };
310DD95C2B1484E100007E96 /* popup.html in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9512B1484E100007E96 /* popup.html */; };
310DD95D2B1484E100007E96 /* options.build.js in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9522B1484E100007E96 /* options.build.js */; };
310DD95E2B1484E100007E96 /* background.build.js in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9532B1484E100007E96 /* background.build.js */; };
310DD95F2B1484E100007E96 /* content-script.build.js in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9542B1484E100007E96 /* content-script.build.js */; };
310DD9602B1484E100007E96 /* icons in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9552B1484E100007E96 /* icons */; };
310DD9612B1484E100007E96 /* prompt.html in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9562B1484E100007E96 /* prompt.html */; };
310DD9622B1484E100007E96 /* style.css in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9572B1484E100007E96 /* style.css */; };
310DD9632B1484E100007E96 /* manifest.json in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9582B1484E100007E96 /* manifest.json */; };
310DD9642B1484E100007E96 /* prompt.build.js in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9592B1484E100007E96 /* prompt.build.js */; };
310DD9652B1484E100007E96 /* options.html in Resources */ = {isa = PBXBuildFile; fileRef = 310DD95A2B1484E100007E96 /* options.html */; };
310DD9662B1484E100007E96 /* popup.build.js in Resources */ = {isa = PBXBuildFile; fileRef = 310DD95B2B1484E100007E96 /* popup.build.js */; };
310DD9672B1484E100007E96 /* popup.html in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9512B1484E100007E96 /* popup.html */; };
310DD9682B1484E100007E96 /* options.build.js in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9522B1484E100007E96 /* options.build.js */; };
310DD9692B1484E100007E96 /* background.build.js in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9532B1484E100007E96 /* background.build.js */; };
310DD96A2B1484E100007E96 /* content-script.build.js in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9542B1484E100007E96 /* content-script.build.js */; };
310DD96B2B1484E100007E96 /* icons in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9552B1484E100007E96 /* icons */; };
310DD96C2B1484E100007E96 /* prompt.html in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9562B1484E100007E96 /* prompt.html */; };
310DD96D2B1484E100007E96 /* style.css in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9572B1484E100007E96 /* style.css */; };
310DD96E2B1484E100007E96 /* manifest.json in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9582B1484E100007E96 /* manifest.json */; };
310DD96F2B1484E100007E96 /* prompt.build.js in Resources */ = {isa = PBXBuildFile; fileRef = 310DD9592B1484E100007E96 /* prompt.build.js */; };
310DD9702B1484E100007E96 /* options.html in Resources */ = {isa = PBXBuildFile; fileRef = 310DD95A2B1484E100007E96 /* options.html */; };
310DD9712B1484E100007E96 /* popup.build.js in Resources */ = {isa = PBXBuildFile; fileRef = 310DD95B2B1484E100007E96 /* popup.build.js */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
310DD9232B1484E100007E96 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 310DD8EF2B1484E000007E96 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 310DD9202B1484E100007E96;
remoteInfo = "Nostr Connect Extension (iOS)";
};
310DD92D2B1484E100007E96 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 310DD8EF2B1484E000007E96 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 310DD92A2B1484E100007E96;
remoteInfo = "Nostr Connect Extension (macOS)";
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
310DD9452B1484E100007E96 /* Embed Foundation Extensions */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 13;
files = (
310DD9222B1484E100007E96 /* Nostr Connect Extension.appex in Embed Foundation Extensions */,
);
name = "Embed Foundation Extensions";
runOnlyForDeploymentPostprocessing = 0;
};
310DD94C2B1484E100007E96 /* Embed Foundation Extensions */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 13;
files = (
310DD92C2B1484E100007E96 /* Nostr Connect Extension.appex in Embed Foundation Extensions */,
);
name = "Embed Foundation Extensions";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
310DD8F62B1484E000007E96 /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = Base; path = ../Base.lproj/Main.html; sourceTree = "<group>"; };
310DD8F72B1484E000007E96 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; };
310DD8F82B1484E000007E96 /* Style.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = Style.css; sourceTree = "<group>"; };
310DD8F92B1484E000007E96 /* Script.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = Script.js; sourceTree = "<group>"; };
310DD8FA2B1484E000007E96 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
310DD8FB2B1484E100007E96 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
310DD8FD2B1484E100007E96 /* SafariWebExtensionHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SafariWebExtensionHandler.swift; sourceTree = "<group>"; };
310DD9022B1484E100007E96 /* Nostr Connect.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Nostr Connect.app"; sourceTree = BUILT_PRODUCTS_DIR; };
310DD9052B1484E100007E96 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
310DD9072B1484E100007E96 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
310DD90A2B1484E100007E96 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
310DD90D2B1484E100007E96 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
310DD90F2B1484E100007E96 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
310DD9142B1484E100007E96 /* Nostr Connect.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Nostr Connect.app"; sourceTree = BUILT_PRODUCTS_DIR; };
310DD9162B1484E100007E96 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
310DD9192B1484E100007E96 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
310DD91B2B1484E100007E96 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
310DD91C2B1484E100007E96 /* Nostr Connect.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Nostr Connect.entitlements"; sourceTree = "<group>"; };
310DD9212B1484E100007E96 /* Nostr Connect Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Nostr Connect Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
310DD9262B1484E100007E96 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
310DD92B2B1484E100007E96 /* Nostr Connect Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Nostr Connect Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
310DD9302B1484E100007E96 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
310DD9312B1484E100007E96 /* Nostr Connect.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Nostr Connect.entitlements"; sourceTree = "<group>"; };
310DD9512B1484E100007E96 /* popup.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = popup.html; path = ../../extension/output/popup.html; sourceTree = "<group>"; };
310DD9522B1484E100007E96 /* options.build.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = options.build.js; path = ../../extension/output/options.build.js; sourceTree = "<group>"; };
310DD9532B1484E100007E96 /* background.build.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = background.build.js; path = ../../extension/output/background.build.js; sourceTree = "<group>"; };
310DD9542B1484E100007E96 /* content-script.build.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = "content-script.build.js"; path = "../../extension/output/content-script.build.js"; sourceTree = "<group>"; };
310DD9552B1484E100007E96 /* icons */ = {isa = PBXFileReference; lastKnownFileType = folder; name = icons; path = ../../extension/output/icons; sourceTree = "<group>"; };
310DD9562B1484E100007E96 /* prompt.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = prompt.html; path = ../../extension/output/prompt.html; sourceTree = "<group>"; };
310DD9572B1484E100007E96 /* style.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; name = style.css; path = ../../extension/output/style.css; sourceTree = "<group>"; };
310DD9582B1484E100007E96 /* manifest.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; name = manifest.json; path = ../../extension/output/manifest.json; sourceTree = "<group>"; };
310DD9592B1484E100007E96 /* prompt.build.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = prompt.build.js; path = ../../extension/output/prompt.build.js; sourceTree = "<group>"; };
310DD95A2B1484E100007E96 /* options.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = options.html; path = ../../extension/output/options.html; sourceTree = "<group>"; };
310DD95B2B1484E100007E96 /* popup.build.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = popup.build.js; path = ../../extension/output/popup.build.js; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
310DD8FF2B1484E100007E96 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
310DD9112B1484E100007E96 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
310DD91E2B1484E100007E96 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
310DD9282B1484E100007E96 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
310DD8EE2B1484E000007E96 = {
isa = PBXGroup;
children = (
310DD8F32B1484E000007E96 /* Shared (App) */,
310DD8FC2B1484E100007E96 /* Shared (Extension) */,
310DD9042B1484E100007E96 /* iOS (App) */,
310DD9152B1484E100007E96 /* macOS (App) */,
310DD9252B1484E100007E96 /* iOS (Extension) */,
310DD92F2B1484E100007E96 /* macOS (Extension) */,
310DD9032B1484E100007E96 /* Products */,
);
sourceTree = "<group>";
};
310DD8F32B1484E000007E96 /* Shared (App) */ = {
isa = PBXGroup;
children = (
310DD8FA2B1484E000007E96 /* ViewController.swift */,
310DD8FB2B1484E100007E96 /* Assets.xcassets */,
310DD8F42B1484E000007E96 /* Resources */,
);
path = "Shared (App)";
sourceTree = "<group>";
};
310DD8F42B1484E000007E96 /* Resources */ = {
isa = PBXGroup;
children = (
310DD8F52B1484E000007E96 /* Main.html */,
310DD8F72B1484E000007E96 /* Icon.png */,
310DD8F82B1484E000007E96 /* Style.css */,
310DD8F92B1484E000007E96 /* Script.js */,
);
path = Resources;
sourceTree = "<group>";
};
310DD8FC2B1484E100007E96 /* Shared (Extension) */ = {
isa = PBXGroup;
children = (
310DD9502B1484E100007E96 /* Resources */,
310DD8FD2B1484E100007E96 /* SafariWebExtensionHandler.swift */,
);
path = "Shared (Extension)";
sourceTree = "<group>";
};
310DD9032B1484E100007E96 /* Products */ = {
isa = PBXGroup;
children = (
310DD9022B1484E100007E96 /* Nostr Connect.app */,
310DD9142B1484E100007E96 /* Nostr Connect.app */,
310DD9212B1484E100007E96 /* Nostr Connect Extension.appex */,
310DD92B2B1484E100007E96 /* Nostr Connect Extension.appex */,
);
name = Products;
sourceTree = "<group>";
};
310DD9042B1484E100007E96 /* iOS (App) */ = {
isa = PBXGroup;
children = (
310DD9052B1484E100007E96 /* AppDelegate.swift */,
310DD9072B1484E100007E96 /* SceneDelegate.swift */,
310DD9092B1484E100007E96 /* LaunchScreen.storyboard */,
310DD90C2B1484E100007E96 /* Main.storyboard */,
310DD90F2B1484E100007E96 /* Info.plist */,
);
path = "iOS (App)";
sourceTree = "<group>";
};
310DD9152B1484E100007E96 /* macOS (App) */ = {
isa = PBXGroup;
children = (
310DD9162B1484E100007E96 /* AppDelegate.swift */,
310DD9182B1484E100007E96 /* Main.storyboard */,
310DD91B2B1484E100007E96 /* Info.plist */,
310DD91C2B1484E100007E96 /* Nostr Connect.entitlements */,
);
path = "macOS (App)";
sourceTree = "<group>";
};
310DD9252B1484E100007E96 /* iOS (Extension) */ = {
isa = PBXGroup;
children = (
310DD9262B1484E100007E96 /* Info.plist */,
);
path = "iOS (Extension)";
sourceTree = "<group>";
};
310DD92F2B1484E100007E96 /* macOS (Extension) */ = {
isa = PBXGroup;
children = (
310DD9302B1484E100007E96 /* Info.plist */,
310DD9312B1484E100007E96 /* Nostr Connect.entitlements */,
);
path = "macOS (Extension)";
sourceTree = "<group>";
};
310DD9502B1484E100007E96 /* Resources */ = {
isa = PBXGroup;
children = (
310DD9512B1484E100007E96 /* popup.html */,
310DD9522B1484E100007E96 /* options.build.js */,
310DD9532B1484E100007E96 /* background.build.js */,
310DD9542B1484E100007E96 /* content-script.build.js */,
310DD9552B1484E100007E96 /* icons */,
310DD9562B1484E100007E96 /* prompt.html */,
310DD9572B1484E100007E96 /* style.css */,
310DD9582B1484E100007E96 /* manifest.json */,
310DD9592B1484E100007E96 /* prompt.build.js */,
310DD95A2B1484E100007E96 /* options.html */,
310DD95B2B1484E100007E96 /* popup.build.js */,
);
name = Resources;
path = "Shared (Extension)";
sourceTree = SOURCE_ROOT;
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
310DD9012B1484E100007E96 /* Nostr Connect (iOS) */ = {
isa = PBXNativeTarget;
buildConfigurationList = 310DD9462B1484E100007E96 /* Build configuration list for PBXNativeTarget "Nostr Connect (iOS)" */;
buildPhases = (
310DD8FE2B1484E100007E96 /* Sources */,
310DD8FF2B1484E100007E96 /* Frameworks */,
310DD9002B1484E100007E96 /* Resources */,
310DD9452B1484E100007E96 /* Embed Foundation Extensions */,
);
buildRules = (
);
dependencies = (
310DD9242B1484E100007E96 /* PBXTargetDependency */,
);
name = "Nostr Connect (iOS)";
productName = "Nostr Connect (iOS)";
productReference = 310DD9022B1484E100007E96 /* Nostr Connect.app */;
productType = "com.apple.product-type.application";
};
310DD9132B1484E100007E96 /* Nostr Connect (macOS) */ = {
isa = PBXNativeTarget;
buildConfigurationList = 310DD94D2B1484E100007E96 /* Build configuration list for PBXNativeTarget "Nostr Connect (macOS)" */;
buildPhases = (
310DD9102B1484E100007E96 /* Sources */,
310DD9112B1484E100007E96 /* Frameworks */,
310DD9122B1484E100007E96 /* Resources */,
310DD94C2B1484E100007E96 /* Embed Foundation Extensions */,
);
buildRules = (
);
dependencies = (
310DD92E2B1484E100007E96 /* PBXTargetDependency */,
);
name = "Nostr Connect (macOS)";
productName = "Nostr Connect (macOS)";
productReference = 310DD9142B1484E100007E96 /* Nostr Connect.app */;
productType = "com.apple.product-type.application";
};
310DD9202B1484E100007E96 /* Nostr Connect Extension (iOS) */ = {
isa = PBXNativeTarget;
buildConfigurationList = 310DD9422B1484E100007E96 /* Build configuration list for PBXNativeTarget "Nostr Connect Extension (iOS)" */;
buildPhases = (
310DD91D2B1484E100007E96 /* Sources */,
310DD91E2B1484E100007E96 /* Frameworks */,
310DD91F2B1484E100007E96 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "Nostr Connect Extension (iOS)";
productName = "Nostr Connect Extension (iOS)";
productReference = 310DD9212B1484E100007E96 /* Nostr Connect Extension.appex */;
productType = "com.apple.product-type.app-extension";
};
310DD92A2B1484E100007E96 /* Nostr Connect Extension (macOS) */ = {
isa = PBXNativeTarget;
buildConfigurationList = 310DD9492B1484E100007E96 /* Build configuration list for PBXNativeTarget "Nostr Connect Extension (macOS)" */;
buildPhases = (
310DD9272B1484E100007E96 /* Sources */,
310DD9282B1484E100007E96 /* Frameworks */,
310DD9292B1484E100007E96 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "Nostr Connect Extension (macOS)";
productName = "Nostr Connect Extension (macOS)";
productReference = 310DD92B2B1484E100007E96 /* Nostr Connect Extension.appex */;
productType = "com.apple.product-type.app-extension";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
310DD8EF2B1484E000007E96 /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1500;
LastUpgradeCheck = 1500;
TargetAttributes = {
310DD9012B1484E100007E96 = {
CreatedOnToolsVersion = 15.0;
};
310DD9132B1484E100007E96 = {
CreatedOnToolsVersion = 15.0;
};
310DD9202B1484E100007E96 = {
CreatedOnToolsVersion = 15.0;
};
310DD92A2B1484E100007E96 = {
CreatedOnToolsVersion = 15.0;
};
};
};
buildConfigurationList = 310DD8F22B1484E000007E96 /* Build configuration list for PBXProject "Nostr Connect" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 310DD8EE2B1484E000007E96;
productRefGroup = 310DD9032B1484E100007E96 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
310DD9012B1484E100007E96 /* Nostr Connect (iOS) */,
310DD9132B1484E100007E96 /* Nostr Connect (macOS) */,
310DD9202B1484E100007E96 /* Nostr Connect Extension (iOS) */,
310DD92A2B1484E100007E96 /* Nostr Connect Extension (macOS) */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
310DD9002B1484E100007E96 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
310DD9342B1484E100007E96 /* Icon.png in Resources */,
310DD90B2B1484E100007E96 /* LaunchScreen.storyboard in Resources */,
310DD9322B1484E100007E96 /* Main.html in Resources */,
310DD9382B1484E100007E96 /* Script.js in Resources */,
310DD93C2B1484E100007E96 /* Assets.xcassets in Resources */,
310DD90E2B1484E100007E96 /* Main.storyboard in Resources */,
310DD9362B1484E100007E96 /* Style.css in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
310DD9122B1484E100007E96 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
310DD9352B1484E100007E96 /* Icon.png in Resources */,
310DD9372B1484E100007E96 /* Style.css in Resources */,
310DD91A2B1484E100007E96 /* Main.storyboard in Resources */,
310DD9392B1484E100007E96 /* Script.js in Resources */,
310DD93D2B1484E100007E96 /* Assets.xcassets in Resources */,
310DD9332B1484E100007E96 /* Main.html in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
310DD91F2B1484E100007E96 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
310DD9712B1484E100007E96 /* popup.build.js in Resources */,
310DD96C2B1484E100007E96 /* prompt.html in Resources */,
310DD9672B1484E100007E96 /* popup.html in Resources */,
310DD96D2B1484E100007E96 /* style.css in Resources */,
310DD96A2B1484E100007E96 /* content-script.build.js in Resources */,
310DD96E2B1484E100007E96 /* manifest.json in Resources */,
310DD96F2B1484E100007E96 /* prompt.build.js in Resources */,
310DD9682B1484E100007E96 /* options.build.js in Resources */,
310DD9702B1484E100007E96 /* options.html in Resources */,
310DD96B2B1484E100007E96 /* icons in Resources */,
310DD9692B1484E100007E96 /* background.build.js in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
310DD9292B1484E100007E96 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
310DD9662B1484E100007E96 /* popup.build.js in Resources */,
310DD9612B1484E100007E96 /* prompt.html in Resources */,
310DD95C2B1484E100007E96 /* popup.html in Resources */,
310DD9622B1484E100007E96 /* style.css in Resources */,
310DD95F2B1484E100007E96 /* content-script.build.js in Resources */,
310DD9632B1484E100007E96 /* manifest.json in Resources */,
310DD9642B1484E100007E96 /* prompt.build.js in Resources */,
310DD95D2B1484E100007E96 /* options.build.js in Resources */,
310DD9652B1484E100007E96 /* options.html in Resources */,
310DD9602B1484E100007E96 /* icons in Resources */,
310DD95E2B1484E100007E96 /* background.build.js in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
310DD8FE2B1484E100007E96 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
310DD93A2B1484E100007E96 /* ViewController.swift in Sources */,
310DD9062B1484E100007E96 /* AppDelegate.swift in Sources */,
310DD9082B1484E100007E96 /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
310DD9102B1484E100007E96 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
310DD93B2B1484E100007E96 /* ViewController.swift in Sources */,
310DD9172B1484E100007E96 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
310DD91D2B1484E100007E96 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
310DD93E2B1484E100007E96 /* SafariWebExtensionHandler.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
310DD9272B1484E100007E96 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
310DD93F2B1484E100007E96 /* SafariWebExtensionHandler.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
310DD9242B1484E100007E96 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 310DD9202B1484E100007E96 /* Nostr Connect Extension (iOS) */;
targetProxy = 310DD9232B1484E100007E96 /* PBXContainerItemProxy */;
};
310DD92E2B1484E100007E96 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 310DD92A2B1484E100007E96 /* Nostr Connect Extension (macOS) */;
targetProxy = 310DD92D2B1484E100007E96 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
310DD8F52B1484E000007E96 /* Main.html */ = {
isa = PBXVariantGroup;
children = (
310DD8F62B1484E000007E96 /* Base */,
);
name = Main.html;
sourceTree = "<group>";
};
310DD9092B1484E100007E96 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
310DD90A2B1484E100007E96 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
310DD90C2B1484E100007E96 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
310DD90D2B1484E100007E96 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
310DD9182B1484E100007E96 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
310DD9192B1484E100007E96 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
310DD9402B1484E100007E96 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
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;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
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;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
310DD9412B1484E100007E96 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
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;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
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;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SWIFT_COMPILATION_MODE = wholemodule;
};
name = Release;
};
310DD9432B1484E100007E96 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (Extension)/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Nostr Connect Extension";
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
);
PRODUCT_BUNDLE_IDENTIFIER = "com.github.Nostr-Connect.Extension";
PRODUCT_NAME = "Nostr Connect Extension";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
310DD9442B1484E100007E96 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (Extension)/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Nostr Connect Extension";
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
);
PRODUCT_BUNDLE_IDENTIFIER = "com.github.Nostr-Connect.Extension";
PRODUCT_NAME = "Nostr Connect Extension";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
310DD9472B1484E100007E96 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (App)/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Nostr Connect";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
"-framework",
WebKit,
);
PRODUCT_BUNDLE_IDENTIFIER = "com.github.Nostr-Connect";
PRODUCT_NAME = "Nostr Connect";
SDKROOT = iphoneos;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
310DD9482B1484E100007E96 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (App)/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Nostr Connect";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
"-framework",
WebKit,
);
PRODUCT_BUNDLE_IDENTIFIER = "com.github.Nostr-Connect";
PRODUCT_NAME = "Nostr Connect";
SDKROOT = iphoneos;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
310DD94A2B1484E100007E96 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "macOS (Extension)/Nostr Connect.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "macOS (Extension)/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Nostr Connect 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 = "com.github.Nostr-Connect.Extension";
PRODUCT_NAME = "Nostr Connect Extension";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
310DD94B2B1484E100007E96 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "macOS (Extension)/Nostr Connect.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "macOS (Extension)/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Nostr Connect 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 = "com.github.Nostr-Connect.Extension";
PRODUCT_NAME = "Nostr Connect Extension";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
};
name = Release;
};
310DD94E2B1484E100007E96 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "macOS (App)/Nostr Connect.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "macOS (App)/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Nostr Connect";
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 = "com.github.Nostr-Connect";
PRODUCT_NAME = "Nostr Connect";
SDKROOT = macosx;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
310DD94F2B1484E100007E96 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "macOS (App)/Nostr Connect.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "macOS (App)/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Nostr Connect";
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 = "com.github.Nostr-Connect";
PRODUCT_NAME = "Nostr Connect";
SDKROOT = macosx;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
310DD8F22B1484E000007E96 /* Build configuration list for PBXProject "Nostr Connect" */ = {
isa = XCConfigurationList;
buildConfigurations = (
310DD9402B1484E100007E96 /* Debug */,
310DD9412B1484E100007E96 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
310DD9422B1484E100007E96 /* Build configuration list for PBXNativeTarget "Nostr Connect Extension (iOS)" */ = {
isa = XCConfigurationList;
buildConfigurations = (
310DD9432B1484E100007E96 /* Debug */,
310DD9442B1484E100007E96 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
310DD9462B1484E100007E96 /* Build configuration list for PBXNativeTarget "Nostr Connect (iOS)" */ = {
isa = XCConfigurationList;
buildConfigurations = (
310DD9472B1484E100007E96 /* Debug */,
310DD9482B1484E100007E96 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
310DD9492B1484E100007E96 /* Build configuration list for PBXNativeTarget "Nostr Connect Extension (macOS)" */ = {
isa = XCConfigurationList;
buildConfigurations = (
310DD94A2B1484E100007E96 /* Debug */,
310DD94B2B1484E100007E96 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
310DD94D2B1484E100007E96 /* Build configuration list for PBXNativeTarget "Nostr Connect (macOS)" */ = {
isa = XCConfigurationList;
buildConfigurations = (
310DD94E2B1484E100007E96 /* Debug */,
310DD94F2B1484E100007E96 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 310DD8EF2B1484E000007E96 /* Project object */;
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

View File

@@ -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>

View File

@@ -0,0 +1,19 @@
<?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>Nostr Connect (iOS).xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>Nostr Connect (macOS).xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
</dict>
</dict>
</plist>

View File

@@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,74 @@
{
"images" : [
{
"size" : "1024x1024",
"idiom" : "universal",
"filename" : "universal-icon-1024@1x.png",
"platform" : "ios"
},
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "mac-icon-16@1x.png",
"scale" : "1x"
},
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "mac-icon-16@2x.png",
"scale" : "2x"
},
{
"size" : "32x32",
"idiom" : "mac",
"filename" : "mac-icon-32@1x.png",
"scale" : "1x"
},
{
"size" : "32x32",
"idiom" : "mac",
"filename" : "mac-icon-32@2x.png",
"scale" : "2x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "mac-icon-128@1x.png",
"scale" : "1x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "mac-icon-128@2x.png",
"scale" : "2x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "mac-icon-256@1x.png",
"scale" : "1x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "mac-icon-256@2x.png",
"scale" : "2x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "mac-icon-512@1x.png",
"scale" : "1x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "mac-icon-512@2x.png",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 KiB

View File

@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "icon128.png"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,20 @@
<!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="Nostr Connect Icon">
<p class="platform-ios">You can turn on Nostr Connects Safari extension in Settings.</p>
<p class="platform-mac state-unknown">You can turn on Nostr Connects extension in Safari Extensions preferences.</p>
<p class="platform-mac state-on">Nostr Connects extension is currently on. You can turn it off in Safari Extensions preferences.</p>
<p class="platform-mac state-off">Nostr Connects extension is currently off. You can turn it on in Safari Extensions preferences.</p>
<button class="platform-mac open-preferences">Quit and Open Safari Extensions Preferences…</button>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,24 @@
function show(platform, enabled, useSettingsInsteadOfPreferences) {
document.body.classList.add(`platform-${platform}`);
if (useSettingsInsteadOfPreferences) {
document.getElementsByClassName('platform-mac state-on')[0].innerText = "Nostr Connects extension is currently on. You can turn it off in the Extensions section of Safari Settings.";
document.getElementsByClassName('platform-mac state-off')[0].innerText = "Nostr Connects extension is currently off. You can turn it on in the Extensions section of Safari Settings.";
document.getElementsByClassName('platform-mac state-unknown')[0].innerText = "You can turn on Nostr Connects extension in the Extensions section of Safari Settings.";
document.getElementsByClassName('platform-mac open-preferences')[0].innerText = "Quit and Open Safari Settings…";
}
if (typeof enabled === "boolean") {
document.body.classList.toggle(`state-on`, enabled);
document.body.classList.toggle(`state-off`, !enabled);
} else {
document.body.classList.remove(`state-on`);
document.body.classList.remove(`state-off`);
}
}
function openPreferences() {
webkit.messageHandlers.controller.postMessage("open-preferences");
}
document.querySelector("button.open-preferences").addEventListener("click", openPreferences);

View File

@@ -0,0 +1,61 @@
* {
-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(.platform-mac, .platform-ios) :is(.platform-mac, .platform-ios) {
display: none;
}
body.platform-ios .platform-mac {
display: none;
}
body.platform-mac .platform-ios {
display: none;
}
body.platform-ios .platform-mac {
display: none;
}
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;
}

View File

@@ -0,0 +1,81 @@
//
// ViewController.swift
// Shared (App)
//
// Created by Phong on 27/11/2023.
//
import WebKit
#if os(iOS)
import UIKit
typealias PlatformViewController = UIViewController
#elseif os(macOS)
import Cocoa
import SafariServices
typealias PlatformViewController = NSViewController
#endif
let extensionBundleIdentifier = "com.github.Nostr-Connect.Extension"
class ViewController: PlatformViewController, WKNavigationDelegate, WKScriptMessageHandler {
@IBOutlet var webView: WKWebView!
override func viewDidLoad() {
super.viewDidLoad()
self.webView.navigationDelegate = self
#if os(iOS)
self.webView.scrollView.isScrollEnabled = false
#endif
self.webView.configuration.userContentController.add(self, name: "controller")
self.webView.loadFileURL(Bundle.main.url(forResource: "Main", withExtension: "html")!, allowingReadAccessTo: Bundle.main.resourceURL!)
}
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
#if os(iOS)
webView.evaluateJavaScript("show('ios')")
#elseif os(macOS)
webView.evaluateJavaScript("show('mac')")
SFSafariExtensionManager.getStateOfSafariExtension(withIdentifier: extensionBundleIdentifier) { (state, error) in
guard let state = state, error == nil else {
// Insert code to inform the user that something went wrong.
return
}
DispatchQueue.main.async {
if #available(macOS 13, *) {
webView.evaluateJavaScript("show('mac', \(state.isEnabled), true)")
} else {
webView.evaluateJavaScript("show('mac', \(state.isEnabled), false)")
}
}
}
#endif
}
func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
#if os(macOS)
if (message.body as! String != "open-preferences") {
return
}
SFSafariApplication.showPreferencesForExtension(withIdentifier: extensionBundleIdentifier) { error in
guard error == nil else {
// Insert code to inform the user that something went wrong.
return
}
DispatchQueue.main.async {
NSApp.terminate(self)
}
}
#endif
}
}

View File

@@ -0,0 +1,38 @@
//
// SafariWebExtensionHandler.swift
// Shared (Extension)
//
// Created by Phong on 27/11/2023.
//
import SafariServices
import os.log
class SafariWebExtensionHandler: NSObject, NSExtensionRequestHandling {
func beginRequest(with context: NSExtensionContext) {
let request = context.inputItems.first as? NSExtensionItem
let profile: UUID?
if #available(iOS 17.0, macOS 14.0, *) {
profile = request?.userInfo?[SFExtensionProfileKey] as? UUID
} else {
profile = request?.userInfo?["profile"] as? UUID
}
let message: Any?
if #available(iOS 17.0, macOS 14.0, *) {
message = request?.userInfo?[SFExtensionMessageKey]
} else {
message = request?.userInfo?["message"]
}
os_log(.default, "Received message from browser.runtime.sendNativeMessage: %@ (profile: %@)", String(describing: message), profile?.uuidString ?? "none")
let response = NSExtensionItem()
response.userInfo = [ SFExtensionMessageKey: [ "echo": message ] ]
context.completeRequest(returningItems: [ response ], completionHandler: nil)
}
}

View File

@@ -0,0 +1,24 @@
//
// AppDelegate.swift
// iOS (App)
//
// Created by Phong on 27/11/2023.
//
import UIKit
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
}

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19085" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19082"/>
<capability name="Image references" minToolsVersion="12.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="6HG-Um-bch">
<rect key="frame" x="142" y="385" width="128" height="128"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<imageReference key="image" image="LargeIcon"/>
</imageView>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
<resources>
<image name="LargeIcon" width="128" height="128"/>
</resources>
</document>

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<wkWebView contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="RDB-ib-igF">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<wkWebViewConfiguration key="configuration">
<audiovisualMediaTypes key="mediaTypesRequiringUserActionForPlayback" none="YES"/>
<wkPreferences key="preferences"/>
</wkWebViewConfiguration>
</wkWebView>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
<connections>
<outlet property="webView" destination="RDB-ib-igF" id="avx-RC-qRB"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>

View File

@@ -0,0 +1,27 @@
<?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>SFSafariWebExtensionConverterVersion</key>
<string>15.0</string>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
</dict>
</dict>
</plist>

View File

@@ -0,0 +1,18 @@
//
// SceneDelegate.swift
// iOS (App)
//
// Created by Phong on 27/11/2023.
//
import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let _ = (scene as? UIWindowScene) else { return }
}
}

View File

@@ -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>$(PRODUCT_MODULE_NAME).SafariWebExtensionHandler</string>
</dict>
</dict>
</plist>

View File

@@ -0,0 +1,21 @@
//
// AppDelegate.swift
// macOS (App)
//
// Created by Phong on 27/11/2023.
//
import Cocoa
@main
class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_ notification: Notification) {
// Override point for customization after application launch.
}
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}
}

View File

@@ -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="Nostr Connect" id="1Xt-HY-uBw">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Nostr Connect" systemMenu="apple" id="uQy-DD-JDr">
<items>
<menuItem title="About Nostr Connect" 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 Nostr Connect" 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 Nostr Connect" 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="Nostr Connect 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="target"/>
<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="Nostr Connect" 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="target" 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>

View File

@@ -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>SFSafariWebExtensionConverterVersion</key>
<string>15.0</string>
</dict>
</plist>

View File

@@ -0,0 +1,12 @@
<?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/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>

View File

@@ -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>$(PRODUCT_MODULE_NAME).SafariWebExtensionHandler</string>
</dict>
</dict>
</plist>

View File

@@ -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>