From 3ffb137d08a338b92ebacee3060e207eccaf37a4 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Wed, 4 Jun 2025 21:33:30 +0100 Subject: [PATCH] add swift nio ssh --- .../AccentColor.colorset/Contents.json | 0 .../AppIcon.appiconset/Contents.json | 0 .../Assets.xcassets/Contents.json | 0 ShhShell.xcodeproj/project.pbxproj | 122 +++++++++++++----- .../xcshareddata/swiftpm/Package.resolved | 69 ++++++++++ ShhShell/{ => Views}/ContentView.swift | 0 6 files changed, 161 insertions(+), 30 deletions(-) rename {ShhShell => Resources}/Assets.xcassets/AccentColor.colorset/Contents.json (100%) rename {ShhShell => Resources}/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename {ShhShell => Resources}/Assets.xcassets/Contents.json (100%) create mode 100644 ShhShell.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved rename ShhShell/{ => Views}/ContentView.swift (100%) diff --git a/ShhShell/Assets.xcassets/AccentColor.colorset/Contents.json b/Resources/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from ShhShell/Assets.xcassets/AccentColor.colorset/Contents.json rename to Resources/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/ShhShell/Assets.xcassets/AppIcon.appiconset/Contents.json b/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from ShhShell/Assets.xcassets/AppIcon.appiconset/Contents.json rename to Resources/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/ShhShell/Assets.xcassets/Contents.json b/Resources/Assets.xcassets/Contents.json similarity index 100% rename from ShhShell/Assets.xcassets/Contents.json rename to Resources/Assets.xcassets/Contents.json diff --git a/ShhShell.xcodeproj/project.pbxproj b/ShhShell.xcodeproj/project.pbxproj index 28458d9..d5c8d0e 100644 --- a/ShhShell.xcodeproj/project.pbxproj +++ b/ShhShell.xcodeproj/project.pbxproj @@ -6,6 +6,16 @@ objectVersion = 77; objects = { +/* Begin PBXBuildFile section */ + A92538C82DEE0742007E0A18 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A92538C52DEE0742007E0A18 /* ContentView.swift */; }; + A92538C92DEE0742007E0A18 /* ShhShellApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = A92538C62DEE0742007E0A18 /* ShhShellApp.swift */; }; + A92538CA2DEE0742007E0A18 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A92538C42DEE0742007E0A18 /* Assets.xcassets */; }; + A92538CD2DEE0744007E0A18 /* ShhShellTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A92538CB2DEE0744007E0A18 /* ShhShellTests.swift */; }; + A92538D12DEE0745007E0A18 /* ShhShellUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A92538CE2DEE0745007E0A18 /* ShhShellUITests.swift */; }; + A92538D22DEE0745007E0A18 /* ShhShellUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A92538CF2DEE0745007E0A18 /* ShhShellUITestsLaunchTests.swift */; }; + A9C897612DF0E49F00EF9A5F /* NIOSSH in Frameworks */ = {isa = PBXBuildFile; productRef = A9C897602DF0E49F00EF9A5F /* NIOSSH */; }; +/* End PBXBuildFile section */ + /* Begin PBXContainerItemProxy section */ A92538A82DEE06DE007E0A18 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; @@ -27,31 +37,20 @@ A925389A2DEE06DC007E0A18 /* ShhShell.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ShhShell.app; sourceTree = BUILT_PRODUCTS_DIR; }; A92538A72DEE06DE007E0A18 /* ShhShellTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ShhShellTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; A92538B12DEE06DE007E0A18 /* ShhShellUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ShhShellUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + A92538C42DEE0742007E0A18 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + A92538C52DEE0742007E0A18 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + A92538C62DEE0742007E0A18 /* ShhShellApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShhShellApp.swift; sourceTree = ""; }; + A92538CB2DEE0744007E0A18 /* ShhShellTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShhShellTests.swift; sourceTree = ""; }; + A92538CE2DEE0745007E0A18 /* ShhShellUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShhShellUITests.swift; sourceTree = ""; }; + A92538CF2DEE0745007E0A18 /* ShhShellUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShhShellUITestsLaunchTests.swift; sourceTree = ""; }; /* End PBXFileReference section */ -/* Begin PBXFileSystemSynchronizedRootGroup section */ - A925389C2DEE06DC007E0A18 /* ShhShell */ = { - isa = PBXFileSystemSynchronizedRootGroup; - path = ShhShell; - sourceTree = ""; - }; - A92538AA2DEE06DE007E0A18 /* ShhShellTests */ = { - isa = PBXFileSystemSynchronizedRootGroup; - path = ShhShellTests; - sourceTree = ""; - }; - A92538B42DEE06DE007E0A18 /* ShhShellUITests */ = { - isa = PBXFileSystemSynchronizedRootGroup; - path = ShhShellUITests; - sourceTree = ""; - }; -/* End PBXFileSystemSynchronizedRootGroup section */ - /* Begin PBXFrameworksBuildPhase section */ A92538972DEE06DC007E0A18 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + A9C897612DF0E49F00EF9A5F /* NIOSSH in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -75,9 +74,10 @@ A92538912DEE06DC007E0A18 = { isa = PBXGroup; children = ( - A925389C2DEE06DC007E0A18 /* ShhShell */, - A92538AA2DEE06DE007E0A18 /* ShhShellTests */, - A92538B42DEE06DE007E0A18 /* ShhShellUITests */, + A92538C72DEE0742007E0A18 /* ShhShell */, + A92538D42DEE0756007E0A18 /* Resources */, + A92538CC2DEE0744007E0A18 /* ShhShellTests */, + A92538D02DEE0745007E0A18 /* ShhShellUITests */, A925389B2DEE06DC007E0A18 /* Products */, ); sourceTree = ""; @@ -92,6 +92,48 @@ name = Products; sourceTree = ""; }; + A92538C72DEE0742007E0A18 /* ShhShell */ = { + isa = PBXGroup; + children = ( + A92538C62DEE0742007E0A18 /* ShhShellApp.swift */, + A92538D32DEE0749007E0A18 /* Views */, + ); + path = ShhShell; + sourceTree = ""; + }; + A92538CC2DEE0744007E0A18 /* ShhShellTests */ = { + isa = PBXGroup; + children = ( + A92538CB2DEE0744007E0A18 /* ShhShellTests.swift */, + ); + path = ShhShellTests; + sourceTree = ""; + }; + A92538D02DEE0745007E0A18 /* ShhShellUITests */ = { + isa = PBXGroup; + children = ( + A92538CE2DEE0745007E0A18 /* ShhShellUITests.swift */, + A92538CF2DEE0745007E0A18 /* ShhShellUITestsLaunchTests.swift */, + ); + path = ShhShellUITests; + sourceTree = ""; + }; + A92538D32DEE0749007E0A18 /* Views */ = { + isa = PBXGroup; + children = ( + A92538C52DEE0742007E0A18 /* ContentView.swift */, + ); + path = Views; + sourceTree = ""; + }; + A92538D42DEE0756007E0A18 /* Resources */ = { + isa = PBXGroup; + children = ( + A92538C42DEE0742007E0A18 /* Assets.xcassets */, + ); + path = Resources; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -107,11 +149,9 @@ ); dependencies = ( ); - fileSystemSynchronizedGroups = ( - A925389C2DEE06DC007E0A18 /* ShhShell */, - ); name = ShhShell; packageProductDependencies = ( + A9C897602DF0E49F00EF9A5F /* NIOSSH */, ); productName = ShhShell; productReference = A925389A2DEE06DC007E0A18 /* ShhShell.app */; @@ -130,9 +170,6 @@ dependencies = ( A92538A92DEE06DE007E0A18 /* PBXTargetDependency */, ); - fileSystemSynchronizedGroups = ( - A92538AA2DEE06DE007E0A18 /* ShhShellTests */, - ); name = ShhShellTests; packageProductDependencies = ( ); @@ -153,9 +190,6 @@ dependencies = ( A92538B32DEE06DE007E0A18 /* PBXTargetDependency */, ); - fileSystemSynchronizedGroups = ( - A92538B42DEE06DE007E0A18 /* ShhShellUITests */, - ); name = ShhShellUITests; packageProductDependencies = ( ); @@ -195,6 +229,9 @@ ); mainGroup = A92538912DEE06DC007E0A18; minimizedProjectReferenceProxies = 1; + packageReferences = ( + A9C8975F2DF0E49F00EF9A5F /* XCRemoteSwiftPackageReference "swift-nio-ssh" */, + ); preferredProjectObjectVersion = 77; productRefGroup = A925389B2DEE06DC007E0A18 /* Products */; projectDirPath = ""; @@ -212,6 +249,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + A92538CA2DEE0742007E0A18 /* Assets.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -236,6 +274,8 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + A92538C82DEE0742007E0A18 /* ContentView.swift in Sources */, + A92538C92DEE0742007E0A18 /* ShhShellApp.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -243,6 +283,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + A92538CD2DEE0744007E0A18 /* ShhShellTests.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -250,6 +291,8 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + A92538D12DEE0745007E0A18 /* ShhShellUITests.swift in Sources */, + A92538D22DEE0745007E0A18 /* ShhShellUITestsLaunchTests.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -558,6 +601,25 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + A9C8975F2DF0E49F00EF9A5F /* XCRemoteSwiftPackageReference "swift-nio-ssh" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/apple/swift-nio-ssh"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 0.10.0; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + A9C897602DF0E49F00EF9A5F /* NIOSSH */ = { + isa = XCSwiftPackageProductDependency; + package = A9C8975F2DF0E49F00EF9A5F /* XCRemoteSwiftPackageReference "swift-nio-ssh" */; + productName = NIOSSH; + }; +/* End XCSwiftPackageProductDependency section */ }; rootObject = A92538922DEE06DC007E0A18 /* Project object */; } diff --git a/ShhShell.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ShhShell.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000..35213c2 --- /dev/null +++ b/ShhShell.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,69 @@ +{ + "originHash" : "718e74679dc66d430cd4ebfd867d48d8f68dccad4333e0520c546427f9fee129", + "pins" : [ + { + "identity" : "swift-asn1", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-asn1.git", + "state" : { + "revision" : "a54383ada6cecde007d374f58f864e29370ba5c3", + "version" : "1.3.2" + } + }, + { + "identity" : "swift-atomics", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-atomics.git", + "state" : { + "revision" : "b601256eab081c0f92f059e12818ac1d4f178ff7", + "version" : "1.3.0" + } + }, + { + "identity" : "swift-collections", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-collections.git", + "state" : { + "revision" : "c1805596154bb3a265fd91b8ac0c4433b4348fb0", + "version" : "1.2.0" + } + }, + { + "identity" : "swift-crypto", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-crypto.git", + "state" : { + "revision" : "e8d6eba1fef23ae5b359c46b03f7d94be2f41fed", + "version" : "3.12.3" + } + }, + { + "identity" : "swift-nio", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-nio.git", + "state" : { + "revision" : "34d486b01cd891297ac615e40d5999536a1e138d", + "version" : "2.83.0" + } + }, + { + "identity" : "swift-nio-ssh", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-nio-ssh", + "state" : { + "revision" : "6ec9ca0f38cffbac3d78878573585196955b99b1", + "version" : "0.10.0" + } + }, + { + "identity" : "swift-system", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-system.git", + "state" : { + "revision" : "61e4ca4b81b9e09e2ec863b00c340eb13497dac6", + "version" : "1.5.0" + } + } + ], + "version" : 3 +} diff --git a/ShhShell/ContentView.swift b/ShhShell/Views/ContentView.swift similarity index 100% rename from ShhShell/ContentView.swift rename to ShhShell/Views/ContentView.swift