added package project

This commit is contained in:
Wilhelm Oks 2024-12-10 10:40:41 +01:00
parent e299909298
commit 0822514a71
4 changed files with 33 additions and 0 deletions

1
.gitignore vendored
View File

@ -60,3 +60,4 @@ fastlane/report.xml
fastlane/Preview.html fastlane/Preview.html
fastlane/screenshots/**/*.png fastlane/screenshots/**/*.png
fastlane/test_output fastlane/test_output
.DS_Store

24
Package.swift Normal file
View File

@ -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"]
),
]
)

View File

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

View File

@ -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.
}