mirror of
https://github.com/yJason/ClashX-Dashboard.git
synced 2025-12-19 12:22:23 +08:00
fix: spm
This commit is contained in:
9
ClashX Dashboard Kit/.gitignore
vendored
9
ClashX Dashboard Kit/.gitignore
vendored
@@ -1,9 +0,0 @@
|
||||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
DerivedData/
|
||||
.swiftpm/config/registries.json
|
||||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
|
||||
.netrc
|
||||
7
Examples/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
generated
Normal file
7
Examples/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@@ -7,7 +7,7 @@
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
011BFE462A279D1C0027AD15 /* ClashX Dashboard Kit in Frameworks */ = {isa = PBXBuildFile; productRef = 011BFE452A279D1C0027AD15 /* ClashX Dashboard Kit */; };
|
||||
012875E22A2E38D1004FB615 /* ClashX Dashboard in Frameworks */ = {isa = PBXBuildFile; productRef = 012875E12A2E38D1004FB615 /* ClashX Dashboard */; };
|
||||
0192315F29DD4DCF00539EDD /* ClashX_DashboardApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0192315E29DD4DCF00539EDD /* ClashX_DashboardApp.swift */; };
|
||||
0192316329DD4DD100539EDD /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0192316229DD4DD100539EDD /* Assets.xcassets */; };
|
||||
0192316629DD4DD100539EDD /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0192316529DD4DD100539EDD /* Preview Assets.xcassets */; };
|
||||
@@ -16,8 +16,8 @@
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
011BFE402A2799550027AD15 /* ClashX Dashboard Kit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = "ClashX Dashboard Kit"; sourceTree = "<group>"; };
|
||||
0192315B29DD4DCF00539EDD /* ClashX Dashboard.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ClashX Dashboard.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
012875DE2A2E37AB004FB615 /* ClashX Dashboard */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "ClashX Dashboard"; path = ..; sourceTree = "<group>"; };
|
||||
0192315B29DD4DCF00539EDD /* ClashX Dashboard Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ClashX Dashboard Demo.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
0192315E29DD4DCF00539EDD /* ClashX_DashboardApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClashX_DashboardApp.swift; sourceTree = "<group>"; };
|
||||
0192316229DD4DD100539EDD /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
0192316529DD4DD100539EDD /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
|
||||
@@ -31,7 +31,7 @@
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
011BFE462A279D1C0027AD15 /* ClashX Dashboard Kit in Frameworks */,
|
||||
012875E22A2E38D1004FB615 /* ClashX Dashboard in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@@ -45,10 +45,18 @@
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
012875DD2A2E37AB004FB615 /* Packages */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
012875DE2A2E37AB004FB615 /* ClashX Dashboard */,
|
||||
);
|
||||
name = Packages;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
0192315229DD4DCF00539EDD = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
011BFE402A2799550027AD15 /* ClashX Dashboard Kit */,
|
||||
012875DD2A2E37AB004FB615 /* Packages */,
|
||||
0192315D29DD4DCF00539EDD /* ClashX Dashboard */,
|
||||
0192315C29DD4DCF00539EDD /* Products */,
|
||||
011BFE442A279D1C0027AD15 /* Frameworks */,
|
||||
@@ -58,7 +66,7 @@
|
||||
0192315C29DD4DCF00539EDD /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0192315B29DD4DCF00539EDD /* ClashX Dashboard.app */,
|
||||
0192315B29DD4DCF00539EDD /* ClashX Dashboard Demo.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
@@ -87,9 +95,9 @@
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
0192315A29DD4DCF00539EDD /* ClashX Dashboard */ = {
|
||||
0192315A29DD4DCF00539EDD /* ClashX Dashboard Demo */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 0192316A29DD4DD100539EDD /* Build configuration list for PBXNativeTarget "ClashX Dashboard" */;
|
||||
buildConfigurationList = 0192316A29DD4DD100539EDD /* Build configuration list for PBXNativeTarget "ClashX Dashboard Demo" */;
|
||||
buildPhases = (
|
||||
0192315729DD4DCF00539EDD /* Sources */,
|
||||
0192315829DD4DCF00539EDD /* Frameworks */,
|
||||
@@ -99,12 +107,12 @@
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = "ClashX Dashboard";
|
||||
name = "ClashX Dashboard Demo";
|
||||
packageProductDependencies = (
|
||||
011BFE452A279D1C0027AD15 /* ClashX Dashboard Kit */,
|
||||
012875E12A2E38D1004FB615 /* ClashX Dashboard */,
|
||||
);
|
||||
productName = "ClashX Dashboard";
|
||||
productReference = 0192315B29DD4DCF00539EDD /* ClashX Dashboard.app */;
|
||||
productReference = 0192315B29DD4DCF00539EDD /* ClashX Dashboard Demo.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
@@ -122,7 +130,7 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = 0192315629DD4DCF00539EDD /* Build configuration list for PBXProject "ClashX Dashboard" */;
|
||||
buildConfigurationList = 0192315629DD4DCF00539EDD /* Build configuration list for PBXProject "ClashX Dashboard Demo" */;
|
||||
compatibilityVersion = "Xcode 14.0";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
@@ -137,7 +145,7 @@
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
0192315A29DD4DCF00539EDD /* ClashX Dashboard */,
|
||||
0192315A29DD4DCF00539EDD /* ClashX Dashboard Demo */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
@@ -340,7 +348,7 @@
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
0192315629DD4DCF00539EDD /* Build configuration list for PBXProject "ClashX Dashboard" */ = {
|
||||
0192315629DD4DCF00539EDD /* Build configuration list for PBXProject "ClashX Dashboard Demo" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
0192316829DD4DD100539EDD /* Debug */,
|
||||
@@ -349,7 +357,7 @@
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
0192316A29DD4DD100539EDD /* Build configuration list for PBXNativeTarget "ClashX Dashboard" */ = {
|
||||
0192316A29DD4DD100539EDD /* Build configuration list for PBXNativeTarget "ClashX Dashboard Demo" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
0192316B29DD4DD100539EDD /* Debug */,
|
||||
@@ -361,9 +369,9 @@
|
||||
/* End XCConfigurationList section */
|
||||
|
||||
/* Begin XCSwiftPackageProductDependency section */
|
||||
011BFE452A279D1C0027AD15 /* ClashX Dashboard Kit */ = {
|
||||
012875E12A2E38D1004FB615 /* ClashX Dashboard */ = {
|
||||
isa = XCSwiftPackageProductDependency;
|
||||
productName = "ClashX Dashboard Kit";
|
||||
productName = "ClashX Dashboard";
|
||||
};
|
||||
/* End XCSwiftPackageProductDependency section */
|
||||
};
|
||||
7
Examples/ClashX Dashboard Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
7
Examples/ClashX Dashboard Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"pins" : [
|
||||
{
|
||||
"identity" : "alamofire",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/Alamofire/Alamofire",
|
||||
"state" : {
|
||||
"revision" : "78424be314842833c04bc3bef5b72e85fff99204",
|
||||
"version" : "5.6.4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "cocoalumberjack",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/CocoaLumberjack/CocoaLumberjack",
|
||||
"state" : {
|
||||
"revision" : "0188d31089b5881a269e01777be74c7316924346",
|
||||
"version" : "3.8.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "differencekit",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/ra1028/DifferenceKit",
|
||||
"state" : {
|
||||
"revision" : "073b9671ce2b9b5b96398611427a1f929927e428",
|
||||
"version" : "1.3.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "dsfsparkline",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/dagronf/DSFSparkline",
|
||||
"state" : {
|
||||
"revision" : "cfcf80b9e214500cbc12b795b7c9943151b8bd4f",
|
||||
"version" : "4.6.4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "starscream",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/daltoniam/Starscream",
|
||||
"state" : {
|
||||
"revision" : "e6b65c6d9077ea48b4a7bdda8994a1d3c6969c8d",
|
||||
"version" : "3.1.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "swift-log",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/apple/swift-log.git",
|
||||
"state" : {
|
||||
"revision" : "32e8d724467f8fe623624570367e3d50c5638e46",
|
||||
"version" : "1.5.2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "swift-nio-zlib-support",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/apple/swift-nio-zlib-support.git",
|
||||
"state" : {
|
||||
"revision" : "37760e9a52030bb9011972c5213c3350fa9d41fd",
|
||||
"version" : "1.0.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "swiftui-introspect",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/siteline/SwiftUI-Introspect",
|
||||
"state" : {
|
||||
"revision" : "c18951c747ab62af7c15e17a81bd37d4fd5a9979",
|
||||
"version" : "0.2.3"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "swiftyjson",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/SwiftyJSON/SwiftyJSON",
|
||||
"state" : {
|
||||
"revision" : "b3dcd7dbd0d488e1a7077cb33b00f2083e382f07",
|
||||
"version" : "5.0.1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"version" : 2
|
||||
}
|
||||
@@ -15,9 +15,9 @@
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "0192315A29DD4DCF00539EDD"
|
||||
BuildableName = "ClashX Dashboard.app"
|
||||
BlueprintName = "ClashX Dashboard"
|
||||
ReferencedContainer = "container:ClashX Dashboard.xcodeproj">
|
||||
BuildableName = "ClashX Dashboard Demo.app"
|
||||
BlueprintName = "ClashX Dashboard Demo"
|
||||
ReferencedContainer = "container:ClashX Dashboard Demo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
@@ -45,9 +45,9 @@
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "0192315A29DD4DCF00539EDD"
|
||||
BuildableName = "ClashX Dashboard.app"
|
||||
BlueprintName = "ClashX Dashboard"
|
||||
ReferencedContainer = "container:ClashX Dashboard.xcodeproj">
|
||||
BuildableName = "ClashX Dashboard Demo.app"
|
||||
BlueprintName = "ClashX Dashboard Demo"
|
||||
ReferencedContainer = "container:ClashX Dashboard Demo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</LaunchAction>
|
||||
@@ -62,9 +62,9 @@
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "0192315A29DD4DCF00539EDD"
|
||||
BuildableName = "ClashX Dashboard.app"
|
||||
BlueprintName = "ClashX Dashboard"
|
||||
ReferencedContainer = "container:ClashX Dashboard.xcodeproj">
|
||||
BuildableName = "ClashX Dashboard Demo.app"
|
||||
BlueprintName = "ClashX Dashboard Demo"
|
||||
ReferencedContainer = "container:ClashX Dashboard Demo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
@@ -5,7 +5,7 @@
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
import ClashX_Dashboard_Kit
|
||||
import ClashX_Dashboard
|
||||
|
||||
|
||||
@main
|
||||
@@ -5,7 +5,7 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import ClashX_Dashboard_Kit
|
||||
import ClashX_Dashboard
|
||||
|
||||
//@main
|
||||
struct ClashX_DashboardApp: App {
|
||||
9
Examples/Package.swift
Normal file
9
Examples/Package.swift
Normal file
@@ -0,0 +1,9 @@
|
||||
// swift-tools-version:5.4
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "Examples",
|
||||
products: [],
|
||||
targets: []
|
||||
)
|
||||
86
Package.resolved
Normal file
86
Package.resolved
Normal file
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"pins" : [
|
||||
{
|
||||
"identity" : "alamofire",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/Alamofire/Alamofire.git",
|
||||
"state" : {
|
||||
"revision" : "bc268c28fb170f494de9e9927c371b8342979ece",
|
||||
"version" : "5.7.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "cocoalumberjack",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/CocoaLumberjack/CocoaLumberjack.git",
|
||||
"state" : {
|
||||
"revision" : "0188d31089b5881a269e01777be74c7316924346",
|
||||
"version" : "3.8.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "differencekit",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/ra1028/DifferenceKit.git",
|
||||
"state" : {
|
||||
"revision" : "073b9671ce2b9b5b96398611427a1f929927e428",
|
||||
"version" : "1.3.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "dsfsparkline",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/dagronf/DSFSparkline.git",
|
||||
"state" : {
|
||||
"revision" : "cfcf80b9e214500cbc12b795b7c9943151b8bd4f",
|
||||
"version" : "4.6.4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "starscream",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/daltoniam/Starscream.git",
|
||||
"state" : {
|
||||
"revision" : "e6b65c6d9077ea48b4a7bdda8994a1d3c6969c8d",
|
||||
"version" : "3.1.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "swift-log",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/apple/swift-log.git",
|
||||
"state" : {
|
||||
"revision" : "32e8d724467f8fe623624570367e3d50c5638e46",
|
||||
"version" : "1.5.2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "swift-nio-zlib-support",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/apple/swift-nio-zlib-support.git",
|
||||
"state" : {
|
||||
"revision" : "37760e9a52030bb9011972c5213c3350fa9d41fd",
|
||||
"version" : "1.0.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "swiftui-introspect",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/siteline/SwiftUI-Introspect.git",
|
||||
"state" : {
|
||||
"revision" : "67e2a59be1cf1c6dc4bb7a861cbea888d423bb78",
|
||||
"version" : "0.5.2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "swiftyjson",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/SwiftyJSON/SwiftyJSON.git",
|
||||
"state" : {
|
||||
"revision" : "b3dcd7dbd0d488e1a7077cb33b00f2083e382f07",
|
||||
"version" : "5.0.1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"version" : 2
|
||||
}
|
||||
@@ -4,15 +4,15 @@
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "ClashX Dashboard Kit",
|
||||
name: "ClashX Dashboard",
|
||||
platforms: [
|
||||
.macOS(.v12),
|
||||
],
|
||||
products: [
|
||||
// Products define the executables and libraries a package produces, and make them visible to other packages.
|
||||
.library(
|
||||
name: "ClashX Dashboard Kit",
|
||||
targets: ["ClashX Dashboard Kit"]),
|
||||
name: "ClashX Dashboard",
|
||||
targets: ["ClashX Dashboard"]),
|
||||
],
|
||||
dependencies: [
|
||||
// Dependencies declare other packages that this package depends on.
|
||||
@@ -28,7 +28,7 @@ let package = Package(
|
||||
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
||||
// Targets can depend on other targets in this package, and on products in packages this package depends on.
|
||||
.target(
|
||||
name: "ClashX Dashboard Kit",
|
||||
name: "ClashX Dashboard",
|
||||
dependencies: [
|
||||
"Alamofire",
|
||||
"CocoaLumberjack",
|
||||
@@ -41,7 +41,7 @@ let package = Package(
|
||||
|
||||
]),
|
||||
.testTarget(
|
||||
name: "ClashX Dashboard KitTests",
|
||||
dependencies: ["ClashX Dashboard Kit"]),
|
||||
name: "ClashX Dashboard Tests",
|
||||
dependencies: ["ClashX Dashboard"]),
|
||||
]
|
||||
)
|
||||
@@ -1,3 +1,3 @@
|
||||
# ClashX Dashboard Kit
|
||||
# ClashX Dashboard
|
||||
|
||||
A description of this package.
|
||||
@@ -6,6 +6,6 @@ final class ClashX_Dashboard_KitTests: XCTestCase {
|
||||
// This is an example of a functional test case.
|
||||
// Use XCTAssert and related functions to verify your tests produce the correct
|
||||
// results.
|
||||
XCTAssertEqual(ClashX_Dashboard_Kit().text, "Hello, World!")
|
||||
//// XCTAssertEqual(ClashX_Dashboard_Kit().text, "Hello, World!")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user