aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFinn Behrens <me@kloenk.dev>2021-09-27 13:27:51 +0200
committerFinn Behrens <me@kloenk.dev>2021-09-27 13:27:51 +0200
commitcd30721025c174cfaced64513ada8999f628168b (patch)
tree213facda565cd31086c268615cd53b4eea043583
downloadMatrixCore-cd30721025c174cfaced64513ada8999f628168b.tar.gz
MatrixCore-cd30721025c174cfaced64513ada8999f628168b.tar.xz
MatrixCore-cd30721025c174cfaced64513ada8999f628168b.zip
Initial Commit
-rw-r--r--.gitignore7
-rw-r--r--.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist8
-rw-r--r--Package.swift28
-rw-r--r--README.md3
-rw-r--r--Sources/MatrixCore/MatrixCore.swift6
-rw-r--r--Tests/MatrixCoreTests/MatrixCoreTests.swift11
6 files changed, 63 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bb460e7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+.DS_Store
+/.build
+/Packages
+/*.xcodeproj
+xcuserdata/
+DerivedData/
+.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
diff --git a/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -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>
diff --git a/Package.swift b/Package.swift
new file mode 100644
index 0000000..d245f47
--- /dev/null
+++ b/Package.swift
@@ -0,0 +1,28 @@
+// swift-tools-version:5.5
+// The swift-tools-version declares the minimum version of Swift required to build this package.
+
+import PackageDescription
+
+let package = Package(
+ name: "MatrixCore",
+ products: [
+ // Products define the executables and libraries a package produces, and make them visible to other packages.
+ .library(
+ name: "MatrixCore",
+ targets: ["MatrixCore"]),
+ ],
+ dependencies: [
+ // Dependencies declare other packages that this package depends on.
+ // .package(url: /* package url */, from: "1.0.0"),
+ ],
+ targets: [
+ // 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: "MatrixCore",
+ dependencies: []),
+ .testTarget(
+ name: "MatrixCoreTests",
+ dependencies: ["MatrixCore"]),
+ ]
+)
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..f005e0b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# MatrixCore
+
+A description of this package.
diff --git a/Sources/MatrixCore/MatrixCore.swift b/Sources/MatrixCore/MatrixCore.swift
new file mode 100644
index 0000000..5ca3b03
--- /dev/null
+++ b/Sources/MatrixCore/MatrixCore.swift
@@ -0,0 +1,6 @@
+public struct MatrixCore {
+ public private(set) var text = "Hello, World!"
+
+ public init() {
+ }
+}
diff --git a/Tests/MatrixCoreTests/MatrixCoreTests.swift b/Tests/MatrixCoreTests/MatrixCoreTests.swift
new file mode 100644
index 0000000..071aee2
--- /dev/null
+++ b/Tests/MatrixCoreTests/MatrixCoreTests.swift
@@ -0,0 +1,11 @@
+import XCTest
+@testable import MatrixCore
+
+final class MatrixCoreTests: XCTestCase {
+ func testExample() throws {
+ // This is an example of a functional test case.
+ // Use XCTAssert and related functions to verify your tests produce the correct
+ // results.
+ XCTAssertEqual(MatrixCore().text, "Hello, World!")
+ }
+}