Преглед на файлове

Добавил заготовку для CoordinatorSUI package

Pavel Yurchenko преди 1 година
родител
ревизия
70ccd08e22

+ 8 - 0
CoordinatorSUI/.gitignore

@@ -0,0 +1,8 @@
+.DS_Store
+/.build
+/Packages
+xcuserdata/
+DerivedData/
+.swiftpm/configuration/registries.json
+.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
+.netrc

+ 24 - 0
CoordinatorSUI/Package.swift

@@ -0,0 +1,24 @@
+// swift-tools-version: 6.0
+// The swift-tools-version declares the minimum version of Swift required to build this package.
+
+import PackageDescription
+
+let package = Package(
+    name: "CoordinatorSUI",
+    products: [
+        // Products define the executables and libraries a package produces, making them visible to other packages.
+        .library(
+            name: "CoordinatorSUI",
+            targets: ["CoordinatorSUI"]),
+    ],
+    targets: [
+        // Targets are the basic building blocks of a package, defining a module or a test suite.
+        // Targets can depend on other targets in this package and products from dependencies.
+        .target(
+            name: "CoordinatorSUI"),
+        .testTarget(
+            name: "CoordinatorSUITests",
+            dependencies: ["CoordinatorSUI"]
+        ),
+    ]
+)

+ 2 - 0
CoordinatorSUI/Sources/CoordinatorSUI/CoordinatorSUI.swift

@@ -0,0 +1,2 @@
+// The Swift Programming Language
+// https://docs.swift.org/swift-book

+ 6 - 0
CoordinatorSUI/Tests/CoordinatorSUITests/CoordinatorSUITests.swift

@@ -0,0 +1,6 @@
+import Testing
+@testable import CoordinatorSUI
+
+@Test func example() async throws {
+    // Write your test here and use APIs like `#expect(...)` to check expected conditions.
+}

+ 24 - 0
Package.swift

@@ -0,0 +1,24 @@
+// swift-tools-version: 6.0
+// The swift-tools-version declares the minimum version of Swift required to build this package.
+
+import PackageDescription
+
+let package = Package(
+    name: "CoordinatorSUI",
+    products: [
+        // Products define the executables and libraries a package produces, making them visible to other packages.
+        .library(
+            name: "CoordinatorSUI",
+            targets: ["CoordinatorSUI"]),
+    ],
+    targets: [
+        // Targets are the basic building blocks of a package, defining a module or a test suite.
+        // Targets can depend on other targets in this package and products from dependencies.
+        .target(
+            name: "CoordinatorSUI"),
+        .testTarget(
+            name: "CoordinatorSUITests",
+            dependencies: ["CoordinatorSUI"]
+        ),
+    ]
+)

+ 8 - 0
Packages/CoordinatorSUI/.gitignore

@@ -0,0 +1,8 @@
+.DS_Store
+/.build
+/Packages
+xcuserdata/
+DerivedData/
+.swiftpm/configuration/registries.json
+.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
+.netrc

+ 24 - 0
Packages/CoordinatorSUI/Package.swift

@@ -0,0 +1,24 @@
+// swift-tools-version: 6.0
+// The swift-tools-version declares the minimum version of Swift required to build this package.
+
+import PackageDescription
+
+let package = Package(
+    name: "CoordinatorSUI",
+    products: [
+        // Products define the executables and libraries a package produces, making them visible to other packages.
+        .library(
+            name: "CoordinatorSUI",
+            targets: ["CoordinatorSUI"]),
+    ],
+    targets: [
+        // Targets are the basic building blocks of a package, defining a module or a test suite.
+        // Targets can depend on other targets in this package and products from dependencies.
+        .target(
+            name: "CoordinatorSUI"),
+        .testTarget(
+            name: "CoordinatorSUITests",
+            dependencies: ["CoordinatorSUI"]
+        ),
+    ]
+)

+ 2 - 0
Packages/CoordinatorSUI/Sources/CoordinatorSUI/CoordinatorSUI.swift

@@ -0,0 +1,2 @@
+// The Swift Programming Language
+// https://docs.swift.org/swift-book

+ 6 - 0
Packages/CoordinatorSUI/Tests/CoordinatorSUITests/CoordinatorSUITests.swift

@@ -0,0 +1,6 @@
+import Testing
+@testable import CoordinatorSUI
+
+@Test func example() async throws {
+    // Write your test here and use APIs like `#expect(...)` to check expected conditions.
+}

+ 2 - 0
SUIExamples.xcodeproj/project.pbxproj

@@ -7,6 +7,7 @@
 	objects = {
 
 /* Begin PBXFileReference section */
+		06B1064E2CF84E210047B090 /* CoordinatorSUI */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = CoordinatorSUI; sourceTree = "<group>"; };
 		06C5BF7E2C707D2C006896A8 /* SUIExamples.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SUIExamples.app; sourceTree = BUILT_PRODUCTS_DIR; };
 /* End PBXFileReference section */
 
@@ -32,6 +33,7 @@
 		06C5BF752C707D2C006896A8 = {
 			isa = PBXGroup;
 			children = (
+				06B1064E2CF84E210047B090 /* CoordinatorSUI */,
 				06C5BF802C707D2C006896A8 /* SUIExamples */,
 				06C5BF7F2C707D2C006896A8 /* Products */,
 			);