Add signer action extension with shared keychain and data store

This commit is contained in:
2025-01-26 13:27:19 -05:00
parent aae25543e0
commit f9cab6f498
12 changed files with 459 additions and 30 deletions

View File

@@ -8,6 +8,9 @@
/* Begin PBXBuildFile section */
3AA481172D3ECDFD0052A05C /* NostrSDK in Frameworks */ = {isa = PBXBuildFile; productRef = 3AA481162D3ECDFD0052A05C /* NostrSDK */; };
3AC2CDAA2D4683AD00A6DEDB /* UniformTypeIdentifiers.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AC2CDA92D4683AD00A6DEDB /* UniformTypeIdentifiers.framework */; };
3AC2CDB62D4683AD00A6DEDB /* YetiSignerAction.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 3AC2CDA72D4683AD00A6DEDB /* YetiSignerAction.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
3AC2CDC32D468B7800A6DEDB /* NostrSDK in Frameworks */ = {isa = PBXBuildFile; productRef = 3AC2CDC22D468B7800A6DEDB /* NostrSDK */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -25,12 +28,35 @@
remoteGlobalIDString = 3AA480B72D3DECF10052A05C;
remoteInfo = Yeti;
};
3AC2CDB42D4683AD00A6DEDB /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 3AA480B02D3DECF10052A05C /* Project object */;
proxyType = 1;
remoteGlobalIDString = 3AC2CDA62D4683AD00A6DEDB;
remoteInfo = YetiSignerAction;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
3AC2CDB72D4683AD00A6DEDB /* Embed Foundation Extensions */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 13;
files = (
3AC2CDB62D4683AD00A6DEDB /* YetiSignerAction.appex in Embed Foundation Extensions */,
);
name = "Embed Foundation Extensions";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
3AA480B82D3DECF10052A05C /* Yeti.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Yeti.app; sourceTree = BUILT_PRODUCTS_DIR; };
3AA480CA2D3DECF20052A05C /* YetiTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = YetiTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3AA480D42D3DECF20052A05C /* YetiUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = YetiUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3AC2CDA72D4683AD00A6DEDB /* YetiSignerAction.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = YetiSignerAction.appex; sourceTree = BUILT_PRODUCTS_DIR; };
3AC2CDA92D4683AD00A6DEDB /* UniformTypeIdentifiers.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UniformTypeIdentifiers.framework; path = System/Library/Frameworks/UniformTypeIdentifiers.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
@@ -41,6 +67,27 @@
);
target = 3AA480B72D3DECF10052A05C /* Yeti */;
};
3AAAFACC2D47C0180065A065 /* Exceptions for "Yeti" folder in "YetiSignerAction" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Models/GeneralSettingsModel.swift,
Models/NostrClientModel.swift,
Models/ProfileSettingsModel.swift,
Models/SignerRequestModel.swift,
Models/SignEventPermissionModel.swift,
Models/SigningPolicy.swift,
Models/YetiModelContainer.swift,
Utilities/PrivateKeySecureStorage.swift,
);
target = 3AC2CDA62D4683AD00A6DEDB /* YetiSignerAction */;
};
3AC2CDBB2D4683AD00A6DEDB /* Exceptions for "YetiSignerAction" folder in "YetiSignerAction" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Info.plist,
);
target = 3AC2CDA62D4683AD00A6DEDB /* YetiSignerAction */;
};
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
/* Begin PBXFileSystemSynchronizedRootGroup section */
@@ -48,6 +95,7 @@
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
3AA481082D3DF3E40052A05C /* Exceptions for "Yeti" folder in "Yeti" target */,
3AAAFACC2D47C0180065A065 /* Exceptions for "Yeti" folder in "YetiSignerAction" target */,
);
path = Yeti;
sourceTree = "<group>";
@@ -62,6 +110,14 @@
path = YetiUITests;
sourceTree = "<group>";
};
3AC2CDAB2D4683AD00A6DEDB /* YetiSignerAction */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
3AC2CDBB2D4683AD00A6DEDB /* Exceptions for "YetiSignerAction" folder in "YetiSignerAction" target */,
);
path = YetiSignerAction;
sourceTree = "<group>";
};
/* End PBXFileSystemSynchronizedRootGroup section */
/* Begin PBXFrameworksBuildPhase section */
@@ -87,6 +143,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
3AC2CDA42D4683AD00A6DEDB /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
3AC2CDC32D468B7800A6DEDB /* NostrSDK in Frameworks */,
3AC2CDAA2D4683AD00A6DEDB /* UniformTypeIdentifiers.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
@@ -96,6 +161,8 @@
3AA480BA2D3DECF10052A05C /* Yeti */,
3AA480CD2D3DECF20052A05C /* YetiTests */,
3AA480D72D3DECF20052A05C /* YetiUITests */,
3AC2CDAB2D4683AD00A6DEDB /* YetiSignerAction */,
3AC2CDA82D4683AD00A6DEDB /* Frameworks */,
3AA480B92D3DECF10052A05C /* Products */,
);
sourceTree = "<group>";
@@ -106,10 +173,19 @@
3AA480B82D3DECF10052A05C /* Yeti.app */,
3AA480CA2D3DECF20052A05C /* YetiTests.xctest */,
3AA480D42D3DECF20052A05C /* YetiUITests.xctest */,
3AC2CDA72D4683AD00A6DEDB /* YetiSignerAction.appex */,
);
name = Products;
sourceTree = "<group>";
};
3AC2CDA82D4683AD00A6DEDB /* Frameworks */ = {
isa = PBXGroup;
children = (
3AC2CDA92D4683AD00A6DEDB /* UniformTypeIdentifiers.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@@ -120,11 +196,13 @@
3AA480B42D3DECF10052A05C /* Sources */,
3AA480B52D3DECF10052A05C /* Frameworks */,
3AA480B62D3DECF10052A05C /* Resources */,
3AC2CDB72D4683AD00A6DEDB /* Embed Foundation Extensions */,
);
buildRules = (
);
dependencies = (
3AA480FA2D3DF10E0052A05C /* PBXTargetDependency */,
3AC2CDB52D4683AD00A6DEDB /* PBXTargetDependency */,
);
fileSystemSynchronizedGroups = (
3AA480BA2D3DECF10052A05C /* Yeti */,
@@ -185,6 +263,29 @@
productReference = 3AA480D42D3DECF20052A05C /* YetiUITests.xctest */;
productType = "com.apple.product-type.bundle.ui-testing";
};
3AC2CDA62D4683AD00A6DEDB /* YetiSignerAction */ = {
isa = PBXNativeTarget;
buildConfigurationList = 3AC2CDBA2D4683AD00A6DEDB /* Build configuration list for PBXNativeTarget "YetiSignerAction" */;
buildPhases = (
3AC2CDA32D4683AD00A6DEDB /* Sources */,
3AC2CDA42D4683AD00A6DEDB /* Frameworks */,
3AC2CDA52D4683AD00A6DEDB /* Resources */,
);
buildRules = (
);
dependencies = (
);
fileSystemSynchronizedGroups = (
3AC2CDAB2D4683AD00A6DEDB /* YetiSignerAction */,
);
name = YetiSignerAction;
packageProductDependencies = (
3AC2CDC22D468B7800A6DEDB /* NostrSDK */,
);
productName = YetiSignerAction;
productReference = 3AC2CDA72D4683AD00A6DEDB /* YetiSignerAction.appex */;
productType = "com.apple.product-type.app-extension";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
@@ -206,6 +307,9 @@
CreatedOnToolsVersion = 16.2;
TestTargetID = 3AA480B72D3DECF10052A05C;
};
3AC2CDA62D4683AD00A6DEDB = {
CreatedOnToolsVersion = 16.2;
};
};
};
buildConfigurationList = 3AA480B32D3DECF10052A05C /* Build configuration list for PBXProject "Yeti" */;
@@ -229,6 +333,7 @@
3AA480B72D3DECF10052A05C /* Yeti */,
3AA480C92D3DECF20052A05C /* YetiTests */,
3AA480D32D3DECF20052A05C /* YetiUITests */,
3AC2CDA62D4683AD00A6DEDB /* YetiSignerAction */,
);
};
/* End PBXProject section */
@@ -255,6 +360,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
3AC2CDA52D4683AD00A6DEDB /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
@@ -279,6 +391,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
3AC2CDA32D4683AD00A6DEDB /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
@@ -304,6 +423,11 @@
isa = PBXTargetDependency;
productRef = 3AA481012D3DF20D0052A05C /* SwiftLintBuildToolPlugin */;
};
3AC2CDB52D4683AD00A6DEDB /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 3AC2CDA62D4683AD00A6DEDB /* YetiSignerAction */;
targetProxy = 3AC2CDB42D4683AD00A6DEDB /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
@@ -433,6 +557,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = Yeti/Yeti.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"Yeti/Preview Content\"";
@@ -464,6 +589,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = Yeti/Yeti.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"Yeti/Preview Content\"";
@@ -558,6 +684,58 @@
};
name = Release;
};
3AC2CDB82D4683AD00A6DEDB /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = YetiSignerAction/YetiSignerAction.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = S99A5B637C;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = YetiSignerAction/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Sign Nostr Event";
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = xyz.tyiu.Yeti.YetiSignerAction;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
3AC2CDB92D4683AD00A6DEDB /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = YetiSignerAction/YetiSignerAction.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = S99A5B637C;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = YetiSignerAction/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Sign Nostr Event";
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = xyz.tyiu.Yeti.YetiSignerAction;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@@ -597,6 +775,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
3AC2CDBA2D4683AD00A6DEDB /* Build configuration list for PBXNativeTarget "YetiSignerAction" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3AC2CDB82D4683AD00A6DEDB /* Debug */,
3AC2CDB92D4683AD00A6DEDB /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
/* Begin XCRemoteSwiftPackageReference section */
@@ -639,6 +826,11 @@
package = 3AA481152D3ECDFD0052A05C /* XCRemoteSwiftPackageReference "nostr-sdk-ios" */;
productName = NostrSDK;
};
3AC2CDC22D468B7800A6DEDB /* NostrSDK */ = {
isa = XCSwiftPackageProductDependency;
package = 3AA481152D3ECDFD0052A05C /* XCRemoteSwiftPackageReference "nostr-sdk-ios" */;
productName = NostrSDK;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 3AA480B02D3DECF10052A05C /* Project object */;