Initial Commit
This commit is contained in:
parent
6ce48a4e84
commit
bb0472911b
41
.devcontainer/devcontainer.json
Normal file
41
.devcontainer/devcontainer.json
Normal 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
26
Package.swift
Normal 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
0
Private/.gitkeep
Normal file
3
Sources/IoT-Simulator-Core/Interfaces/Environment.swift
Normal file
3
Sources/IoT-Simulator-Core/Interfaces/Environment.swift
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
public func sleepAndPrint() async {
|
||||||
|
|
||||||
|
}
|
||||||
2
Sources/IoT-Simulator-Core/IoT_Simulator_Core.swift
Normal file
2
Sources/IoT-Simulator-Core/IoT_Simulator_Core.swift
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// The Swift Programming Language
|
||||||
|
// https://docs.swift.org/swift-book
|
||||||
@ -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.
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user