Skip to content

Commit 2999a68

Browse files
Mark Pospeselmpospese
authored andcommitted
[CM-604] Run swift package init
1 parent 3714876 commit 2999a68

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

Package.swift

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// swift-tools-version: 5.5
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "YMatterType",
8+
defaultLocalization: "en",
9+
platforms: [
10+
.iOS(.v14)
11+
],
12+
products: [
13+
// Products define the executables and libraries a package produces, and make them visible to other packages.
14+
.library(
15+
name: "YMatterType",
16+
targets: ["YMatterType"]
17+
)
18+
],
19+
dependencies: [
20+
// Dependencies declare other packages that this package depends on.
21+
// .package(url: /* package url */, from: "1.0.0"),
22+
],
23+
targets: [
24+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
25+
// Targets can depend on other targets in this package, and on products in packages this package depends on.
26+
.target(
27+
name: "YMatterType",
28+
dependencies: []
29+
),
30+
.testTarget(
31+
name: "YMatterTypeTests",
32+
dependencies: ["YMatterType"]
33+
)
34+
]
35+
)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
public struct YMatterType {
2+
public private(set) var text = "Hello, World!"
3+
4+
public init() {
5+
}
6+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import XCTest
2+
@testable import YMatterType
3+
4+
final class YMatterTypeTests: XCTestCase {
5+
func testExample() throws {
6+
// This is an example of a functional test case.
7+
// Use XCTAssert and related functions to verify your tests produce the correct
8+
// results.
9+
XCTAssertEqual(YMatterType().text, "Hello, World!")
10+
}
11+
}

0 commit comments

Comments
 (0)