Initial Commit
This commit is contained in:
commit
07521d4e93
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
.DS_Store
|
||||||
|
/.build
|
||||||
|
/Packages
|
||||||
|
/*.xcodeproj
|
||||||
|
xcuserdata/
|
||||||
|
DerivedData/
|
||||||
|
.swiftpm/config/registries.json
|
||||||
|
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
|
||||||
|
.netrc
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>IDEDidComputeMac32BitWarning</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
29
Package.swift
Normal file
29
Package.swift
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
// swift-tools-version: 5.8
|
||||||
|
|
||||||
|
import PackageDescription
|
||||||
|
|
||||||
|
let package = Package(
|
||||||
|
name: "SwiftLibs",
|
||||||
|
products: [
|
||||||
|
.library(
|
||||||
|
name: "SwiftLibs",
|
||||||
|
targets: [
|
||||||
|
"SwiftLibs"
|
||||||
|
]
|
||||||
|
),
|
||||||
|
],
|
||||||
|
dependencies: [],
|
||||||
|
targets: [
|
||||||
|
.target(
|
||||||
|
name: "SwiftLibs",
|
||||||
|
dependencies: [
|
||||||
|
]
|
||||||
|
),
|
||||||
|
.testTarget(
|
||||||
|
name: "SwiftLibsTests",
|
||||||
|
dependencies: [
|
||||||
|
"SwiftLibs"
|
||||||
|
]
|
||||||
|
),
|
||||||
|
]
|
||||||
|
)
|
6
Sources/SwiftLibs/SwiftLibs.swift
Normal file
6
Sources/SwiftLibs/SwiftLibs.swift
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
public struct SwiftLibs {
|
||||||
|
public private(set) var text = "Hello, World!"
|
||||||
|
|
||||||
|
public init() {
|
||||||
|
}
|
||||||
|
}
|
11
Tests/SwiftLibsTests/SwiftLibsTests.swift
Normal file
11
Tests/SwiftLibsTests/SwiftLibsTests.swift
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import XCTest
|
||||||
|
@testable import SwiftLibs
|
||||||
|
|
||||||
|
final class SwiftLibsTests: XCTestCase {
|
||||||
|
func testExample() throws {
|
||||||
|
// This is an example of a functional test case.
|
||||||
|
// Use XCTAssert and related functions to verify your tests produce the correct
|
||||||
|
// results.
|
||||||
|
XCTAssertEqual(SwiftLibs().text, "Hello, World!")
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user