Initial Commit

This commit is contained in:
Christian Risi 2024-11-29 15:08:51 +01:00
parent 6ce48a4e84
commit bb0472911b
6 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{
// Displayed name
"name": "IoT-Simulator-Core",
// Image to be used
"image": "swift",
// Customization
"customizations": {
"vscode": {
"extensions": [
"sswg.swift-lang"
]
}
},
// Env in container
"containerEnv": {
},
// Mounts in container
"mounts": [
{
"source": "${localWorkspaceFolder}",
"target": "/workspace",
"type": "bind"
}
],
// The WorkspaceFolder inside container
"workspaceFolder": "/workspace",
// RunArgs
"runArgs": [
"--name",
"IoT-Simulator-Core"
]
}

26
Package.swift Normal file
View File

@ -0,0 +1,26 @@
// 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: "IoT-Simulator-Core",
defaultLocalization: LanguageTag(stringLiteral: "en-US"),
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "IoT-Simulator-Core",
targets: ["IoT-Simulator-Core"])
],
dependencies: [],
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: "IoT-Simulator-Core"),
.testTarget(
name: "IoT-Simulator-CoreTests",
dependencies: ["IoT-Simulator-Core"]
),
]
)

0
Private/.gitkeep Normal file
View File

View File

@ -0,0 +1,3 @@
public func sleepAndPrint() async {
}

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 IoT_Simulator_Core
@Test func example() async throws {
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
}