initial commit :3
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
# macOS
|
||||
.DS_Store
|
||||
|
||||
# Swift Package Manager
|
||||
.build/
|
||||
/Packages
|
||||
*.o
|
||||
*.d
|
||||
|
||||
# Xcode
|
||||
*.xcodeproj
|
||||
*.xcworkspace
|
||||
xcuserdata/
|
||||
DerivedData/
|
||||
|
||||
# SwiftPM config (keep user-specific settings out of repo)
|
||||
.swiftpm/configuration/registries.json
|
||||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
|
||||
|
||||
# Credentials
|
||||
.netrc
|
||||
@@ -0,0 +1,19 @@
|
||||
// swift-tools-version: 6.2
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "sonya",
|
||||
dependencies: [
|
||||
.package(path: "Sources/sonyalib"),
|
||||
],
|
||||
targets: [
|
||||
.executableTarget(
|
||||
name: "sonya",
|
||||
dependencies: [
|
||||
.product(name: "sonyalib", package: "sonyalib"),
|
||||
]
|
||||
),
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,9 @@
|
||||
// The Swift Programming Language
|
||||
// https://docs.swift.org/swift-book
|
||||
|
||||
@main
|
||||
struct sonya {
|
||||
static func main() {
|
||||
print("Hello, world!")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
xcuserdata/
|
||||
DerivedData/
|
||||
.swiftpm/configuration/registries.json
|
||||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
|
||||
.netrc
|
||||
@@ -0,0 +1,26 @@
|
||||
// swift-tools-version: 6.2
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "sonyalib",
|
||||
products: [
|
||||
// Products define the executables and libraries a package produces, making them visible to other packages.
|
||||
.library(
|
||||
name: "sonyalib",
|
||||
targets: ["sonyalib"]
|
||||
),
|
||||
],
|
||||
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: "sonyalib"
|
||||
),
|
||||
.testTarget(
|
||||
name: "sonyalibTests",
|
||||
dependencies: ["sonyalib"]
|
||||
),
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,2 @@
|
||||
// The Swift Programming Language
|
||||
// https://docs.swift.org/swift-book
|
||||
@@ -0,0 +1,6 @@
|
||||
import Testing
|
||||
@testable import sonyalib
|
||||
|
||||
@Test func example() async throws {
|
||||
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
|
||||
}
|
||||
Reference in New Issue
Block a user