Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-04-19 00:46:00 +02:00
parent ce19d00de3
commit a11d88d365
14 changed files with 2947 additions and 76 deletions
+139 -2
View File
@@ -14,8 +14,20 @@
A10000000000000000000005 /* MailRootView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A20000000000000000000005 /* MailRootView.swift */; };
A10000000000000000000006 /* AppNavigationCommand.swift in Sources */ = {isa = PBXBuildFile; fileRef = A20000000000000000000007 /* AppNavigationCommand.swift */; };
A10000000000000000000007 /* AppControlService.swift in Sources */ = {isa = PBXBuildFile; fileRef = A20000000000000000000008 /* AppControlService.swift */; };
A10000000000000000000008 /* AppNavigationCommandTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A20000000000000000000009 /* AppNavigationCommandTests.swift */; };
A10000000000000000000009 /* AppViewModelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A2000000000000000000000A /* AppViewModelTests.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
A90000000000000000000001 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = A60000000000000000000001 /* Project object */;
proxyType = 1;
remoteGlobalIDString = A50000000000000000000001;
remoteInfo = SocialIO;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
A20000000000000000000001 /* SocialIOApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SocialIOApp.swift; sourceTree = "<group>"; };
A20000000000000000000002 /* AppViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppViewModel.swift; sourceTree = "<group>"; };
@@ -25,6 +37,9 @@
A20000000000000000000006 /* SocialIO.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SocialIO.app; sourceTree = BUILT_PRODUCTS_DIR; };
A20000000000000000000007 /* AppNavigationCommand.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppNavigationCommand.swift; sourceTree = "<group>"; };
A20000000000000000000008 /* AppControlService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppControlService.swift; sourceTree = "<group>"; };
A20000000000000000000009 /* AppNavigationCommandTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppNavigationCommandTests.swift; sourceTree = "<group>"; };
A2000000000000000000000A /* AppViewModelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppViewModelTests.swift; sourceTree = "<group>"; };
A2000000000000000000000B /* SocialIOTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SocialIOTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -35,6 +50,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
A30000000000000000000004 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
@@ -50,6 +72,7 @@
isa = PBXGroup;
children = (
A40000000000000000000003 /* Sources */,
A4000000000000000000000B /* Tests */,
);
name = SocialIO;
sourceTree = "<group>";
@@ -112,6 +135,7 @@
isa = PBXGroup;
children = (
A20000000000000000000006 /* SocialIO.app */,
A2000000000000000000000B /* SocialIOTests.xctest */,
);
name = Products;
sourceTree = "<group>";
@@ -124,6 +148,15 @@
path = Mail;
sourceTree = "<group>";
};
A4000000000000000000000B /* Tests */ = {
isa = PBXGroup;
children = (
A20000000000000000000009 /* AppNavigationCommandTests.swift */,
A2000000000000000000000A /* AppViewModelTests.swift */,
);
path = Tests;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@@ -144,6 +177,24 @@
productReference = A20000000000000000000006 /* SocialIO.app */;
productType = "com.apple.product-type.application";
};
A50000000000000000000002 /* SocialIOTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = A70000000000000000000003 /* Build configuration list for PBXNativeTarget "SocialIOTests" */;
buildPhases = (
A30000000000000000000006 /* Sources */,
A30000000000000000000004 /* Frameworks */,
A30000000000000000000005 /* Resources */,
);
buildRules = (
);
dependencies = (
A90000000000000000000002 /* PBXTargetDependency */,
);
name = SocialIOTests;
productName = SocialIOTests;
productReference = A2000000000000000000000B /* SocialIOTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
@@ -157,6 +208,10 @@
A50000000000000000000001 = {
CreatedOnToolsVersion = 26.0;
};
A50000000000000000000002 = {
CreatedOnToolsVersion = 26.0;
TestTargetID = A50000000000000000000001;
};
};
};
buildConfigurationList = A70000000000000000000001 /* Build configuration list for PBXProject "SocialIO" */;
@@ -173,6 +228,7 @@
projectRoot = "";
targets = (
A50000000000000000000001 /* SocialIO */,
A50000000000000000000002 /* SocialIOTests */,
);
};
/* End PBXProject section */
@@ -185,6 +241,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
A30000000000000000000005 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
@@ -202,8 +265,25 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
A30000000000000000000006 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A10000000000000000000008 /* AppNavigationCommandTests.swift in Sources */,
A10000000000000000000009 /* AppViewModelTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
A90000000000000000000002 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = A50000000000000000000001 /* SocialIO */;
targetProxy = A90000000000000000000001 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
A80000000000000000000001 /* Debug */ = {
isa = XCBuildConfiguration;
@@ -267,9 +347,11 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "";
ENABLE_TESTABILITY = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = SocialIO;
INFOPLIST_KEY_CFBundleDisplayName = "social.io";
INFOPLIST_KEY_CFBundleName = "social.io";
INFOPLIST_KEY_CFBundleURLTypes = (
{
CFBundleTypeRole = Editor;
@@ -307,7 +389,8 @@
DEVELOPMENT_ASSET_PATHS = "";
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = SocialIO;
INFOPLIST_KEY_CFBundleDisplayName = "social.io";
INFOPLIST_KEY_CFBundleName = "social.io";
INFOPLIST_KEY_CFBundleURLTypes = (
{
CFBundleTypeRole = Editor;
@@ -336,6 +419,51 @@
};
name = Release;
};
A80000000000000000000005 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
ENABLE_TESTABILITY = YES;
GENERATE_INFOPLIST_FILE = YES;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
PRODUCT_BUNDLE_IDENTIFIER = io.social.app.tests;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = auto;
SUPPORTED_PLATFORMS = macosx;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SocialIO.app/Contents/MacOS/SocialIO";
};
name = Debug;
};
A80000000000000000000006 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
PRODUCT_BUNDLE_IDENTIFIER = io.social.app.tests;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = auto;
SUPPORTED_PLATFORMS = macosx;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SocialIO.app/Contents/MacOS/SocialIO";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@@ -357,6 +485,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
A70000000000000000000003 /* Build configuration list for PBXNativeTarget "SocialIOTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A80000000000000000000005 /* Debug */,
A80000000000000000000006 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = A60000000000000000000001 /* Project object */;