From 0822514a71cebc8b016e761445e457a4c7f5319a Mon Sep 17 00:00:00 2001 From: Wilhelm Oks Date: Tue, 10 Dec 2024 10:40:41 +0100 Subject: [PATCH] added package project --- .gitignore | 1 + Package.swift | 24 +++++++++++++++++++ Sources/SwiftDevRant/SwiftDevRant.swift | 2 ++ .../SwiftDevRantTests/SwiftDevRantTests.swift | 6 +++++ 4 files changed, 33 insertions(+) create mode 100644 Package.swift create mode 100644 Sources/SwiftDevRant/SwiftDevRant.swift create mode 100644 Tests/SwiftDevRantTests/SwiftDevRantTests.swift diff --git a/.gitignore b/.gitignore index 52fe2f7..96f28be 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,4 @@ fastlane/report.xml fastlane/Preview.html fastlane/screenshots/**/*.png fastlane/test_output +.DS_Store diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..6fa8241 --- /dev/null +++ b/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: "SwiftDevRant", + products: [ + // Products define the executables and libraries a package produces, making them visible to other packages. + .library( + name: "SwiftDevRant", + targets: ["SwiftDevRant"]), + ], + 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: "SwiftDevRant"), + .testTarget( + name: "SwiftDevRantTests", + dependencies: ["SwiftDevRant"] + ), + ] +) diff --git a/Sources/SwiftDevRant/SwiftDevRant.swift b/Sources/SwiftDevRant/SwiftDevRant.swift new file mode 100644 index 0000000..08b22b8 --- /dev/null +++ b/Sources/SwiftDevRant/SwiftDevRant.swift @@ -0,0 +1,2 @@ +// The Swift Programming Language +// https://docs.swift.org/swift-book diff --git a/Tests/SwiftDevRantTests/SwiftDevRantTests.swift b/Tests/SwiftDevRantTests/SwiftDevRantTests.swift new file mode 100644 index 0000000..4e2410f --- /dev/null +++ b/Tests/SwiftDevRantTests/SwiftDevRantTests.swift @@ -0,0 +1,6 @@ +import Testing +@testable import SwiftDevRant + +@Test func example() async throws { + // Write your test here and use APIs like `#expect(...)` to check expected conditions. +}